binapy


Namebinapy JSON
Version 0.7.0 PyPI version JSON
download
home_pagehttps://github.com/guillp/binapy
SummaryBinary Data manipulation, for humans.
upload_time2023-07-24 07:34:40
maintainer
docs_urlNone
authorGuillaume Pujol
requires_python>=3.8
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            # BinaPy

[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)
[![Downloads](https://pepy.tech/badge/binapy/month)](https://pepy.tech/project/binapy)
[![Supported Versions](https://img.shields.io/pypi/pyversions/binapy.svg)](https://pypi.org/project/binapy)
[![PyPi version](https://badgen.net/pypi/v/binapy)](https://badgen.net/pypi/v/binapy)
[![PyPI status](https://img.shields.io/pypi/status/binapy.svg)](https://pypi.python.org/pypi/binapy/)
[![PyPi license](https://badgen.net/pypi/license/binapy/)](https://pypi.com/project/binapy/)

**BinaPy** is a module that makes Binary Data manipulation simpler and easier than what is offered in the Python standard library.

With BinaPy, encoding or decoding data in a number of formats (base64, base64url, hex, url-encoding, etc.), compressing or decompressing (gzip), hashing (SHA1, SHA256, MD5, etc., with or without salt), is all a single method call away! And you can extend it with new formats and features.

```python
from binapy import BinaPy

bp = BinaPy("Hello, World!").to("deflate").to("b64u")
print(bp)
# b'80jNycnXUQjPL8pJUQQA'
bp.decode_from("b64u").decode_from("deflate").decode()
# "Hello, World!"
isinstance(bp, bytes)
# True
```

- Free software: MIT
- Documentation: <https://guillp.github.io/binapy/>

## Features

- Fluent interface, based on a `bytes` subclass
- Provides a convenient interface over `hashlib`, `base64`, `zlib`, `urllib.parse`, `json` and more
- Easy to extend with new formats

## TODO

- add more parsing formats like YAML, CBOR, etc.
- optionally use faster third-party modules when available


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/guillp/binapy",
    "name": "binapy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "Guillaume Pujol",
    "author_email": "guill.p.linux@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/0d/18/322295f816bc7865b9a778c353af922e8d72e22a76bcd0490cfc7f2ff2c1/binapy-0.7.0.tar.gz",
    "platform": null,
    "description": "# BinaPy\n\n[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)\n[![Downloads](https://pepy.tech/badge/binapy/month)](https://pepy.tech/project/binapy)\n[![Supported Versions](https://img.shields.io/pypi/pyversions/binapy.svg)](https://pypi.org/project/binapy)\n[![PyPi version](https://badgen.net/pypi/v/binapy)](https://badgen.net/pypi/v/binapy)\n[![PyPI status](https://img.shields.io/pypi/status/binapy.svg)](https://pypi.python.org/pypi/binapy/)\n[![PyPi license](https://badgen.net/pypi/license/binapy/)](https://pypi.com/project/binapy/)\n\n**BinaPy** is a module that makes Binary Data manipulation simpler and easier than what is offered in the Python standard library.\n\nWith BinaPy, encoding or decoding data in a number of formats (base64, base64url, hex, url-encoding, etc.), compressing or decompressing (gzip), hashing (SHA1, SHA256, MD5, etc., with or without salt), is all a single method call away! And you can extend it with new formats and features.\n\n```python\nfrom binapy import BinaPy\n\nbp = BinaPy(\"Hello, World!\").to(\"deflate\").to(\"b64u\")\nprint(bp)\n# b'80jNycnXUQjPL8pJUQQA'\nbp.decode_from(\"b64u\").decode_from(\"deflate\").decode()\n# \"Hello, World!\"\nisinstance(bp, bytes)\n# True\n```\n\n- Free software: MIT\n- Documentation: <https://guillp.github.io/binapy/>\n\n## Features\n\n- Fluent interface, based on a `bytes` subclass\n- Provides a convenient interface over `hashlib`, `base64`, `zlib`, `urllib.parse`, `json` and more\n- Easy to extend with new formats\n\n## TODO\n\n- add more parsing formats like YAML, CBOR, etc.\n- optionally use faster third-party modules when available\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Binary Data manipulation, for humans.",
    "version": "0.7.0",
    "project_urls": {
        "Homepage": "https://github.com/guillp/binapy"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0dc0832f6d03dd22f4031df0dac17a8461626644d959170f4bebbf8002081158",
                "md5": "08940e2a3f7cf6fa8b5080a606b9851a",
                "sha256": "739cd5bebd52715b8c8face6ff815bf5798306cf276b392e959ada85b9a9bee6"
            },
            "downloads": -1,
            "filename": "binapy-0.7.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "08940e2a3f7cf6fa8b5080a606b9851a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 15147,
            "upload_time": "2023-07-24T07:34:38",
            "upload_time_iso_8601": "2023-07-24T07:34:38.833315Z",
            "url": "https://files.pythonhosted.org/packages/0d/c0/832f6d03dd22f4031df0dac17a8461626644d959170f4bebbf8002081158/binapy-0.7.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0d18322295f816bc7865b9a778c353af922e8d72e22a76bcd0490cfc7f2ff2c1",
                "md5": "47eeb037ba8314eaeba548247372f9b4",
                "sha256": "e26f10ec6566a670e07dcc9de4c223be60984a7b1a2e5436b7eb6555f1d9d23b"
            },
            "downloads": -1,
            "filename": "binapy-0.7.0.tar.gz",
            "has_sig": false,
            "md5_digest": "47eeb037ba8314eaeba548247372f9b4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 18375,
            "upload_time": "2023-07-24T07:34:40",
            "upload_time_iso_8601": "2023-07-24T07:34:40.333471Z",
            "url": "https://files.pythonhosted.org/packages/0d/18/322295f816bc7865b9a778c353af922e8d72e22a76bcd0490cfc7f2ff2c1/binapy-0.7.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-24 07:34:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "guillp",
    "github_project": "binapy",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "binapy"
}
        
Elapsed time: 0.45933s