A previous release had provenance metadata, but this release does not. View details.
Reversal SDK — Python
Client Python officiel pour l'API Reversal Engine.
Installation
pip install reversal-sdk
Ou depuis les sources :
pip install ./sdk/python
Démarrage rapide
from reversal_sdk import ReversalClient
client = ReversalClient(api_key="sk-rev-...")
# Analyser une URL
result = client.reverse("https://example.com")
print(result["content_type"], result["content"])
# Analyser un fichier local (upload automatique)
result = client.reverse("rapport.pdf")
# Mode asynchrone — soumettre un job
job = client.submit_job("gros-fichier.pdf")
# … attendre le résultat en polling
result = client.wait_for_job(job["job_id"])
# Ou streamer les événements en temps réel
for event in client.stream_job(job["job_id"]):
print(event["event"], event["data"])
# Uploader un fichier manuellement
info = client.upload("document.pdf")
result = client.reverse(f"file:{info['file_id']}")
# Batch (jusqu'à 10 sources)
results = client.batch(["https://a.com", "https://b.com"])
# Infos compte
me = client.me()
print(me["plan"], me["usage"], "/", me["quota"])
Référence API
| Méthode | Description |
|---|---|
reverse(source, *, async_mode, extra) |
Parse une source, retourne le résultat structuré |
submit_job(source) |
Équivalent à reverse(..., async_mode=True) |
wait_for_job(job_id, *, poll_interval, timeout) |
Polling jusqu'à done ou failed |
get_job(job_id) |
Récupère l'état courant d'un job |
stream_job(job_id) |
Générateur d'événements SSE |
upload(path) |
Upload un fichier local |
batch(sources, *, async_mode) |
Parse plusieurs sources en une requête |
detect(source) |
Détecte le type sans parser |
delete_file(file_id) |
Supprime un fichier uploadé |
me() |
Infos compte (plan, usage, quota) |
Exceptions
from reversal_sdk import (
ReversalError, # base
AuthError, # 401 / 403
NotFoundError, # 404
RateLimitError, # 429
QuotaError, # 402
ServerError, # 5xx
)
Variables d'environnement
| Variable | Description |
|---|---|
REVERSAL_API_KEY |
Clé API (alternative à api_key=) |
Metadata
Release files for reversal-sdk 1.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Loss of provenance
These files do not have provenance metadata, despite files in a prior release including this data.
We recommend further investigation before installing these files. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| reversal_sdk-1.1.4.tar.gz | 7.6 kB | Without provenance | Details for reversal_sdk-1.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reversal_sdk-1.1.4-py3-none-any.whl | Python 3 | none | any | Details for reversal_sdk-1.1.4-py3-none-any.whl |
Total release size: 14.9 kB
Release files / reversal_sdk-1.1.4.tar.gz
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | reversal_sdk-1.1.4.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d670c57eab90d25328c38d2e56135df69c78915ee852d531c12ca0fcb584c6f9
|
|
BLAKE2b-256 checksum How to use checksums |
2433267fe89b4070a0bfba0371ea8728eb4e6d290f4563535938d000a930da23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / reversal_sdk-1.1.4-py3-none-any.whl
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | reversal_sdk-1.1.4-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b08761afd45518c83bc99ab57d64aadf58b4507b3874213579a4a377e40af962
|
|
BLAKE2b-256 checksum How to use checksums |
fedbe5035f909c18077d9ea3a463c8b16ec8aab8b497a1ac06154a62142cc73f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Security for reversal-sdk 1.1.4
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.
Loss of provenance
A previous release of these files had provenance metadata, but this release does not.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Release comparison
- Removed 1.1.1 2 files With provenance
- Added 1.1.4 2 files Without provenance
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.