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.1.tar.gz (85.3 kB view details)

Uploaded Source

Built Distribution

anisette-1.2.1-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for anisette-1.2.1.tar.gz
Algorithm Hash digest
SHA256 12d400ffc645a5efa5c81ee76cd77ea00f9acd04b5a03c732ecf2f86463c871b
MD5 dfddb4f9dcd5127d9cff3f828ec57084
BLAKE2b-256 c69bccd0889197f3ee506ea85a6a7104b4c4c9a666dbe213d7d459176ef2d93e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for anisette-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5ba9009c9ab802af0611c6b9f9275ac5fdba2e8f53aa560d80d5b635a6f81b57
MD5 769b668622134079ad7f6b3305500a17
BLAKE2b-256 0464dbf4d1772e4a7640ce846405e35cd473ca13ad9df6bcf5e976a69dba1cd6

See more details on using hashes here.

Supported by

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