Turbo Base64
🚀 Lightning fast base64 encoding for Python
✨ Features
- 20-30x faster than the standard library
- Benchmarks faster than any other C base64 library
- Fastest implementation of AVX, AVX2, and AVX512 base64 encoding
- No other dependencies
⚡ How fast is it?
Graph generated from benchmark.py:
💻 Usage
>>> import turbob64
This will automatically detect the fastest algorithm your CPU is capable of and use it.
Encoding
>>> turbob64.b64encode(b'Hello World!')
b'SGVsbG8gV29ybGQh'
Decoding
>>> turbob64.b64decode(b'SGVsbG8gV29ybGQh')
b'Hello World!'
Other Functions
Directly call CPU-specific algorithms
Memory efficient (small lookup tables) scalar but slower version
turbob64.b64senc(b'Hello World!')
turbob64.b64sdec(b'SGVsbG8gV29ybGQh')
Fast scalar
turbob64.b64xenc(b'Hello World!')
turbo64.b64xdec(b'SGVsbG8gV29ybGQh')
ssse3 SIMD
turbob64.b64v128enc(b'Hello World!')
turbob64.b64v128dec(b'SGVsbG8gV29ybGQh')
avx SIMD
turbob64.b64v128aenc(b'Hello World!')
turbob64.b64v128adec(b'SGVsbG8gV29ybGQh')
avx2 SIMD
turbob64.b64v256enc(b'Hello World!')
turbob64.b64v256dec(b'SGVsbG8gV29ybGQh')
avx2 SIMD (optimized for short strings)
turbob64.b64v256enc_short(b'Hello World!')
turbob64.b64v256dec_short(b'SGVsbG8gV29ybGQh')
avx512_vbmi SIMD
turbob64.b64v512enc(b'Hello World!')
turbob64.b64v512dec(b'SGVsbG8gV29ybGQh')
Metadata
Release files for turbob64 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| turbob64-1.1.1.tar.gz | 46.3 kB | Without provenance | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| turbob64-1.1.1-cp311-cp311-win_amd64.whl | CPython 3.11 | CPython 3.11 | Windows x86-64 | Details |
| turbob64-1.1.1-cp310-cp310-win_amd64.whl | CPython 3.10 | CPython 3.10 | Windows x86-64 | Details |
| turbob64-1.1.1-cp39-cp39-win_amd64.whl | CPython 3.9 | CPython 3.9 | Windows x86-64 | Details |
| turbob64-1.1.1-cp38-cp38-win_amd64.whl | CPython 3.8 | CPython 3.8 | Windows x86-64 | Details |
| turbob64-1.1.1-cp37-cp37-win_amd64.whl | CPython 3.7 | CPython 3.7 | Windows x86-64 | Details |
Total release size: 375.6 kB
Release files / turbob64-1.1.1.tar.gz
| Download URL | turbob64-1.1.1.tar.gz |
|---|---|
| Size | 46.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
772be275821403c9854a9811143b18f3657e9e219a878879c45b2effd569f048
|
|
BLAKE2b-256 checksum How to use checksums |
cb717858095c8d9fe97b4cacd568e67abf1456540b1125c94804d59cd71a280a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.9
|
Release files / turbob64-1.1.1-cp311-cp311-win_amd64.whl
| Download URL | turbob64-1.1.1-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 66.3 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a7a947f9b24e6c14976e240f05474f7e08dbb138b66d7fa6bb66afb958fdd706
|
|
BLAKE2b-256 checksum How to use checksums |
b8aa1a400013a6b89864e6dc485450fbeb198c9f4d8e2b15de88dec424d68e31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / turbob64-1.1.1-cp310-cp310-win_amd64.whl
| Download URL | turbob64-1.1.1-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 65.7 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d20b754eb02b66337c02e03a2b4bed88eac4b6004184250c4a2f8960b9bae3ce
|
|
BLAKE2b-256 checksum How to use checksums |
aa9b2ee9801dd973325d7e089a87e50be07e5455adc50980267e1f603bb737d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / turbob64-1.1.1-cp39-cp39-win_amd64.whl
| Download URL | turbob64-1.1.1-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 65.7 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
e5b21c6cfd1e4ee10c0f95cab0f981713529fe0acda46dd784fada1ac3718210
|
|
BLAKE2b-256 checksum How to use checksums |
95e3520c2a8af1139b0ddf92bffea0cf9a03e2187fe820d8ab5ca8268548ebc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Release files / turbob64-1.1.1-cp38-cp38-win_amd64.whl
| Download URL | turbob64-1.1.1-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 65.8 kB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6815253529d61b70d5ada18f883f49b7690f328ca1d56e0a1af9d675b4ab4164
|
|
BLAKE2b-256 checksum How to use checksums |
fb41ce131440c5ce3564d5b3801a33a2e351bd8fb261232d7721032488fe6b71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / turbob64-1.1.1-cp37-cp37-win_amd64.whl
| Download URL | turbob64-1.1.1-cp37-cp37-win_amd64.whl |
|---|---|
| Size | 65.8 kB |
| Tags | CPython 3.7 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
339624cd8ddff522701c26e7a4ccf44ac2be15428a1372b090a21041feb47267
|
|
BLAKE2b-256 checksum How to use checksums |
a91477d80788a4f07c66e3b2f02983f55adf5c399577ebcbb0e7e3491c0a2c7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.9
|
Security for turbob64 1.1.1
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.