Metadata-Version: 2.4
Name: dechromium
Version: 0.11.1
Summary: Anti-detect browser built on Chromium
Project-URL: Homepage, https://github.com/ENbanned/dechromium
Project-URL: Documentation, https://enbanned.github.io/dechromium/
Project-URL: Repository, https://github.com/ENbanned/dechromium
Project-URL: Issues, https://github.com/ENbanned/dechromium/issues
Project-URL: Changelog, https://github.com/ENbanned/dechromium/blob/main/CHANGELOG.md
Author: ENbanned
License-Expression: MIT
License-File: LICENSE
Keywords: anti-detect,browser,chromium,fingerprint
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Internet :: WWW/HTTP :: Browsers
Requires-Python: >=3.11
Requires-Dist: maxminddb>=2.0
Requires-Dist: pydantic>=2.0
Provides-Extra: server
Requires-Dist: fastapi>=0.100; extra == 'server'
Requires-Dist: uvicorn>=0.20; extra == 'server'
Description-Content-Type: text/markdown

# dechromium

[![PyPI](https://img.shields.io/pypi/v/dechromium)](https://pypi.org/project/dechromium/)
[![Python](https://img.shields.io/pypi/pyversions/dechromium)](https://pypi.org/project/dechromium/)
[![License](https://img.shields.io/github/license/ENbanned/dechromium)](LICENSE)
[![CI](https://github.com/ENbanned/dechromium/actions/workflows/ci.yml/badge.svg)](https://github.com/ENbanned/dechromium/actions/workflows/ci.yml)
[![Docs](https://img.shields.io/badge/docs-enbanned.github.io%2Fdechromium-blue)](https://enbanned.github.io/dechromium/)

Anti-detect browser built on Chromium. Manages browser profiles with isolated fingerprints — canvas, WebGL, audio, fonts, screen, navigator, timezone, and network. All spoofing is implemented in C++ inside the browser engine. No JavaScript injection, no CDP overrides.

## Install

```bash
pip install dechromium
dechromium install
```

The first command installs the Python library. The second downloads the patched Chromium binary from [GitHub Releases](https://github.com/ENbanned/dechromium/releases).

## Quick start

```python
from dechromium import Dechromium, Platform

with Dechromium() as dc:
    profile = dc.create("my-profile", platform=Platform.WINDOWS)
    browser = dc.start(profile.id)
    print(browser.ws_endpoint)  # connect with Playwright, Puppeteer, or Selenium
# browser automatically stopped on exit
```

## Features

| Feature | Details |
|---------|---------|
| **Profile management** | Create, list, update, delete profiles with full fingerprint isolation |
| **Platform presets** | `Platform.WINDOWS` / `MACOS` / `LINUX` sets identity, WebGL, and fonts in one call |
| **C++ spoofing** | Canvas noise, WebGL params, audio fingerprint, DOMRect noise — all at engine level |
| **Proxy support** | SOCKS5/HTTP with C++ auth, DNS leak protection, WebRTC leak protection |
| **Font isolation** | Per-profile fontconfig with platform-specific font packs |
| **Cookie management** | Import/export Chrome SQLite cookies |
| **REST API** | Optional FastAPI server — `pip install dechromium[server]` |
| **Typed** | PEP 561 typed, Pydantic v2 models, enum-based API with IDE autocomplete |

## Browser management

```bash
dechromium install                     # latest version
dechromium install 145.0.7632.116      # specific version
dechromium update                      # check for updates (hotfixes)
dechromium browsers                    # list available and installed
dechromium uninstall 145.0.7632.116    # remove a version
```

Multiple versions can be installed side-by-side. The library auto-selects the latest.

## Configuration

| Env var | Default | Description |
|---------|---------|-------------|
| `DECHROMIUM_DATA_DIR` | `~/.dechromium` | Base directory for profiles and browsers |
| `DECHROMIUM_BROWSER_BIN` | auto-detect | Override browser binary path |
| `DECHROMIUM_FONTS_DIR` | `~/.dechromium/fonts` | Font packs directory |

## Documentation

**[enbanned.github.io/dechromium](https://enbanned.github.io/dechromium/)**

## License

MIT
