A Python library for efficient radix-based number system conversions, specializing in cyclic fractions handling, for bases 2 through 36.
Project description
✨ 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:
pip install radixhopper
🎭 Usage
As a library
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
radixhopper --num 3.14 --base-from 10 --base-to 2
Web App
Run the Streamlit app:
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 license.
✅ TODO
- Make it an actual pip package
- Improve data taking in and out structure
- click
🌠 Star Gazing
* . . * * . . . * ..
. * . ✨ . . * . *
*. * . . * . * . . *
. . * . ✨ . . . .
. *. . . * . * . . *
* . . . . . . . .
. . . ✨ * . . * *
. * * . . * . * . .
. . . . . .
* . . * . * . . *
Happy hopping! ✨🐰✨
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file radixhopper-0.0.6.tar.gz
.
File metadata
- Download URL: radixhopper-0.0.6.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c7828dfd93600d3c62673eb55d5c97b14dbab2aaa503d6b8db0a477db65c44d |
|
MD5 | fd2b03d20089fdd5c7a40f9e8ab35276 |
|
BLAKE2b-256 | a8746d679db121e3149a9fe9f7c9e193de437f90f9ab550b3c918c20bfa8d5c2 |
File details
Details for the file radixhopper-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: radixhopper-0.0.6-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fc6210f9636f6d381e0bf1fd61d2a15856efb10ec8ea6cc90abd2344a6c0231 |
|
MD5 | ebc8a50b66080428f66b49842a4fef21 |
|
BLAKE2b-256 | 99530e524af3753f297e2670a10756922d288a02f980bc196c8471768711c595 |