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.8.tar.gz (5.0 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: base64c-0.0.8.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for base64c-0.0.8.tar.gz
Algorithm Hash digest
SHA256 e2a2b09ff540cc3c80613e6bcaf29964833d5861a479e7ad7b6f19073962e6d7
MD5 4da31c5264f66b9326179a4f14960a15
BLAKE2b-256 0494f36ffdeb7b28f5e15ee5169e069ec2da4ca370b4609dc43e8962e5f0931a

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