Skip to main content

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()
  • fingerprint is the seed: the same seed gives the same machine on every launch and host. Leave it out for a new machine each launch.
  • fingerprint_platform is windows, macos or linux.
  • proxy takes http://, https:// or socks5:// with the credential in the URL. GeoIP looks up the exit's locale and timezone; pass locale and timezone to set them yourself.
  • headless is 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

Source: https://github.com/heretic-tech/apostate

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)

Source distribution for apostate 0.5.1
File Size Uploaded
apostate-0.5.1.tar.gz 142.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for apostate 0.5.1
File Interpreter ABI Platform
apostate-0.5.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page