The following steps explore the full range of provided actions/features of this tool. Run all of these to check if the tool works when making changes. We're planning to automate this in the future.
-
Install quickstarter from pip (or locally if you made changes)
pip install datascience-quickstarter
-
Create new project (e.g. name
qs-test
)
quickstart-project
+ follow instructions -
Create new environment
conda create -n qs-test python=3.8
(or non-conda alternative)
conda activate qs-test
-
Install package of new project
cd qs-test && make dev
Note: if you made changes to the quickstarter, run pip uninstall datascience-quickstarter
and install your local version using in development mode pip install -e ...
at this step.
- Run tests
make test
For the next steps, open a second terminal so that one terminal and use one to keep a service running and the other to send requests to the service.
-
Run service
make run
-
Send requests
make example-request-count
make example-request-reverse
python examples/example_requests.py
(stop service) -
Build Docker image for service
make build
-
Run service within Docker container; run-command will also be printed after building.
docker run -p 8000:8000 -e --rm -it <package-name>:0.1
-
Repeat 7), i.e. test sending requests
(stop container)
-
Create new demo
quickstart-streamlit
(call itcool-demo
) -
Build Docker image for demo
cd demos/cool-demo
make build
-
Run demo with docker container; run-command will also be printed after building.
docker run -p 8000:8000 -e --rm -it cool-demo:0.1
(stop container)
-
Create environment
conda create -n zsc python=3.8
-
Install project package
cd examples/aylien-zs-classifier
make dev
-
Run tests
make test
-
Run service
make run
-
Send requests
example-request-add
example-request-classify
python examples/example_requests.py
(stop service) -
Build Docker image for service
make build
-
Run service within Docker container; run-command will also be printed after building.
docker run -p 8000:8000 -e --rm -it aylien-zs-classifier:0.1
-
Repeat 5), i.e. test sending requests
(stop container) -
Try out existing demo
cd zs-classifier-demo
make run
(stop streamlit) -
Build Docker image for demo
make build
-
Run demo with docker container; run-command will also be printed after building.
docker run -p 8000:8000 -e --rm -it zs-classifier-demo:0.1