Anisette.py
An anisette data provider, but in a Python package! Based on pyprovision-uc.
Usage
Anisette.py has a very simple API. You, the developer, are responsible for initializing, loading and saving the state of the Anisette engine, either to memory or to disk. If you want to keep your provisioning session, you MUST save and load the state properly. If you don't, you WILL run into errors. See the docs for information on how to do this.
Initialization
The Anisette provider must be initialized with libraries from the Apple Music APK. To save you some effort, a Cloudflare Worker has been set up to provide easy access to these libraries. By default, the Anisette.py will download this library bundle (~3 megabytes) when initializing a new session, but you can also provide an APK file or downloaded bundle yourself.
from anisette import Anisette
# First use: download from Cloudflare
ani = Anisette.init()
# After download, save library bundle to disk
ani.save_libs("libs.bin")
# For future use, initialize from disk:
ani2 = Anisette.init("libs.bin")
Getting Anisette data
The first time you call this method will probably take a few seconds since the virtual device needs to be provisioned first. After provisioning, getting Anisette data should be quite fast.
ani.get_data()
# Returns:
# {
# 'X-Apple-I-MD': '...',
# 'X-Apple-I-MD-M': '...',
# ...
# }
Credits
A huuuge portion of the work has been done by @JayFoxRox in their pyprovision-uc project. I just rewrote most of their code :-)
Metadata
Release files for Anisette 1.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| anisette-1.2.4.tar.gz | 92.4 kB | Without provenance | Details for anisette-1.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| anisette-1.2.4-py3-none-any.whl | Python 3 | none | any | Details for anisette-1.2.4-py3-none-any.whl |
Total release size: 124.6 kB
Release files / anisette-1.2.4.tar.gz
| Download URL | anisette-1.2.4.tar.gz |
|---|---|
| Size | 92.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
061866f05fdbde2990d2e2617457264a20ca12679217941bb38b5fefef492e62
|
|
BLAKE2b-256 checksum How to use checksums |
3e1b5e110b7243fc695459e52888548cac693d25da97ab05640003f401994ad4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.19
|
Release files / anisette-1.2.4-py3-none-any.whl
| Download URL | anisette-1.2.4-py3-none-any.whl |
|---|---|
| Size | 32.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f61e620aa736f0cac0ca102dd44a02cc2caea1a072eab0f1ef7f2d8b534e03dc
|
|
BLAKE2b-256 checksum How to use checksums |
c4382f8b4c7d97d3eca76c1794348ea142bba393da11950ed836e741692d133e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.19
|
Security for Anisette 1.2.4
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.