Skip to main content

faster-boto3

Drop-in boto3 acceleration layer powered by Zig. Same API, faster internals.

Approach

NOT a boto3 rewrite. Instead, we replace the slow Python internals with Zig:

Component boto3 (Python) faster-boto3 (Zig) Expected speedup
SigV4 signing hmac + hashlib Zig std.crypto.auth.hmac 5-10x
XML parsing (S3) xml.etree.ElementTree Zig XML parser 10-20x
JSON parsing (DynamoDB) json.loads Zig JSON parser 5-10x
HTTP client urllib3 (pure Python) Zig std.http.Client 3-5x
Request serialization string formatting Zig bufPrint 5-10x

Architecture

faster_boto3/
  __init__.py          # Drop-in: `from faster_boto3 import Session`
  session.py           # Wraps boto3.Session, injects Zig accelerators
  _accel.zig           # Zig native module (SigV4, parsers, HTTP)
  sigv4.zig            # HMAC-SHA256 signing
  parsers.zig          # XML + JSON response parsing

Feature Parity

boto3 has 551 unit tests and 905 functional tests. We use these as our compatibility gate:

# Run boto3's own tests against faster-boto3
python -m pytest tests/unit/ tests/functional/ -v

Phase 1: SigV4 Signing

The signing hot path runs on every single AWS API call. Moving it to Zig gives immediate speedup across all services (S3, DynamoDB, Lambda, etc).

Usage (target API)

# Option 1: Monkey-patch boto3
import faster_boto3
faster_boto3.patch()  # replaces slow internals with Zig

import boto3
s3 = boto3.client('s3')  # now uses Zig signing + parsing

# Option 2: Direct import
from faster_boto3 import Session
session = Session()
s3 = session.client('s3')

Metadata

Release files for turboboto 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 turboboto 0.1.0
File Size Uploaded Provenance
turboboto-0.1.0.tar.gz 370.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 736.7 kB

Release files / turboboto-0.1.0.tar.gz

Download URL turboboto-0.1.0.tar.gz
Size 370.7 kB
Tags Source
SHA-256 checksum
How to use checksums
eb23928987222a2694cc6e0241461a5dfa2d81d99c1f2c263c1e972862e2c856
BLAKE2b-256 checksum
How to use checksums
3a935e49ebe2c08861efe1e3740169ab3a21ab2b9e7a699cecd6c7cef60d58e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

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

Download URL turboboto-0.1.0-py3-none-any.whl
Size 366.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7205c610e53ee297767654f05e8d21f4b56f09607d86b2bbd2c0326fff622b29
BLAKE2b-256 checksum
How to use checksums
83cf717288b26f978138c4dc916f5b4443244f7882a8fb576631c5ec4e6117a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Security for turboboto 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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