Skip to main content

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

servicefoundry-0.1.19.tar.gz (27.5 kB view hashes)

Uploaded Source

Built Distribution

servicefoundry-0.1.19-py3-none-any.whl (43.5 kB view hashes)

Uploaded Python 3

Supported by

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