Name | PyTextBin JSON |
Version |
0.0.3
JSON |
| download |
home_page | |
Summary | PyTextBin is a versatile Python library facilitating seamless conversion between text, binary, JSON, base64, xml and CSV formats with ease. |
upload_time | 2023-12-15 04:58:27 |
maintainer | |
docs_url | None |
author | Collins O. Odhiambo |
requires_python | |
license | |
keywords |
pytextbin
csv
xmml
base64
text
json
binary
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# PyTextBin
**PyTextBin** is a versatile Python library facilitating seamless conversion between text, binary, JSON, base64, xml and CSV formats with ease.'
See the [documentaion](https://github.com/Comon-tech/Pytextbin/) for more information
## Installation
You can install **PyTextBin** using pip from PyPI:
```bash
pip install PyTextBin
```
Alternatively, you can find the project on GitHub:
[GitHub Repository](https://github.com/C-o-m-o-n/PyTextBin)
## Usage
### Text and Binary
```python
# 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.
- [GitHub Repository](https://github.com/C-o-m-o-n/textbin)
## Contributors
- [Collins O. Odhiambo](https://github.com/C-o-m-o-n)
- [Nathaniel Handan](https://github.com/Tinny-Robot)
- [Pabitra Banerjee](https://github.com/PB2204)
- [Roldex Stark](https://github.com/r0ld3x)
- [Lyubomir Ternavskiy](https://github.com/LyubomirT)
- [comony](https://github.com/comony)
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](https://github.com/C-o-m-o-n)
Raw data
{
"_id": null,
"home_page": "",
"name": "PyTextBin",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "PyTextBin,csv,xmml,base64,text,json,binary",
"author": "Collins O. Odhiambo",
"author_email": "<comon928@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/40/ea/b49469e0f4aa36530256a7c973a3cf446c0f9ba29833a03c82bc63c696d1/PyTextBin-0.0.3.tar.gz",
"platform": null,
"description": "\n# PyTextBin\n\n**PyTextBin** is a versatile Python library facilitating seamless conversion between text, binary, JSON, base64, xml and CSV formats with ease.'\nSee the [documentaion](https://github.com/Comon-tech/Pytextbin/) for more information\n\n\n## Installation\n\nYou can install **PyTextBin** using pip from PyPI:\n\n```bash\npip install PyTextBin\n```\n\nAlternatively, you can find the project on GitHub:\n\n[GitHub Repository](https://github.com/C-o-m-o-n/PyTextBin)\n\n## Usage\n\n### Text and Binary\n\n```python\n# Import everything from textbin\nfrom pytextbin import *\n\n#To begin, create an object from the Textbin() class, which you'll use to access all the methods.\n\n\n# 0) create textbin_obj instance \ntextbin_obj = pytextbin.Textbin()\n\n# 1) convert text to binary\ntext = 'hello world'\nconverted = textbin_obj.to_binary(text)\nprint(\"to_binary>>\", converted)\n\n# 2) convert json data to a base64 string\njson_data = { 'id' : 12 , 'name' : 'Collins' }\nconverted = textbin_obj.json_to_base64(json_data)\nprint(\"json_to_base64>>\", converted)\n\nbase64_data = 'eyJpZCI6IDEyLCAibmFtZSI6ICJDb2xsaW5zIn0='\nconverted = textbin_obj.base64_to_json(base64_data)\nprint(\"base64_to_json>>\", converted)\n\n```\n\n## Contributions\n\nContributions to **PyTextBin** are welcome! You can find the project's GitHub repository and contribute to its development.\n\n- [GitHub Repository](https://github.com/C-o-m-o-n/textbin)\n\n## Contributors\n- [Collins O. Odhiambo](https://github.com/C-o-m-o-n)\n- [Nathaniel Handan](https://github.com/Tinny-Robot)\n- [Pabitra Banerjee](https://github.com/PB2204)\n- [Roldex Stark](https://github.com/r0ld3x)\n- [Lyubomir Ternavskiy](https://github.com/LyubomirT)\n- [comony](https://github.com/comony)\n\nYour contributions are highly appreciated! We hope that **PyTextBin** proves helpful to you. Thank you for using it.\n\n#### I hope it be of help to you thank you. [Collins O. Odhiambo](https://github.com/C-o-m-o-n)\n",
"bugtrack_url": null,
"license": "",
"summary": "PyTextBin is a versatile Python library facilitating seamless conversion between text, binary, JSON, base64, xml and CSV formats with ease.",
"version": "0.0.3",
"project_urls": null,
"split_keywords": [
"pytextbin",
"csv",
"xmml",
"base64",
"text",
"json",
"binary"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f9fb0cb357e6aefbf95837b82f4c3527bd156db15b3b10fbf83049911f2492ab",
"md5": "58d5d191121217031c226868b05eb022",
"sha256": "1205a35ca9d6e83361c29b5e491d8eebd228b391412ba2246cdfaf4bad6beeeb"
},
"downloads": -1,
"filename": "PyTextBin-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "58d5d191121217031c226868b05eb022",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5145,
"upload_time": "2023-12-15T04:58:25",
"upload_time_iso_8601": "2023-12-15T04:58:25.568522Z",
"url": "https://files.pythonhosted.org/packages/f9/fb/0cb357e6aefbf95837b82f4c3527bd156db15b3b10fbf83049911f2492ab/PyTextBin-0.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "40eab49469e0f4aa36530256a7c973a3cf446c0f9ba29833a03c82bc63c696d1",
"md5": "31e413ea9d654c6007e05031442e4322",
"sha256": "5a94f8198af54b23e56c2c228a0afaf25932d022bd5f54bbfe19ab9ef2df912f"
},
"downloads": -1,
"filename": "PyTextBin-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "31e413ea9d654c6007e05031442e4322",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4927,
"upload_time": "2023-12-15T04:58:27",
"upload_time_iso_8601": "2023-12-15T04:58:27.450563Z",
"url": "https://files.pythonhosted.org/packages/40/ea/b49469e0f4aa36530256a7c973a3cf446c0f9ba29833a03c82bc63c696d1/PyTextBin-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-15 04:58:27",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pytextbin"
}