binapy-0.6.0
توضیحات
Binary Data manipulation, for humans.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | binapy-0.6.0 |
| نام | binapy |
| نسخه کتابخانه | 0.6.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Guillaume Pujol |
| ایمیل نویسنده | guill.p.linux@gmail.com |
| آدرس صفحه اصلی | https://github.com/guillp/binapy |
| آدرس اینترنتی | https://pypi.org/project/binapy/ |
| مجوز | MIT |
# BinaPy
[](https://www.python.org/)
[](https://pepy.tech/project/binapy)
[](https://pypi.org/project/binapy)
[](https://pypi.com/project/binapy/)
[](https://pypi.python.org/pypi/binapy/)
[](https://github.com/guillp/binapy/commit/)
[](https://github.com/guillp/binapy/commit/)
**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
نیازمندی
| مقدار | نام |
|---|---|
| >=4.3.0,<5.0.0 | typing-extensions |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl binapy-0.6.0:
pip install binapy-0.6.0.whl
نصب پکیج tar.gz binapy-0.6.0:
pip install binapy-0.6.0.tar.gz