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

Uploaded Python 3

File details

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

File metadata

  • Download URL: uploadcenter-0.2.2.tar.gz
  • Upload date:
  • Size: 37.2 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.2.tar.gz
Algorithm Hash digest
SHA256 195163906535a00e046a75548b985b34786826e51a325ae106189e883be34fc0
MD5 643d8c54d4e491c09829c336da50dc07
BLAKE2b-256 45156e9d3e13b2c59e22d75ca0d4b4385be73032ffb2a21567fae82e94fce694

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uploadcenter-0.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 df40881a21950d99afbd683dec6bdb4b0b71d64f207da23e548c69ae1eb068da
MD5 419f6e0637c836650e273be2b77108c5
BLAKE2b-256 1adbc902a606206cf05430508c2723f9723d0ad7a51a316ff5d61c0b6ba19d9c

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.4

2 files

This release

0.2.2 This release

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