nexium-storage
Official Python SDK for NEXIUM Storage — upload, serve and manage files via a simple API.
Install
pip install nexium-storage
# For file upload support:
pip install "nexium-storage[requests]"
Quick start
import os
from nexium_storage import NexiumStorage
storage = NexiumStorage(api_key=os.getenv("NEXIUM_API_KEY"))
# Upload
with open("photo.jpg", "rb") as f:
file = storage.upload(bucket_id, f, "photo.jpg", "image/jpeg")
print(file.url)
# List
result = storage.list(bucket_id, search="photo")
for f in result.files:
print(f.filename, f.size_bytes)
# Download URL
url = storage.download(file.id)
# Rename
storage.rename(file.id, "new-name.jpg")
# Delete
storage.delete(file.id)
Webhook verification
from nexium_storage import NexiumStorage, NexiumError
# Flask example
@app.route("/webhook", methods=["POST"])
def webhook():
try:
payload = NexiumStorage.verify_webhook(
request.get_data(),
request.headers.get("X-Nexium-Signature"),
os.getenv("NEXIUM_WEBHOOK_SECRET"),
)
print(payload["event"], payload["data"])
return "", 200
except NexiumError:
return "", 401
License
MIT
Metadata
Release files for nexium-storage 0.1.2
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 |
|---|---|---|---|---|
| nexium_storage-0.1.2.tar.gz | 4.4 kB | Without provenance | Details for nexium_storage-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nexium_storage-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for nexium_storage-0.1.2-py3-none-any.whl |
Total release size: 8.9 kB
Release files / nexium_storage-0.1.2.tar.gz
| Download URL | nexium_storage-0.1.2.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
150751eb90c718b744f96abdf1a4a505db23ff5f37d0bc9641e5ec91f9cd61df
|
|
BLAKE2b-256 checksum How to use checksums |
b2a8611c90be6409da7c3ec14bb9aa19c7708204a4656db037ea5123663a2dd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / nexium_storage-0.1.2-py3-none-any.whl
| Download URL | nexium_storage-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee437dbfe70cdec4f073d22941d9e071d21871dc5812ff10336c6b145f427d76
|
|
BLAKE2b-256 checksum How to use checksums |
7105bacdd37b6b1db4945e354f9c138d89c954d93890bea24468fa111f6257ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for nexium-storage 0.1.2
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.