Skip to main content

Fast Base64 encoding/decoding with SSE2 and VSX optimizations

Project description

Base64C

A faster base64 encoding/decoding library for Python, implemented in C with SSSE3 and VSX optimizations.

Installation

pip install base64c

Usage

from base64c import b64encode, b64decode

print(b64encode(b"Hello, World!"))
print(b64decode(b64encode(b"Hello, World!")))

License

MIT

Performance

  • 3-24x faster than the stdlib base64 module.
  • Performance increases with input size.
  • Tested across different types and sizes of inputs.

Table Chart

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

base64c-0.0.4.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

base64c-0.0.4-cp310-cp310-manylinux_2_35_x86_64.whl (15.4 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.35+ x86-64

File details

Details for the file base64c-0.0.4.tar.gz.

File metadata

  • Download URL: base64c-0.0.4.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.15.0-122-generic

File hashes

Hashes for base64c-0.0.4.tar.gz
Algorithm Hash digest
SHA256 fa3b178a6e0cc2432f6c861ad3fa0a15e814bfb6686522e1738acd30a5694b56
MD5 87db5150e9d3f764360bb1b131352091
BLAKE2b-256 c2bd498dbba2801c910451bb74bedd3ef4a3588375dc1e3432303fe3c4f14771

See more details on using hashes here.

File details

Details for the file base64c-0.0.4-cp310-cp310-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for base64c-0.0.4-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 7378837c2850c4a3315f4ed95f0f699436c3672c61f136222e894f2d5bda411a
MD5 564c4c2cb56796ce1e6db3cdeffcc081
BLAKE2b-256 1b7e9d0f60f5146f572cbd0a8432fcd7cc10ac2ea049fb071710d0e215c36533

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page