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.2.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

apollo3_client-0.2.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for apollo3_client-0.2.0.tar.gz
Algorithm Hash digest
SHA256 16180395d34d796d96c3d1b29cb00ad650bfb978979ea4697bd421b9122046d5
MD5 4e4b9da01fe9d0f2557d74683d8de5de
BLAKE2b-256 c7614a7224772450098c3ec844ccdd6f3c1efc87f5fdc4e6a7862679219c8aa2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for apollo3_client-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45fbac17ba54b292df06986bd1b6290ea97f3a2cc4b1e41a42720d688030d7fc
MD5 1cb627d54ce64ea6250200d315967e4d
BLAKE2b-256 61005e19ac4cc45dd264cdbeae528bbc5867fdb08d04b57d03eceeb3ebd530e6

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