serva
Official Python client for the Serva encode/decode API.
Install
pip install serva
Usage
Generate an API key from serva.servamind.com, then:
from serva import Serva
client = Serva(api_key="sk_live_...") # or set SERVA_API_KEY
# Encode a file to the .serva format
result = client.encode("photo.raw", password="my-secret")
print(result.output_path, result.savings_percent)
# Decode it back
client.decode("photo.serva", password="my-secret", output="photo.raw")
Configuration
| Setting | How | Default |
|---|---|---|
| API key | Serva(api_key=...) or SERVA_API_KEY |
— (required) |
| Base URL | Serva(base_url=...) or SERVA_BASE_URL |
https://serva.servamind.com |
Errors
All failures raise a subclass of ServaError: AuthError (401),
PaymentRequiredError (403), FileTooLargeError (413), RateLimitError (429).
Versioning
Semantic versioning. The current version is available as serva.__version__.
Metadata
Release files for serva 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 |
|---|---|---|---|---|
| serva-0.1.0.tar.gz | 5.4 kB | Without provenance | Details for serva-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| serva-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for serva-0.1.0-py3-none-any.whl |
Total release size: 12.0 kB
Release files / serva-0.1.0.tar.gz
| Download URL | serva-0.1.0.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e66da3907710ee0b596233fed4ef809f7ed0d67fe80bc77a20a998c4afda02bd
|
|
BLAKE2b-256 checksum How to use checksums |
1ac23bc95c5daba6e8766c10d4bd89c98b682128e48ccf3037b0ba4bd9117924
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / serva-0.1.0-py3-none-any.whl
| Download URL | serva-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
83413c7024e8487b180b3d9ddbc4da2561ebcb708aad82be8004795048bd4400
|
|
BLAKE2b-256 checksum How to use checksums |
b19c2859f2e6bbc527cbca270b942d74eda0d9fc7d7545f84c7022d10636d23a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Security for serva 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.