Sign inSign up

butter/pybutter

By butter

Updated over 8 years ago

Common python packages and utilities used at Butter.ai

Image
0

3.3K

butter/pybutter repository overview

Butter.ai Common Python Packages

What is PyButter?

PyButter is a set of common python packages used at Butter.ai. There are two image versions, a base image for standard python services, and an NLPkit version for Butter.ai natural language processing and machine learning services.

How to use this image

Create a Dockerfile in your Python app project
FROM butter/pybutter:py3-2017-04
CMD [ "python", "./your-daemon-or-script.py" ]

or (if you need to use Python 2):

FROM butter/pybutter:2017-04
CMD [ "python", "./your-daemon-or-script.py" ]
Run a single Python script

For many simple, single file projects, you may find it inconvenient to write a complete Dockerfile. In such cases, you can run a Python script by using the Python Docker image directly:

$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp butter/pybutter:py3-nlpkit python your-daemon-or-script.py

or (again, if you need to use Python 2):

$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp butter/pybutter:nlpkit python your-daemon-or-script.py

License

View license information for Python 2 and Python 3.

Tag summary

Content type

Image

Digest

Size

210.4 MB

Last updated

over 8 years ago

docker pull butter/pybutter