Skip to main content

A python sdk for the pyro-dashboard-api

Project description

pyro_dash_py

A pretty light-weight and somewhat bearable python-sdk for the pyro-dashboard-api

Deploy Docs Build and Release Tests

Visit pyro_dash_py's full documentation here: https://pyrologix.github.io/pyro_dash_py/

Installation

pyro_dash_py has a public pypi package that you can install.

pip install pyro_dash_py

Speed Run Usage

First, initialize the PyroDash client, make sure you are specifying your own api key.

pyro = PyroDash(
    host="https://api.dashboard.pyrologix.com",
    email="dev@pyrologix.com",
    apikey="my-super-secret-key",
)

Now you can create some projects and jobs:

my_project = pyro.projects.create(name="Hello from pyro_dash_py")
my_job = pyro.jobs.create("wildest")

my_project.add_job(my_job.id)

For Contributors

This project uses poetry to manage dependencies and virtual environments. You're gonna need that.

You can follow the installation instructions here or you can just run the command below:

curl -sSL https://install.python-poetry.org | python3 -
source ~/.zshrc # or whatever shell you're using

Then you can clone this repo and install dependencies:

git clone https://github.com/pyrologix/pyro_dash_py.git
poetry install --with dev

# and you should be able to run the test suite
poetry run pytest

You are encouraged to check out the examples/ in order to get a feel for usage.

Releases

Once a code change has been made in this repository in main, it does not automatically become available in pip as a new version. In order to create a new release and have it available through pip, do the following:

git checkout main
git pull # make sure you're up-to-date with current main
git checkout <my release branch>

poetry version patch # can also be minor/major version bump- default to just patch
>>> Bumping version from 0.1.0 to 0.1.1

git add pyproject.toml
git commit -m "Bump version to 0.1.1"

git tag v0.1.1 # vN.N.N pattern required for CI/CD hooks

git push origin <my release branch>
git push origin v0.1.1

A pull request will then be required to get these changes into main.

On merge of the release branch to main, Github actions will manage the necessary steps to make a new version of the package available. Pip may not immediately update with the new package version, but within a few hours it should show up on the web page and will then be available to download via pip.

Docs

  • poetry run mkdocs serve - Start the live-reloading docs server.
  • poetry run mkdocs build - Build the documentation site.

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

pyro_dash_py-0.2.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

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

pyro_dash_py-0.2.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file pyro_dash_py-0.2.0.tar.gz.

File metadata

  • Download URL: pyro_dash_py-0.2.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Linux/6.8.0-1021-azure

File hashes

Hashes for pyro_dash_py-0.2.0.tar.gz
Algorithm Hash digest
SHA256 71f8f05d6e20525a5802e86c21bfed14e265ea96bfa42a283977e134921de42d
MD5 5bdbb43d9356101172e13ce2682bf146
BLAKE2b-256 231fd97c5116a42512642ad418ee79a87b4e52b2ad208e92970ac0a2c694da1d

See more details on using hashes here.

File details

Details for the file pyro_dash_py-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pyro_dash_py-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Linux/6.8.0-1021-azure

File hashes

Hashes for pyro_dash_py-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64ce758b5e4739e8b4d4bd9e65f87579a9561886ee7f5e2f95248f97f3195cc0
MD5 c2c285c7c2dfefcce09c68ccf5fa11a1
BLAKE2b-256 d5c661b567d71180fbbab2ed9276117dab9cb35b7e4352bb29de31c5cf455e8a

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