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.

Metadata

Release files for uploadkit-testing 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uploadkit-testing 0.1.0
File Size Uploaded Provenance
uploadkit_testing-0.1.0.tar.gz 19.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for uploadkit-testing 0.1.0
File Interpreter ABI Platform
uploadkit_testing-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.0 kB

Release files / uploadkit_testing-0.1.0.tar.gz

Download URL uploadkit_testing-0.1.0.tar.gz
Size 19.5 kB
Tags Source
SHA-256 checksum
How to use checksums
65db41c785f3659834228a5cf9274bf636c291945cbc71888bc478d9c6c7aff1
BLAKE2b-256 checksum
How to use checksums
1fbdcdd2e7e667f3fa25c2437b1e4d35e9c8b58670465b40e10eae41d0b1797b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Release files / uploadkit_testing-0.1.0-py3-none-any.whl

Download URL uploadkit_testing-0.1.0-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d084334c709b183f76cbf3452e7435bfabc138e3342f1643c32751102cc9b25
BLAKE2b-256 checksum
How to use checksums
702d04ccb4aab1c6a1912538a2f9ca53e1a19ea4e90862de798071094927a25d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Security for uploadkit-testing 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page