Skip to main content

Obscura Python SDK

Playwright-like Python entry points for the Rust Obscura browser fork. The SDK uses Playwright's own Python objects and CDP client; it does not download Chromium.

Install from this directory with pip install -e .. On first use, the SDK downloads the matching release from Willianjesusdasilva/obscura into its own obscura-python data directory. Set OBSCURA_PYTHON_HOME to choose the root. OBSCURA_EXECUTABLE, executable_path, or a binary on PATH can override that download.

The package also installs the obscura-python command, which forwards CLI arguments to the Rust executable:

pip install obscura-python
obscura-python fetch https://example.com --dump text

With uv, install it as a tool:

uv tool install obscura-python
obscura-python --version

Releases are published by GitHub Actions. Create a tag such as v0.1.0 after configuring the repository as a Trusted Publisher for the obscura-python project on PyPI; the workflow builds and uploads the wheel and source archive without storing a PyPI token in GitHub.

For a local checkout use uv tool install ./python, or add it to a project with uv add ./python. The first execution may require internet access to download the Rust browser binary; set OBSCURA_EXECUTABLE for offline use.

from obscura.async_api import async_playwright

async with async_playwright() as p:
    browser = await p.chromium.launch(proxy={"server": "http://127.0.0.1:8080"})
    page = await browser.new_page()
    await page.goto("https://example.com")
    print(await page.title())
    await browser.close()

Each launch chooses a free loopback port and starts an independent process. connect_over_cdp() connects to an external process and never terminates it. Obscura is headless only; unsupported launch options produce explicit errors.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

obscura_python-0.1.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

obscura_python-0.1.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file obscura_python-0.1.0.tar.gz.

File metadata

  • Download URL: obscura_python-0.1.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for obscura_python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c25020df829147455f602bef732171c2478b186ed1e98f55951a0b0ad32448cf
MD5 e4dd49c6177842ae62e1986b1fbb981b
BLAKE2b-256 4ef813877dd499f14fd8994b143ee923e2f668b8dacf28686fde541270a3db67

See more details on using hashes here.

Provenance

The following attestation bundles were made for obscura_python-0.1.0.tar.gz:

Publisher: publish.yml on Willianjesusdasilva/obscura-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file obscura_python-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: obscura_python-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for obscura_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3b828a274e2ef4ca1d7a4658d61bf2a9905cfe19bc2c49b29a3f66f35e0fec0
MD5 1cece8159ae845783caca3d8db4c26ef
BLAKE2b-256 f87a87cee44c1a821f3c10c7de45abac86255af12ac0850e3832db8dbbd992b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for obscura_python-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Willianjesusdasilva/obscura-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

This release

0.1.0 This release

2 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