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 faster-boto3 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 faster-boto3 0.1.0
File Size Uploaded Provenance
faster_boto3-0.1.0.tar.gz 372.3 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 738.3 kB

Release files / faster_boto3-0.1.0.tar.gz

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

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

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

Security for faster-boto3 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