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.0.tar.gz (35.8 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.0-py3-none-any.whl (158.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: uploadcenter-0.2.0.tar.gz
  • Upload date:
  • Size: 35.8 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.0.tar.gz
Algorithm Hash digest
SHA256 03f1456417fabe6d0f6aaf34a26c4f73ae9c80b354f136648d01d26c1a244919
MD5 a6f4f0dfbd469cf5b6638c4cbac7c373
BLAKE2b-256 5ff107fb1fc9d4bbdffaf9abb344427a0c237ac5536be91d7a7fb596994ac8db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uploadcenter-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 158.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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e8836adbe51b17556a37ea1abd75be7cd89fb2a84bca28da57a1f0635e1a7403
MD5 d5d1ceb994c01b741efb51b83af90bd7
BLAKE2b-256 26f1c25aa6c46f574ddda698f074da433bab31f23fd0ea47efd42a73f579d6c6

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.4

2 files

0.2.2

2 files

0.2.1

2 files

This release

0.2.0 This release

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