Skip to main content

A library for converting numbers to different number systems (2-36)

Reason this release was yanked:

Type Error Handler Bug

Project description

Last Big Update: 1.1.0

- Added Support For Negative Numbers.

- A New Function «resys» For Converting To Decimal.

- New Error Handler.

- New Readme.


Sys Converter

A library for converting numbers to different number systems (from binary to base-36).

Features

  • Convert integers to any number system (2-36).
  • Convert fractional numbers with precision up to 10 decimal places.
  • Error handling with clear messages.
  • Support for floating-point numbers.

Installation

pip install sys-converter

Usage

  • To import, use «from sys_converter import *» or «from sys_converter import sys, resys».
  • To use the library functions, use the command «sys(number: int, number_system_base: int)» or «resys(number: str, number_system_base: int)».

For example

This program accepts an integer (int) as input and outputs this number in the base-4 number system.

from sys_converter import sys

temp_num = int(input()) # Input: 26
new_num = sys(temp_num, 4)

print(new_num) # Output: 122

Requirements

  • Python 3.6 or higher.
  • No external dependencies (uses only standard library).

Limitations

Limitation Details
Maximum base 36 (uses digits 0–9 and letters A–Z)
Fractional precision Fixed at 10 decimal places
Input type Integer, float or string only (look at «Usage»)

Error Handling

The library includes a comprehensive error handling system that validates inputs and provides clear, informative error messages.

Error Types

Error Description
Base out of range The number system base must be between 2 and 36
Base is not an integer The base parameter cannot be a floating-point number
Base is missing The base parameter is required

Error Examples

from sys_converter import *

# Invalid base (greater than 36)
result = sys(42, 37)
print(result)
# Output:
# ERROR! The base of the number system cannot be greater than 36

# Invalid base (less than 2)
result = sys(42, 1)
print(result)
# Output:
# ERROR! The base of the number system cannot be less than 2

# Base as float
result = sys(42, 4.5)
print(result)
# Output:
# ERROR! The base of the number system cannot be float number

# Not a number
result = resys("-4-2", 10)
print(result)
# Output:
# ERROR! The converted number is not a valid integer

# Multiple errors (all displayed)
result = sys(-42, 1.5)
print(result)
# Output:
# ERROR! The base of the number system cannot be less than 2
# ERROR! The base of the number system cannot be float number

Changelog

Version Date Commit
0.1.0 10.03.2026 Beta: First Beta Version On PyPI
0.1.1 10.03.2026 Beta: Fixed Critical Bugs
0.1.2 10.03.2026 Beta: Fixed Critical Bugs And New Error Handling
1.0.0 31.03.2026 Release: New Readme
1.0.1 31.03.2026 Release: New Readme
1.0.2 31.03.2026 Release: Without Changes
1.1.0 02.04.2026 Release: Added Support For Negative Numbers, A New «resys» Function, A New Error Handler And A New Readme
1.1.1 02.04.2026 Release: Fixed Critical Bugs
1.1.2 02.04.2026 Release: Fixed Critical Bugs
1.1.3 03.04.2026 Release: Fixed Error Handler Bugs
1.1.4 03.04.2026 Release: Added Support Float Numbers For «resys» Function And A New Error Handler
1.1.5 04.04.2026 Release: Redesigned Translation Of Float Numbers By The «sys» Function
1.1.6 04.04.2026 Release: Fixed Readme And A New Error Handler
1.1.7 04.04.2026 Release: A New Type Error Handler
1.1.8 04.04.2026 Release: Fixed Type Error Handler Bug
Made by the Hi Team.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sys_converter-1.1.8.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sys_converter-1.1.8-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file sys_converter-1.1.8.tar.gz.

File metadata

  • Download URL: sys_converter-1.1.8.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for sys_converter-1.1.8.tar.gz
Algorithm Hash digest
SHA256 eea4168e3185b21dee8d2fa1d8c61e1fc221b6a3eb3c997b4cc8a2d2459198ed
MD5 5e1047ffc97f34b1b34ad7aa780762eb
BLAKE2b-256 3ddfb4972d54d78f58baa54243cc6fe49523f95b1706f1df86f8d6063f973dae

See more details on using hashes here.

File details

Details for the file sys_converter-1.1.8-py3-none-any.whl.

File metadata

  • Download URL: sys_converter-1.1.8-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for sys_converter-1.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 97b54803b61b6381a8d3022a920a4c3a0032c5f725fecd3a3684f3caa110c904
MD5 a3c7d48c1cb792b7a3a631fcfd2698f3
BLAKE2b-256 395079e1f807200c50c42283c682f5beb5722809597f99badd0cefcff5c6d4d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page