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.1.tar.gz (16.6 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.1-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyro_dash_py-0.2.1.tar.gz
Algorithm Hash digest
SHA256 777d5c10e38d01bebef0acbc4fb07cfe62a884f2156029f76c5f53cf991d4b70
MD5 f817545a0ea3e3ca55a112892a2bc87a
BLAKE2b-256 06eb35af0c81fa1b1a6ed5285134525a78f1d4471860b24b18beefb4a54b3f52

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyro_dash_py-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a525d8ca56bbf8240d4aadcb3d62a384c0f4426a47ba9324f98c45961339827e
MD5 0ec06d20dd991c70dd50fb91dbf982ac
BLAKE2b-256 0bf7dce024ec15c39afcbf8e63234ca08564feeecb80666aaa82de8e2e85b744

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