Generate deployed services from code
Project description
Dev Setup
Setup a virtual env (or use an existing one)
cd ~/ # or someplace else
python3.9 -m venv venv39
prefer using
python3.9-intel
on Apple Silicon
Activate the virtual environment
source ~/venv39/bin/activate
Install poetry
and pre-commit
pip install poetry pre-commit
Git clone
git clone https://github.com/truefoundry/servicefoundry-cli
Install pre-commit hooks
cd servicefoundry-cli/
pre-commit install --install-hooks
You can run the hook manually with
pre-commit run --all-files
It is recommended to go through Poetry Docs to get a hang of development, testing and packaging process
Local Installation
poetry install
Testing
poetry run pytest
Build distributions
poetry build
Usage :
-
Login :
servicefoundry login
-
Init :
servicefoundry init
-
Run :
servicefoundry run
Process flow to use the commands
-
servicefoundry (should hint to servicefoundry login)
-
servicefoundry login (should hint to init, run from example folder)
-
servicefoundry init (should hint to run)
-
servicefoundry run (should hint to grafanaendpoint and servicefoundry get service <service_id>)
-
servicefoundry list workspace
-
servicefoundry list
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 servicefoundry-0.1.26-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | caa8e252be1f29841e72375f6c8d73a0ca9ea15b94c9735f659f1499b31d3bd5 |
|
MD5 | 3cf7616ec593ac1f80de8455ad975b01 |
|
BLAKE2b-256 | 0498a1fcf6229394c537ff1d0924049a10ad3d057da19428780aafb0fcff5c77 |