Patcherly detects bugs in real time in your app. It creates a customized AI patch, and once you approve it, backs up your code, fixes it & tests the patch for you. If anything is off, it rolls back the changes automatically, or you can always roll it back in a click. Website: https://patcherly.com · Docs: https://help.patcherly.com/connectors/python/
Project description
Patcherly Python connector
Auto-detect and fix production errors in your Python apps. Agent for any framework that logs to a file or stdout — pairs with your Patcherly account.
Prefer unpinned
pip install, or pin from GitHub Releases.
Recommended install (universal installer)
One command downloads the Python agent and launches OAuth pairing:
| Platform | Command |
|---|---|
| macOS / Linux / WSL | curl -sSL https://api.patcherly.com/install | sudo CONNECTOR_TYPE=python bash |
| Windows PowerShell | $env:CONNECTOR_TYPE = 'python'; irm "https://api.patcherly.com/install.ps1" | iex |
The CLI prints a verification URL and a short user code — open the URL, sign in, pick your target, and confirm. Credentials are saved to ~/.patcherly/credentials.json (or /root/.patcherly/ when run as root). Then start the agent — see After install.
Full installer options (paths, SKIP_LOGIN, older versions): Installing a connector.
Package install (PyPI)
pip install patcherly-connector
patcherly login
With the release-tree / universal-installer layout, start the agent:
python patcherly_agent.py
Or from your app (credentials from ~/.patcherly/credentials.json):
from patcherly_agent import PatcherlyAgent
agent = PatcherlyAgent(log_file="logs/error.log")
await agent.start()
Optional on quiet hosts: patcherly heartbeat from a daily cron / systemd timer — see the Python guide.
Pair later (or re-pair)
| Install method | Command |
|---|---|
| Universal installer (Linux/macOS) | sudo /opt/patcherly-connector/start.sh login |
| Universal installer (Windows) | & "$env:USERPROFILE\patcherly-connector\start.ps1" login |
| pip | patcherly login |
On Linux, use
sudowhen the installer enabled the root-runpatcherly-connectorsystemd unit so credentials land in/root/.patcherly/.
After install
- Status and approvals: Targets in your Patcherly dashboard.
- Start and keep the agent running — on Linux with the universal installer:
systemctl start patcherly-connector. Otherwise runstart.sh/start.ps1, orpython patcherly_agent.py. Details: Python connector guide. - Path exclusions and patch policies: Path rules for targets.
Test Mode (sample error)
- In the dashboard: Targets → your target → Test Mode ON (30-minute window).
- On the host:
patcherly send-test
Samples are flagged and do not affect metrics or notifications. See Verify detection with send-test.
Context consent
Default is full. Change with:
patcherly context get
patcherly context set full|minimal|off
patcherly context upload
Env override: PATCHERLY_CONTEXT_CONSENT (overrides {PATCHERLY_CACHE_DIR}/context_consent). off skips uploads; minimal sends runtime/OS/framework only.
Security
OAuth pairing and per-token HMAC signing; fix payloads are verified before apply. Built-in redaction runs before ingest; you can add custom sanitizer patterns per target.
- Connectors overview
- Python connector — HMAC
- Prompt injection protection
- Custom sanitizer patterns
- Post-apply restart safety
- Hardening: backup folders
Documentation & support
- Python connector guide — install, systemd, troubleshooting
- Connectors overview · All connectors
- Discord · Dashboard · Report a bug
License
Using the Patcherly service is governed by our Terms of Service and Acceptable Use policy. Official product support applies only to unmodified connector releases from our official sources.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file patcherly_connector-2.4.4.tar.gz.
File metadata
- Download URL: patcherly_connector-2.4.4.tar.gz
- Upload date:
- Size: 73.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e7a379282e110eb6de430b6c8d6b88336b1d0e88a7a1fb1726ef64b819678d2
|
|
| MD5 |
6a561ae74a52afbabcd751321b8e2320
|
|
| BLAKE2b-256 |
83d717bdac8fafdd95f2d23ca6a16dcdcd499791f1ee7a2aee8dfa742f61f7d8
|
Provenance
The following attestation bundles were made for patcherly_connector-2.4.4.tar.gz:
Publisher:
publish-pypi-connector.yml on Patcherly-Official/patcherly-connector-packages
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
patcherly_connector-2.4.4.tar.gz -
Subject digest:
2e7a379282e110eb6de430b6c8d6b88336b1d0e88a7a1fb1726ef64b819678d2 - Sigstore transparency entry: 2331542938
- Sigstore integration time:
-
Permalink:
Patcherly-Official/patcherly-connector-packages@b2ce02536ab5a654b57eefbb363dee62930da8fc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Patcherly-Official
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi-connector.yml@b2ce02536ab5a654b57eefbb363dee62930da8fc -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file patcherly_connector-2.4.4-py3-none-any.whl.
File metadata
- Download URL: patcherly_connector-2.4.4-py3-none-any.whl
- Upload date:
- Size: 77.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d5739bb4f7345dff17376d90dd803167aa86e5f8eb318da2fcc197dbccf120d
|
|
| MD5 |
67fcf8ceff91fc7f9c6b38db2a29ecaf
|
|
| BLAKE2b-256 |
f388098c6128243099365cc5dfe00114a568eb54618f4dfd96927cb50fe8ffb9
|
Provenance
The following attestation bundles were made for patcherly_connector-2.4.4-py3-none-any.whl:
Publisher:
publish-pypi-connector.yml on Patcherly-Official/patcherly-connector-packages
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
patcherly_connector-2.4.4-py3-none-any.whl -
Subject digest:
7d5739bb4f7345dff17376d90dd803167aa86e5f8eb318da2fcc197dbccf120d - Sigstore transparency entry: 2331543448
- Sigstore integration time:
-
Permalink:
Patcherly-Official/patcherly-connector-packages@b2ce02536ab5a654b57eefbb363dee62930da8fc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Patcherly-Official
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi-connector.yml@b2ce02536ab5a654b57eefbb363dee62930da8fc -
Trigger Event:
workflow_dispatch
-
Statement type: