PyTextBin
PyTextBin is a versatile Python library facilitating seamless conversion between text, binary, JSON, base64, xml and CSV formats with ease.' See the documentaion for more information
Installation
You can install PyTextBin using pip from PyPI:
pip install PyTextBin
Alternatively, you can find the project on GitHub:
Usage
Text and Binary
# Import everything from textbin
from pytextbin import *
#To begin, create an object from the Textbin() class, which you'll use to access all the methods.
# 0) create textbin_obj instance
textbin_obj = pytextbin.Textbin()
# 1) convert text to binary
text = 'hello world'
converted = textbin_obj.to_binary(text)
print("to_binary>>", converted)
# 2) convert json data to a base64 string
json_data = { 'id' : 12 , 'name' : 'Collins' }
converted = textbin_obj.json_to_base64(json_data)
print("json_to_base64>>", converted)
base64_data = 'eyJpZCI6IDEyLCAibmFtZSI6ICJDb2xsaW5zIn0='
converted = textbin_obj.base64_to_json(base64_data)
print("base64_to_json>>", converted)
Contributions
Contributions to PyTextBin are welcome! You can find the project's GitHub repository and contribute to its development.
Contributors
Your contributions are highly appreciated! We hope that PyTextBin proves helpful to you. Thank you for using it.
I hope it be of help to you thank you. Collins O. Odhiambo
Metadata
Release files for PyTextBin 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| PyTextBin-0.0.3.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PyTextBin-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / PyTextBin-0.0.3.tar.gz
| Download URL | PyTextBin-0.0.3.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a94f8198af54b23e56c2c228a0afaf25932d022bd5f54bbfe19ab9ef2df912f
|
|
BLAKE2b-256 checksum How to use checksums |
40eab49469e0f4aa36530256a7c973a3cf446c0f9ba29833a03c82bc63c696d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Release files / PyTextBin-0.0.3-py3-none-any.whl
| Download URL | PyTextBin-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1205a35ca9d6e83361c29b5e491d8eebd228b391412ba2246cdfaf4bad6beeeb
|
|
BLAKE2b-256 checksum How to use checksums |
f9fb0cb357e6aefbf95837b82f4c3527bd156db15b3b10fbf83049911f2492ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|