apostate
Python package for Apostate, a Chromium build that presents a Windows, macOS or Linux machine you choose. The package downloads and verifies the browser, looks up the locale and timezone of your connection or proxy, and returns a Playwright browser driven through Patchright.
Free and open source under GPL-3.0.
Install
pip install apostate
apostate install # download the browser now instead of on first launch
apostate fonts install windows # Linux and macOS hosts, for a Windows persona
Do not run playwright install: Apostate brings its own browser. On Python
3.10 to 3.13 on Linux, install zstandard or the zstd tool so the archive
can be unpacked.
Launch
from apostate import launch
browser = launch(fingerprint=42, fingerprint_platform="windows")
page = browser.new_page()
page.goto("https://example.com")
print(page.evaluate("navigator.platform")) # Win32
browser.close()
fingerprintis the seed: the same seed gives the same machine on every launch and host. Leave it out for a new machine each launch.fingerprint_platformiswindows,macosorlinux.proxytakeshttp://,https://orsocks5://with the credential in the URL. GeoIP looks up the exit's locale and timezone; passlocaleandtimezoneto set them yourself.headlessis on by default. Headed on a Linux host with no display starts Xvfb for you.- Use
browser.new_page().new_context()opens an incognito context, which sites can tell apart.
Keep a machine, its cookies and its logins between runs:
from apostate import launch_persistent_context
context = launch_persistent_context("./profiles/alice", fingerprint_platform="windows")
Async versions: launch_async(), launch_context_async(),
launch_persistent_context_async(). Other keyword arguments go to
Playwright's launch_persistent_context.
Command line
apostate install | path | info | clear
apostate run -- --fingerprint=42 --fingerprint-explain
apostate fonts install windows [--from DIR]
apostate fonts export-macos DIR
apostate fonts install macos --from DIR
apostate provision-drm [--list | --source DIR]
Documentation
Metadata
Release files for apostate 0.5.1
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 |
|---|---|---|---|---|
| apostate-0.5.1.tar.gz | 142.9 kB | Without provenance | Details for apostate-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| apostate-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for apostate-0.5.1-py3-none-any.whl |
Total release size: 260.1 kB
Release files / apostate-0.5.1.tar.gz
| Download URL | apostate-0.5.1.tar.gz |
|---|---|
| Size | 142.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5eaf30d244bb6980467aafef5262c8dce5576355e6eda8e3c44960d0672bdada
|
|
BLAKE2b-256 checksum How to use checksums |
a9bb6a10f9d39413b6eb06dd357723019330f5d4f03ec1b9aee035a97aa5d7aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / apostate-0.5.1-py3-none-any.whl
| Download URL | apostate-0.5.1-py3-none-any.whl |
|---|---|
| Size | 117.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d07dfc8a0019e5e3ca38cd2c77c96c04546d4b5a83b4fda0fa47f57002251689
|
|
BLAKE2b-256 checksum How to use checksums |
e920b9c945e20459465659afbcaee67fe87fed65180e310f2a7900cd5ba823c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for apostate 0.5.1
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.