oculr (Python)
Thin Python client for the Oculr local Automation API. Launch real browser profiles on your own machine, choose a per-launch stealth level, and connect over CDP with Playwright or Selenium.
Zero runtime dependencies (stdlib only). Playwright is optional, for the
connect_playwright() helper.
Install
pip install oculr
# optional, for connect_playwright():
pip install playwright
Usage
import os
from oculr import OculrClient
from playwright.sync_api import sync_playwright
# The desktop app shows the port and token under Settings.
oculr = OculrClient("http://127.0.0.1:8378", token=os.environ["OCULR_TOKEN"])
# Low-level: launch and get a ready CDP endpoint + driver recipes.
res = oculr.launch("de-store-01", stealth="balanced", headless=False)
print(res["ws_endpoint"])
# High-level: launch and connect a Playwright browser in one call.
with sync_playwright() as p:
browser, _ = oculr.connect_playwright(p, "de-store-01", stealth="max")
page = browser.contexts[0].pages[0]
page.goto("https://example.com")
oculr.stop("de-store-01")
Stealth dial
stealth is chosen per launch: "off" (clean Chromium, no fingerprint
injection), "balanced" (native fingerprints, the default) or "max" (strongest
noise). Overrides apply to that launch only and are never written back to the
profile.
API
list_profiles(), create_profile(**body), get_profile(id),
update_profile(id, **body), delete_profile(id), generate_profile(**body),
launch(id, **options), stop(id), status(),
connect_playwright(playwright, id, **options).
Errors raise OculrError with .status and .body.
Metadata
Release files for oculr 0.1.0
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 |
|---|---|---|---|---|
| oculr-0.1.0.tar.gz | 4.1 kB | Without provenance | Details for oculr-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oculr-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for oculr-0.1.0-py3-none-any.whl |
Total release size: 8.3 kB
Release files / oculr-0.1.0.tar.gz
| Download URL | oculr-0.1.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
adbe22997d093cbcb604862244ddc3804190267f22b1ab0234952421429cef6a
|
|
BLAKE2b-256 checksum How to use checksums |
5eccc8ae97239e0f4ac71a84420d3eed4030b1cf704321306ffec2bec765ce43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Release files / oculr-0.1.0-py3-none-any.whl
| Download URL | oculr-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f7e12001737b1435aafb5159409448654200d784cf7fd5ccf016f7dd447bdc5
|
|
BLAKE2b-256 checksum How to use checksums |
97c35993db8e894cf72631f6e24a2624b1b079a17dcc99e7be198a464e23f20b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Security for oculr 0.1.0
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.