Skip to main content

Anisette provider

Project description

Anisette.py

An anisette data provider, but in a Python package! Based on pyprovision-uc.

Documentation

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 :-)

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

anisette-1.2.4.tar.gz (92.4 kB view details)

Uploaded Source

Built Distribution

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

anisette-1.2.4-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

Details for the file anisette-1.2.4.tar.gz.

File metadata

  • Download URL: anisette-1.2.4.tar.gz
  • Upload date:
  • Size: 92.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.19

File hashes

Hashes for anisette-1.2.4.tar.gz
Algorithm Hash digest
SHA256 061866f05fdbde2990d2e2617457264a20ca12679217941bb38b5fefef492e62
MD5 35345fcb0abf8663531352fb87420e23
BLAKE2b-256 3e1b5e110b7243fc695459e52888548cac693d25da97ab05640003f401994ad4

See more details on using hashes here.

File details

Details for the file anisette-1.2.4-py3-none-any.whl.

File metadata

  • Download URL: anisette-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 32.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.19

File hashes

Hashes for anisette-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f61e620aa736f0cac0ca102dd44a02cc2caea1a072eab0f1ef7f2d8b534e03dc
MD5 8a5dd8eea964280be0d52e738e78e37a
BLAKE2b-256 c4382f8b4c7d97d3eca76c1794348ea142bba393da11950ed836e741692d133e

See more details on using hashes here.

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