fileshare-sdk
Python client for iRuneCore — anonymous ephemeral file sharing.
- Default API:
https://irunecore.com - Plans:
base(10 min, free) ·plus(30 min, free) ·pro(1 hr, free) - Max file size: 50 MB (server-enforced)
Install
pip install fileshare-sdk
# or from a checkout:
pip install -e ./sdk
Quick start
from fileshare_sdk import FileShareClient
with FileShareClient() as client: # https://irunecore.com
info = client.info()
print(info.name, info.max_file_size_bytes)
for plan in info.plans:
print(plan.name, plan.label, plan.price_display)
shared = client.upload("notes.txt", plan="base")
print(shared.share_url)
print(shared.expires_at)
client.download(shared.id, "notes-copy.txt")
client.delete(shared.id)
Custom server
FileShareClient("http://localhost:8010")
Progress callback
def on_progress(loaded: int, total: int) -> None:
print(f"{loaded}/{total}")
with FileShareClient() as client:
client.upload("video.mp4", plan="pro", on_progress=on_progress)
Plans
| Plan | Lifetime | Price |
|---|---|---|
base |
10 minutes | Free |
plus |
30 minutes | Free |
pro |
1 hour | Free |
API methods
| Method | Description |
|---|---|
info() |
Server name, limits, plans, capacity |
capacity() |
Used / total / available bytes |
plans() |
List expiry plans |
upload(path, plan=…) |
Upload a file |
get(id) |
File metadata |
download(id, dest) |
Save bytes to disk |
delete(id) |
Delete early |
Network failures raise FileShareTransportError; non-2xx API responses raise
FileShareAPIError with status_code and detail attributes.
REST mapping
GET /api/v1/info
GET /api/v1/capacity
POST /api/v1/files multipart: file, plan
GET /api/v1/files/{id}
GET /api/v1/files/{id}/download
DELETE /api/v1/files/{id}
Metadata
Release files for fileshare-sdk 1.4.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 |
|---|---|---|---|---|
| fileshare_sdk-1.4.0.tar.gz | 5.6 kB | Without provenance | Details for fileshare_sdk-1.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fileshare_sdk-1.4.0-py3-none-any.whl | Python 3 | none | any | Details for fileshare_sdk-1.4.0-py3-none-any.whl |
Total release size: 10.9 kB
Security for fileshare-sdk 1.4.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.