# ✨ RadixHopper ✨
[![PyPI - Version](https://img.shields.io/pypi/v/radixhopper.svg)](https://pypi.org/project/radixhopper)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/radixhopper.svg)](https://pypi.org/project/radixhopper)
-----
🌟 Hop between number bases with ease! 🌟
RadixHopper is a Python library for efficient radix-based number system conversions, specializing in cyclic fractions handling, for bases 2 through 36.
## ✨ Features
- 🔢 Convert numbers between bases 2 to 36
- 🔄 Handle cyclic fractions with grace
- 🚀 Lightning-fast conversions
- 🎨 Beautiful CLI interface
- 🌈 Streamlit web app included
## 🌠 Installation
Sprinkle some magic into your Python environment:
```console
pip install radixhopper
```
## 🎭 Usage
### As a library
```python
from radixhopper import BaseConverter, ConversionInput
input_data = ConversionInput(num="3.14", base_from=10, base_to=2)
result = BaseConverter.base_convert(input_data)
print(result) # Output: 11.0[01000111101011100001]
```
### CLI
```console
radixhopper --num 3.14 --base-from 10 --base-to 2
```
### Web App
Run the Streamlit app:
```console
streamlit run radixhopper/st.py
```
## 🌟 Contributing
We welcome contributions! Please check our [Issues](https://github.com/Aarmn the limitless/radixhopper/issues) page for open tasks or suggest new features.
## 📜 License
`radixhopper` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
## ✅ TODO
- [ ] Make it an actual pip package
- [ ] Improve data taking in and out structure
- [ ] click
## 🌠 Star Gazing
```
* . . * * . . . * ..
. * . ✨ . . * . *
*. * . . * . * . . *
. . * . ✨ . . . .
. *. . . * . * . . *
* . . . . . . . .
. . . ✨ * . . * *
. * * . . * . * . .
. . . . . .
* . . * . * . . *
```
Happy hopping! ✨🐰✨
Raw data
{
"_id": null,
"home_page": null,
"name": "radixhopper",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "bases, conversion, cyclic fractions, math, mathematics, number system, radix",
"author": null,
"author_email": "aarmn <aarmn80@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/a8/74/6d679db121e3149a9fe9f7c9e193de437f90f9ab550b3c918c20bfa8d5c2/radixhopper-0.0.6.tar.gz",
"platform": null,
"description": "# \u2728 RadixHopper \u2728\n\n[![PyPI - Version](https://img.shields.io/pypi/v/radixhopper.svg)](https://pypi.org/project/radixhopper)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/radixhopper.svg)](https://pypi.org/project/radixhopper)\n\n-----\n\n\ud83c\udf1f Hop between number bases with ease! \ud83c\udf1f\n\nRadixHopper is a Python library for efficient radix-based number system conversions, specializing in cyclic fractions handling, for bases 2 through 36.\n\n## \u2728 Features\n\n- \ud83d\udd22 Convert numbers between bases 2 to 36\n- \ud83d\udd04 Handle cyclic fractions with grace\n- \ud83d\ude80 Lightning-fast conversions\n- \ud83c\udfa8 Beautiful CLI interface\n- \ud83c\udf08 Streamlit web app included\n\n## \ud83c\udf20 Installation\n\nSprinkle some magic into your Python environment:\n\n```console\npip install radixhopper\n```\n\n## \ud83c\udfad Usage\n\n### As a library\n\n```python\nfrom radixhopper import BaseConverter, ConversionInput\n\ninput_data = ConversionInput(num=\"3.14\", base_from=10, base_to=2)\nresult = BaseConverter.base_convert(input_data)\nprint(result) # Output: 11.0[01000111101011100001]\n```\n\n### CLI\n\n```console\nradixhopper --num 3.14 --base-from 10 --base-to 2\n```\n\n### Web App\n\nRun the Streamlit app:\n\n```console\nstreamlit run radixhopper/st.py\n```\n\n## \ud83c\udf1f Contributing\n\nWe welcome contributions! Please check our [Issues](https://github.com/Aarmn the limitless/radixhopper/issues) page for open tasks or suggest new features.\n\n## \ud83d\udcdc License\n\n`radixhopper` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.\n\n## \u2705 TODO\n\n - [ ] Make it an actual pip package\n - [ ] Improve data taking in and out structure\n - [ ] click \n\n## \ud83c\udf20 Star Gazing\n\n```\n * . . * * . . . * ..\n . * . \u2728 . . * . *\n *. * . . * . * . . *\n . . * . \u2728 . . . .\n . *. . . * . * . . *\n * . . . . . . . .\n . . . \u2728 * . . * *\n . * * . . * . * . .\n . . . . . .\n * . . * . * . . *\n```\n\nHappy hopping! \u2728\ud83d\udc30\u2728",
"bugtrack_url": null,
"license": null,
"summary": "A Python library for efficient radix-based number system conversions, specializing in cyclic fractions handling, for bases 2 through 36.",
"version": "0.0.6",
"project_urls": {
"Documentation": "https://github.com/aarmn/radixhopper#readme",
"Issues": "https://github.com/aarmn/radixhopper/issues",
"Source": "https://github.com/aarmn/radixhopper"
},
"split_keywords": [
"bases",
" conversion",
" cyclic fractions",
" math",
" mathematics",
" number system",
" radix"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "99530e524af3753f297e2670a10756922d288a02f980bc196c8471768711c595",
"md5": "ebc8a50b66080428f66b49842a4fef21",
"sha256": "5fc6210f9636f6d381e0bf1fd61d2a15856efb10ec8ea6cc90abd2344a6c0231"
},
"downloads": -1,
"filename": "radixhopper-0.0.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ebc8a50b66080428f66b49842a4fef21",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 7441,
"upload_time": "2024-09-03T06:24:48",
"upload_time_iso_8601": "2024-09-03T06:24:48.660546Z",
"url": "https://files.pythonhosted.org/packages/99/53/0e524af3753f297e2670a10756922d288a02f980bc196c8471768711c595/radixhopper-0.0.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a8746d679db121e3149a9fe9f7c9e193de437f90f9ab550b3c918c20bfa8d5c2",
"md5": "fd2b03d20089fdd5c7a40f9e8ab35276",
"sha256": "4c7828dfd93600d3c62673eb55d5c97b14dbab2aaa503d6b8db0a477db65c44d"
},
"downloads": -1,
"filename": "radixhopper-0.0.6.tar.gz",
"has_sig": false,
"md5_digest": "fd2b03d20089fdd5c7a40f9e8ab35276",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 6074,
"upload_time": "2024-09-03T06:24:50",
"upload_time_iso_8601": "2024-09-03T06:24:50.069839Z",
"url": "https://files.pythonhosted.org/packages/a8/74/6d679db121e3149a9fe9f7c9e193de437f90f9ab550b3c918c20bfa8d5c2/radixhopper-0.0.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-03 06:24:50",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "aarmn",
"github_project": "radixhopper#readme",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "radixhopper"
}