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.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c4e33d4f7c675d11ebf80828ba4fb5951ab83c0fc4d88aa1f0ba0aff882d0c6 |
|
MD5 | e9d474b0fa8ff736f48bfcc6b6a841ed |
|
BLAKE2b-256 | cd5d407aa9caa59250dbd28ade68d52ce23445628e53f4a90f5dde3b8b3bca83 |