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.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 227dfbef2399dbea2a608c81910a6443ff0078161b87562fdf1fc572f5ae1746 |
|
MD5 | 93d7de90923309d0f9deb33e74797e07 |
|
BLAKE2b-256 | 399ea63f6d1a2c9c73e06d2eb9b007df842497744047b387a63a1b5631abca65 |