Skip to main content

Apollo3 python client

Project description

apollo3-client

Python library for accessing the Apollo3 API.

Installation

The package can be installed with pip:

pip install apollo3-client

The package can be installed with poetry:

poetry add apollo3-client

Requirements

  • Python 3.8+

Quick Start

To use this library, you must have apollo3 api uri. We can specify it as a string when creating the apollo3.Client object. This is a basic example of the creating the client.

Note: username and password is required by apollo for root authentication (Implementation in progress). If we don't pass username and password then the client will use guest login to get the jwt token

from apollo3 import Apollo3Client

client = Apollo3Client(api_url="http://localhost:3999")
assemblies = client.assemblies_obj()

for assembly in assemblies:
    changes = client.changes_obj(assembly_id=assembly.id)
    for change in changes:
        feature = client.feature(feature_id=change.feature_id)
        print(feature)

Endpoints

Apollo3 Endpoint Function
/assemblies client.assemblies() or client.assemblies_obj()
/changes client.changes() or client.changes_obj()
/features client.feature()

Contributing

To set up a development environment, first ensure you have poetry 1.5+ installed and run:

poetry install  # install and update dependencies in your environment, the first time

Configure the APOLLO3_API_URL in client.py

You can run tests locally using:

poetry run pytest

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

apollo3_client-0.4.1.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

apollo3_client-0.4.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file apollo3_client-0.4.1.tar.gz.

File metadata

  • Download URL: apollo3_client-0.4.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for apollo3_client-0.4.1.tar.gz
Algorithm Hash digest
SHA256 00c789ce76e7c9da7f8510d5517da29aaf568f85c600660bd13b43f0ec95b678
MD5 d8836573abcea1b5f36b5ec1f38195fd
BLAKE2b-256 d58de02ee481a1d20dd753f446fb521e417d4359458f1c0a213568eebbf378ba

See more details on using hashes here.

File details

Details for the file apollo3_client-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for apollo3_client-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 085c0babf9a38108b7916f4e53500a87dc8f0a7957f172b58fa0a97a24eb45ab
MD5 eaf65e6ca0002e74a08dbd277f78d843
BLAKE2b-256 bbec781e13038f0eb79235537e3caaa36f5a8a2fa54671cead5392a426a646e5

See more details on using hashes here.

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