Metadata-Version: 2.1
Name: praestans
Version: 0.1.2
Summary: python module that enables easy conversions between number systems
Home-page: https://github.com/apotursun963/praestans
Author: Abdullah Tursun
Author-email: tursunapo333@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE

praestans
----------

![veni2](https://github.com/user-attachments/assets/0e6e7ab9-7f72-470a-91a3-3b12860455d9)

This Python library allows you to easily convert between binary, octal, decimal, and hexadecimal number systems. 
You can perform conversions between different number systems quickly and accurately.
Whether you're doing basic calculations or working on software projects that involve numbers, this library saves you time. 
It's an ideal tool for those looking for a simple and effective solution.

  - Source code: https://github.com/apotursun963/praestans

Installation
------------
```
pip install praestans
```

Example usage
-------------
This library offers a total of 12 different functions to convert between binary, octal, decimal, and hexadecimal number systems. 
Here are 4 examples of these functions:
```python
from praestans.bin import binary_to_decimal
from praestans.dec import decimal_to_hexa
from praestans.oct import octal_to_decimal
from praestans.hex import hexa_to_binary


# Conversion from binary to decimal
binary = 1011
decimal_res = binary_to_decimal(binary)
print(f"binary: {binary} -> decimal: {decimal_res}")


# Conversion from octal to decimal
octal = 1771
decimal_res = octal_to_decimal(octal)
print(f"octal: {octal} -> decimal: {decimal_res}")


# Conversion from decimal to hexa
decimal = 255
hexa_res = decimal_to_hexa(decimal, "X")
print(f"decimal: {decimal} -> hexadecimal: {hexa_res}")


# Conversion from hexa to binary
hexa = "A32E"
binary_res = hexa_to_binary(hexa)
print(f"hexa: {hexa} -> binary: {binary_res}")
```

Running test
------------
```
python .\test.py
```
