Skip to main content

ahapy

PyPI version

A small Aha.io API client. The package handles authentication and pagination, giving the user exactly the information they seek.

This is in no way associated with Aha.io. For Aha.io API documentation, please visit aha.io/api.

Install

pip install ahapy

Usage

After importing the library, create an instance of AhaV1 by providing your subdomain from https://[my-subdomain].aha.io/ and your API key.

from ahapy import AhaV1

aha = AhaV1('<your-sub-domain>', '<your-api-key>')

Create a simple query by running the query method, giving the method the desired endpoint.

data = aha.query('initiatives')

for i in data:
    print(i)

While using the query method, you can specify page size and customize the fields to be returned.

data = aha.query('initiatives', per_page=200, fields='name,id')

for i in data:
    print(i)

After running a query, you can check if the number of record receieved is the number that was expected.

data = aha.query('initiatives')

if len(data) == aha.count:
    print('Records returned match expectation.')

The endpoint argument can be 'overloaded' to accommodate searches for objects by foriegn key. The actual endpoint is parsed and available on .endpoint member

aha.query('initiatives/' + initiative_id + '/epics')

print(aha.endpoint)
# epics

Metadata

Release files for ahapy 0.0.7

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

Source distribution (sdist)

Source distribution for ahapy 0.0.7
File Size Uploaded Provenance Actions
ahapy-0.0.7.tar.gz 3.4 kB Without provenance Details for ahapy-0.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ahapy 0.0.7
File Interpreter ABI Platform Actions
ahapy-0.0.7-py3-none-any.whl Python 3 none any Details for ahapy-0.0.7-py3-none-any.whl

Total release size: 7.0 kB

Release files / ahapy-0.0.7.tar.gz

Download URL ahapy-0.0.7.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3bb4b8c985543c16e87704ee2c5f875cb8e778aed982f9f30bfbe1eb83f12e43
BLAKE2b-256 checksum
How to use checksums
e4b220424771182ab59c18465b74e36f910a48ab8c8b9f213c0e479e696bfacb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.9.1 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release files / ahapy-0.0.7-py3-none-any.whl

Download URL ahapy-0.0.7-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
802473bc21f475752e2d14ce470c56589e6a2974272083bf9485f4eed926eed9
BLAKE2b-256 checksum
How to use checksums
b3092cf616383fa5eb7a6f899fac94c299d56674b8492fc817ee8c86937e739b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.9.1 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Security for ahapy 0.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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