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.4.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 | |
|---|---|---|---|
| apostate-0.4.4.tar.gz | 142.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| apostate-0.4.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 260.1 kB
Release files / apostate-0.4.4.tar.gz
| Download URL | apostate-0.4.4.tar.gz |
|---|---|
| Size | 142.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42de16a509be27025e2e8e9c5da416fbcf9a025d26275a20dcc12fbb8fa16359
|
|
BLAKE2b-256 checksum How to use checksums |
276ceb70b57ac4d9f06eb0a1c2a31c065c12594465d2feda210a75266449b898
|
| 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.4.4-py3-none-any.whl
| Download URL | apostate-0.4.4-py3-none-any.whl |
|---|---|
| Size | 117.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
554420ed8585daa67f7b26ec68f82f3bf655f4cde0a1945320f8784a1fad6169
|
|
BLAKE2b-256 checksum How to use checksums |
16d4da0b7bac0c6245f7a01e00907482a6532fec326b04ca18bf73c054d56d23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|