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.7.tar.gz (2.7 MB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for base64c-0.0.7.tar.gz
Algorithm Hash digest
SHA256 e0740483e895a292f048e3a0a75b9d5f535a2a56c551c501288f64a0ac08b9c4
MD5 8231c6f8ef98d952f771903f4942d857
BLAKE2b-256 0f56018be758f8af0666adabeb30a5598d91c51ca3a853c79ffd5cd2e5f56819

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