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.1.tar.gz (37.1 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.1-py3-none-any.whl (164.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: uploadcenter-0.2.1.tar.gz
  • Upload date:
  • Size: 37.1 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.1.tar.gz
Algorithm Hash digest
SHA256 0638c75346deba635cd981639aea0c60ce38b2b392314ad31bbdce7de4364947
MD5 2cce9192ee419be4e5f97fe63473ec31
BLAKE2b-256 a05d35a028928f9892752fb5d2cfa2080c93ca57eb67331b3370ca4f8f322900

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uploadcenter-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 164.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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 67eb58de0fd9a69c5b314143bfe6462474cee77f528c7343e79e7f12fc4d0a6a
MD5 4c9351cc9060dd2d069f249f62337b7a
BLAKE2b-256 0eeb56795d8a0f16092232a9d6c6c95093d17290dcd8de60cb8826254c94b5af

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.4

2 files

0.2.2

2 files

This release

0.2.1 This release

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