Skip to main content

uploadcenter

Official Python SDK for the UploadCenter API — presigned uploads, file processing, transforms, webhooks, and more, fully typed and generated from UploadCenter's OpenAPI schema.

Install

pip install uploadcenter

Usage

import httpx

from uploadcenter import create_client
from uploadcenter.generated.api.uploads import (
    complete_upload_endpoint_v1_uploads_complete_post as complete_upload,
)
from uploadcenter.generated.api.uploads import (
    presign_upload_endpoint_v1_uploads_presign_post as presign_upload,
)
from uploadcenter.generated.models import CompleteUploadRequest, PresignUploadRequest

client = create_client(
    base_url="https://api.uploadcenter.com",
    token="sk_live_...",  # an API key from your project settings
)

presigned = presign_upload.sync(
    client=client,
    body=PresignUploadRequest(
        project_id="project_...",
        filename="photo.jpg",
        size_bytes=len(file_bytes),
        mime_type="image/jpeg",
        visibility="private",
    ),
)

httpx.put(
    presigned.upload_url,
    content=file_bytes,
    headers={"Content-Type": "image/jpeg"},
)

complete_upload.sync(
    client=client,
    body=CompleteUploadRequest(file_id=presigned.file_id),
)

Async equivalents (presign_upload.asyncio, complete_upload.asyncio, ...) are available for every endpoint — use them with httpx.AsyncClient and await your own PUT request.

Every module under uploadcenter.generated.api.<group> mirrors an OpenAPI tag (uploads, files, folders, projects, organizations, api_keys, domains, webhooks, notifications, usage, billing, auth), and exposes four functions per endpoint: sync, sync_detailed, asyncio, asyncio_detailed. Request/response models live under uploadcenter.generated.models and mirror the OpenAPI schema directly.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uploadcenter-0.2.4.tar.gz (38.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uploadcenter-0.2.4-py3-none-any.whl (168.3 kB view details)

Uploaded Python 3

File details

Details for the file uploadcenter-0.2.4.tar.gz.

File metadata

  • Download URL: uploadcenter-0.2.4.tar.gz
  • Upload date:
  • Size: 38.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.7

File hashes

Hashes for uploadcenter-0.2.4.tar.gz
Algorithm Hash digest
SHA256 243d92235a42c17e63da4e5006a3c7fbaf070c72bfeefb21db827477349ae07a
MD5 4c0384d3ad989db494e34b850046b0ac
BLAKE2b-256 ba5e9fd7b566539e09daa967ad42c457ad96310e17b89779b1225b04569ae1f7

See more details on using hashes here.

File details

Details for the file uploadcenter-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: uploadcenter-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 168.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.7

File hashes

Hashes for uploadcenter-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 aec74f08d97bfaffc8c3dc69ce81be6362af5a2751acff7e9b4f26dd2fb9d17b
MD5 140e4dbe374c3bad67c86db1874ff15b
BLAKE2b-256 41586feef0cd02bb819f113c90994d8633a6057b5c86a87932f0cb5f15f0311d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page