A Python example project for CMS-SDK.
This example uses docker images provided by cms-docker-compose. Learn more details about the docker images in the link.
- composer
- docker
- python 3.5 or higher
- Set up venv.
python3 -m venv .venv && source ./.venv/bin/activate
make installmake cms-upwill start docker containers.- Wait for several seconds until the conainers startup.
make cms-dbfor sample db migration. If it fails, try again in a few seconds.python sample.pywill run the sample code.- Or
python sample_flask.pywill run the sample flask web server, then you can browse tohttp://127.0.0.1/example/home.
- Or
make cms-downfor shutting down the containers.
See here for all available APIs.