# 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": "cbase64",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": "Oscar Bahamonde",
"author_email": "Oscar Bahamonde <oscar.bahamonde@indiecloud.co>",
"download_url": "https://files.pythonhosted.org/packages/13/11/148698c59e154a014afaaf54580291eb5c7424f4b895b5c87f6d4a1faa48/cbase64-0.0.9.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",
"bugtrack_url": null,
"license": "MIT",
"summary": "Fast Base64 encoding/decoding with SSE2 and VSX optimizations",
"version": "0.0.9",
"project_urls": {
"Homepage": "https://github.com/obahamonde/base64c"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8c38a0fe2d55f7d7dd2a39b34ffba42e19fdc31401e456ebfbf1c9cbc1ca4ec2",
"md5": "d3cc40c09577013880d49f442ff82d9f",
"sha256": "a1cd2c3775b51d697d89ee5568d45b34bdb384244a224456a62e0b7d8b951be0"
},
"downloads": -1,
"filename": "cbase64-0.0.9-cp310-cp310-macosx_13_0_arm64.whl",
"has_sig": false,
"md5_digest": "d3cc40c09577013880d49f442ff82d9f",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.8",
"size": 8087,
"upload_time": "2024-10-17T08:34:38",
"upload_time_iso_8601": "2024-10-17T08:34:38.028611Z",
"url": "https://files.pythonhosted.org/packages/8c/38/a0fe2d55f7d7dd2a39b34ffba42e19fdc31401e456ebfbf1c9cbc1ca4ec2/cbase64-0.0.9-cp310-cp310-macosx_13_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1311148698c59e154a014afaaf54580291eb5c7424f4b895b5c87f6d4a1faa48",
"md5": "d9c39b62ea89919626185f6eee581a3d",
"sha256": "68a85cd5a707cc2176cb025d91a76d1892fbec9a0e6fe5d20bffc99604e7c497"
},
"downloads": -1,
"filename": "cbase64-0.0.9.tar.gz",
"has_sig": false,
"md5_digest": "d9c39b62ea89919626185f6eee581a3d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 6428,
"upload_time": "2024-10-17T08:34:39",
"upload_time_iso_8601": "2024-10-17T08:34:39.842414Z",
"url": "https://files.pythonhosted.org/packages/13/11/148698c59e154a014afaaf54580291eb5c7424f4b895b5c87f6d4a1faa48/cbase64-0.0.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-17 08:34:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "obahamonde",
"github_project": "base64c",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "cbase64"
}