Python sdk for cakework
Project description
sdk-python
TODO add instructions for testing package locally
To install locally: note: this isn't currently working
Q: is setup.py being used by anyone?
pip install .
(in root of package, where pyproject.toml is located)
Running the example to create a new activity
cd test
python cakework.py
Python SDK for Cakework
Make sure to bump up the version number in setup.py
Building and publishing to Test PyPi repo: Activate virtual env
pip3 install -r requirements.txt # Q: is there a way to get around having to install build, twine, etc?
python3 -m build
python3 -m twine upload --repository testpypi dist/*
Installing package:
python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps cakework
Note: need to first create a test PyPi account and create an API key and put it in the $HOME/.pypirc
file as per https://packaging.python.org/en/latest/tutorials/packaging-projects/
Can then view the package on Test PyPi i.e. https://test.pypi.org/project/cakework
Building and publishing to PyPi repo:
TODO: need to figure out whether we are packaging dependencies correctly. Add instructions to do a pip install -r requirements.txt
python3 -m build
python3 -m twine upload --skip-existing dist/*
For Docker to have access to the latest repo, run
pip3 install cakework --upgrade
And we can install normally using
pip3 install cakework
TODOS Q: if we do pip install update will that be faster?
Generating the grpc files which we want to copy over to the src/cakework directory:
TODO automate this part
cd src/cakework
source env/bin/activate
pip install grpcio
pip install protobuf
pip install grpcio-tools
python -m grpc_tools.protoc -I. --python_out=. --pyi_out=. --grpc_python_out=. cakework.proto
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for cakework-0.0.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6625998f7494294ed24e1b91213ebab5af16f7e4c94c7e72a11229d3c1a794c6 |
|
MD5 | 5fb5689032e4b9b06e3adc8dddc57a6b |
|
BLAKE2b-256 | 72bdff8a3d6c2101c31cad2d07c16b427d90422ccad7e9c2c08c7d7b888a6f97 |