Skip to main content

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 sahale.py

Python SDK for Sahale

Make sure to bump up the version number in setup.py

Building and publishing to Test PyPi repo: Activate virtual env

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 sahale

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/sahale

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/*

And we can install normally using pip install sahale


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/sahale 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cakework-0.0.1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cakework-0.0.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file cakework-0.0.1.tar.gz.

File metadata

  • Download URL: cakework-0.0.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.9

File hashes

Hashes for cakework-0.0.1.tar.gz
Algorithm Hash digest
SHA256 bee9fa03673da6fac5816762458dfd0dfe1629c23315681d4103192dbfade58b
MD5 81f745a5431bb535c87e87caae64ebe5
BLAKE2b-256 2232ceda30db919b013f02e0b22e57d6f75fa0b1688d81788153fcb27ac833ea

See more details on using hashes here.

File details

Details for the file cakework-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: cakework-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.9

File hashes

Hashes for cakework-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3ac2f4582e3bf3d52a15872246c5ab6b10b31d0e33aa79e8bdd15b342a4eaedd
MD5 8ed6e8096d24e66442edaae23dc4575f
BLAKE2b-256 71b83c6cdd2527e30489d2e86583c1510cdf4b976e8444fee505d2b388b5cd0b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page