Drop-in boto3 replacement powered by Zig — 1.2x faster S3/DynamoDB, 115x with TurboAPI
Project description
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')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file faster_boto3-0.1.0.tar.gz.
File metadata
- Download URL: faster_boto3-0.1.0.tar.gz
- Upload date:
- Size: 372.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce69de2e16708d79c0eeb53b6ab7eae806a7303f4b9ebab36c3a3d7080cf0d94
|
|
| MD5 |
48484da72b0d4f84309aded521cb2970
|
|
| BLAKE2b-256 |
e00c17a38bd25e59f532716a825384b22083b68f9bc48274d7d5927dc8418bec
|
File details
Details for the file faster_boto3-0.1.0-py3-none-any.whl.
File metadata
- Download URL: faster_boto3-0.1.0-py3-none-any.whl
- Upload date:
- Size: 366.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
239da21b8f320b4df18c66fa6b1e036125708ea0e2a749497c84b4aac0a16b2c
|
|
| MD5 |
0f8e0077d94b912446cb511646366cd9
|
|
| BLAKE2b-256 |
ad5623ded5c2a7c61e0658fc0f0e06deb7372d002434092e0f910205f6fab79e
|