Skip to main content

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

Metadata

Release files for apollo3-client 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apollo3-client 0.4.2
File Size Uploaded
apollo3_client-0.4.2.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for apollo3-client 0.4.2
File Interpreter ABI Platform
apollo3_client-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.3 kB

Release files / apollo3_client-0.4.2.tar.gz

Download URL apollo3_client-0.4.2.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8d062c25fb9d2936eb5cefa6fc415477eea04fb4bf1522623ebfc88aa0fb50a5
BLAKE2b-256 checksum
How to use checksums
1d9743ca4b7851945890be19c5f336f57b59dfd01cdc2d900276db4112c13aa4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Release files / apollo3_client-0.4.2-py3-none-any.whl

Download URL apollo3_client-0.4.2-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c1f59346b148aa67036f0f53a895376b328b2001ef96660946e6ffc35231ea0
BLAKE2b-256 checksum
How to use checksums
9782857d818ee0d17ca113a32de8786ea3b24849ede045c06a0c6ea350919723
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page