# Base64C
A faster base64 encoding/decoding library for Python, implemented in C with SSSE3 and VSX optimizations.
## Installation
```bash
pip install base64c
```
## Usage
```python
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.
<br>
![Table](assets/table.png)
![Chart](assets/chart.png)
Raw data
{
"_id": null,
"home_page": "https://github.com/obahamonde/base64c",
"name": "base64c",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": "Oscar Bahamonde",
"author_email": "oscar.bahamonde@indiecloud.co",
"download_url": "https://files.pythonhosted.org/packages/04/94/f36ffdeb7b28f5e15ee5169e069ec2da4ca370b4609dc43e8962e5f0931a/base64c-0.0.8.tar.gz",
"platform": null,
"description": "# Base64C\n\nA faster base64 encoding/decoding library for Python, implemented in C with SSSE3 and VSX optimizations.\n\n## Installation\n\n```bash\npip install base64c\n```\n\n## Usage\n\n```python\n\nfrom base64c import b64encode, b64decode\n\nprint(b64encode(b\"Hello, World!\"))\nprint(b64decode(b64encode(b\"Hello, World!\")))\n```\n\n## License\n\nMIT\n\n## Performance\n\n* 3-24x faster than the stdlib `base64` module.\n* Performance increases with input size.\n* Tested across different types and sizes of inputs.\n\n<br>\n\n![Table](assets/table.png)\n![Chart](assets/chart.png)\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Fast Base64 encoding/decoding with SSE2 and VSX optimizations",
"version": "0.0.8",
"project_urls": {
"Homepage": "https://github.com/obahamonde/base64c"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0494f36ffdeb7b28f5e15ee5169e069ec2da4ca370b4609dc43e8962e5f0931a",
"md5": "4da31c5264f66b9326179a4f14960a15",
"sha256": "e2a2b09ff540cc3c80613e6bcaf29964833d5861a479e7ad7b6f19073962e6d7"
},
"downloads": -1,
"filename": "base64c-0.0.8.tar.gz",
"has_sig": false,
"md5_digest": "4da31c5264f66b9326179a4f14960a15",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 5047,
"upload_time": "2024-10-08T03:17:56",
"upload_time_iso_8601": "2024-10-08T03:17:56.640582Z",
"url": "https://files.pythonhosted.org/packages/04/94/f36ffdeb7b28f5e15ee5169e069ec2da4ca370b4609dc43e8962e5f0931a/base64c-0.0.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-08 03:17:56",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "obahamonde",
"github_project": "base64c",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "base64c"
}