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

Uploaded Source

Built Distribution

base64c-0.0.5-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: base64c-0.0.5.tar.gz
  • Upload date:
  • Size: 3.7 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.5.tar.gz
Algorithm Hash digest
SHA256 ba321e52361714d2e67481414e8d188351e2249adab633fb3973164bfa3667c1
MD5 3c986ef1327209e9d4f0c8571890c92d
BLAKE2b-256 781b498f67762c2f5389c2aa7faa075e7d733a48671709ed5fcfd83b8b886159

See more details on using hashes here.

File details

Details for the file base64c-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: base64c-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8e7fde9d6fecdab69c541f8232a6e2ddb97ff89d869dc63b7eda433860c6e3d3
MD5 5e4e2a1ef7d52e5b190ca91d4753e731
BLAKE2b-256 34ae847cb7b1552bf6c2015d0b16720644f36f2b55b4f9ad60f91400755170e5

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