Skip to main content

uploadkit-testing

Testing utilities for UploadKit.

What problem does this solve?

Provides fake storage providers, in-memory upload files, and assertion helpers so packages and apps can test upload pipelines without real object storage.

When to use it

Use this package in tests only.

When not to use it

Never ship this as runtime functionality in production.

Installation

Requires Python 3.10+.

pip install uploadkit-testing

Quick Start

from uploadkit import Uploader, UploadPolicy
from uploadkit_testing import FakeStorageProvider, make_upload_file

storage = FakeStorageProvider()
uploader = Uploader(UploadPolicy(), storage)
result = uploader.upload(
    make_upload_file(b"hello", name="hello.txt"),
    bucket="test",
    object_name="hello.txt",
)
assert result.etag == "fake-etag"

Architecture

Thin test doubles that satisfy UploadKit Core protocols. No production code paths.

Public API

Symbol Kind
FakeStorageProvider Public
MemoryUploadFile / make_upload_file Public
assert_raises_uploader_error / assert_upload_fails Public

Performance

Docker Compose harness for FastAPI upload performance (MinIO + curl smoke + k6 load) lives in perf/.

Changelog

See CHANGELOG.md.

Contributing

See CONTRIBUTING.md.

Download files

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

Source Distribution

uploadkit_testing-0.1.0.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

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

uploadkit_testing-0.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file uploadkit_testing-0.1.0.tar.gz.

File metadata

  • Download URL: uploadkit_testing-0.1.0.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.13

File hashes

Hashes for uploadkit_testing-0.1.0.tar.gz
Algorithm Hash digest
SHA256 65db41c785f3659834228a5cf9274bf636c291945cbc71888bc478d9c6c7aff1
MD5 d7aaa0d30bb910e9081d3258631ecbcf
BLAKE2b-256 1fbdcdd2e7e667f3fa25c2437b1e4d35e9c8b58670465b40e10eae41d0b1797b

See more details on using hashes here.

File details

Details for the file uploadkit_testing-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for uploadkit_testing-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d084334c709b183f76cbf3452e7435bfabc138e3342f1643c32751102cc9b25
MD5 35f45ea85e194abb139d411d14b99d96
BLAKE2b-256 702d04ccb4aab1c6a1912538a2f9ca53e1a19ea4e90862de798071094927a25d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

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