Skip to main content

Query Apple Business Manager using Python

Project description

The purpose of this repo is to create a python library to easily get information using the Apple Business Manager API using Python

https://developer.apple.com/documentation/applebusinessmanagerapi

Setup:

You will need to setup 2 environmental variables that are provided when creating the private key in ABM:

AXM_CLIENT_ID and AXM_KEY_ID

Place the private key in your home directory inside the .config/pyaxm folder and rename it key.pem

This location will be used to store a cached access_token that can be reused until it expires. While testing I have experienced that requesting too many access tokens will result in a response with status code 400 when trying to get a new token.

Installation:

Download the latest release and install it using

pip install pyaxm-<date>.tar.gz

CLI:

You can query directly through the terminal by running pyaxm-cli

pyaxm-cli devices -> returns all devices in ABM pyaxm-cli servers -> returns all servers in ABM pyaxm-cli device <serial_number> -> returns single device information pyaxm-cli server <server_id> -> returns all devices in that server

Client:

Example usage:

axm_client = Client()

devices = axm_client.list_devices()
print(devices)

Issues:

  • need to add tests
  • not all api functionability is there

This is still a work in progress

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

pyaxm-2025.6.17.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyaxm-2025.6.17-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file pyaxm-2025.6.17.tar.gz.

File metadata

  • Download URL: pyaxm-2025.6.17.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyaxm-2025.6.17.tar.gz
Algorithm Hash digest
SHA256 ab6985cb0fe0154d63058a39853f7212433e3cbcf368531e351e7208b476243c
MD5 b1a622501fb80e5b4112ee791dc1994f
BLAKE2b-256 ab9c8172731382190e1826f160a82dcdd28336623f9d69673a4be7d6baa38945

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyaxm-2025.6.17.tar.gz:

Publisher: release.yml on kaincenteno/pyaxm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyaxm-2025.6.17-py3-none-any.whl.

File metadata

  • Download URL: pyaxm-2025.6.17-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyaxm-2025.6.17-py3-none-any.whl
Algorithm Hash digest
SHA256 7cc9bc4af8e14b0375108c5b0fd731632c4128fdc3656e936c634c6a17a6fa64
MD5 6770a8f2c2f50bb58633bc21aa177daa
BLAKE2b-256 94ca73b44e6770c322387d193db4f4ff3aba690046fbcf485be2deb7db79a3b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyaxm-2025.6.17-py3-none-any.whl:

Publisher: release.yml on kaincenteno/pyaxm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page