Skip to main content

Apollo3 python client

Project description

apollo3-client (WIP)

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: apollo3_client-0.4.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.4.0.tar.gz
Algorithm Hash digest
SHA256 9dd4e4763065f1a5f23bb53fe485778a45d7bcad461ae21080901c19e7edf0c2
MD5 31fa68e8c64413a1153c3b28d6c01417
BLAKE2b-256 76a054bd24102fbf0abc3f9aac8398f79b9424d0a01b85818d78337862c47833

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for apollo3_client-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 02dc23bcfd1b05a2a85b2298879a345d562afbc7f81782475f1dc68e700a2f78
MD5 2d686caf3cbfc6a8a392b7df4b5aa930
BLAKE2b-256 36ec11ef993eed1ced6d33c183c7ae3c707a143850aceaf55afaa60415a18786

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