Skip to main content

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}

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)

Source distribution for fileshare-sdk 1.4.0
File Size Uploaded
fileshare_sdk-1.4.0.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fileshare-sdk 1.4.0
File Interpreter ABI Platform
fileshare_sdk-1.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / fileshare_sdk-1.4.0.tar.gz

Download URL fileshare_sdk-1.4.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b95a3e16cf82922c8c74295c2fe20584ca3e55bc92fb63cb92f95418d7bf5667
BLAKE2b-256 checksum
How to use checksums
4c32bbbd5e9e92791799f1235369a031c07075361d47b9b9363196a93ae34015
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / fileshare_sdk-1.4.0-py3-none-any.whl

Download URL fileshare_sdk-1.4.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7d3d21771d0eca100ba214a270250c23755a2867dba1eef0968d512e69f6117
BLAKE2b-256 checksum
How to use checksums
016eb956ba563653ba6473e58e2db9e4bdd7ce2571d1454996c4ca362977740f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page