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.4.4

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.4.4
File Size Uploaded
apostate-0.4.4.tar.gz 142.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for apostate 0.4.4
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

0.5.1

2 release files

This release

0.4.4 This release

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