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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab6985cb0fe0154d63058a39853f7212433e3cbcf368531e351e7208b476243c
|
|
| MD5 |
b1a622501fb80e5b4112ee791dc1994f
|
|
| BLAKE2b-256 |
ab9c8172731382190e1826f160a82dcdd28336623f9d69673a4be7d6baa38945
|
Provenance
The following attestation bundles were made for pyaxm-2025.6.17.tar.gz:
Publisher:
release.yml on kaincenteno/pyaxm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyaxm-2025.6.17.tar.gz -
Subject digest:
ab6985cb0fe0154d63058a39853f7212433e3cbcf368531e351e7208b476243c - Sigstore transparency entry: 242570541
- Sigstore integration time:
-
Permalink:
kaincenteno/pyaxm@6e828decac246492e89bf65289e4311200edfa14 -
Branch / Tag:
refs/tags/2025.06.17 - Owner: https://github.com/kaincenteno
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6e828decac246492e89bf65289e4311200edfa14 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cc9bc4af8e14b0375108c5b0fd731632c4128fdc3656e936c634c6a17a6fa64
|
|
| MD5 |
6770a8f2c2f50bb58633bc21aa177daa
|
|
| BLAKE2b-256 |
94ca73b44e6770c322387d193db4f4ff3aba690046fbcf485be2deb7db79a3b4
|
Provenance
The following attestation bundles were made for pyaxm-2025.6.17-py3-none-any.whl:
Publisher:
release.yml on kaincenteno/pyaxm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyaxm-2025.6.17-py3-none-any.whl -
Subject digest:
7cc9bc4af8e14b0375108c5b0fd731632c4128fdc3656e936c634c6a17a6fa64 - Sigstore transparency entry: 242570544
- Sigstore integration time:
-
Permalink:
kaincenteno/pyaxm@6e828decac246492e89bf65289e4311200edfa14 -
Branch / Tag:
refs/tags/2025.06.17 - Owner: https://github.com/kaincenteno
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6e828decac246492e89bf65289e4311200edfa14 -
Trigger Event:
release
-
Statement type: