A Package containing utils created by ItsNameless
Project description
ItsUtils
ItsUtils is a small utility-package created by ItsNameless.
The package contains some small utilities that i created for some bigger projects and that i wanted to give to the public, so you can create bigger projects too!
Installing
To install this package, simply use pip:
pip install ItsUtils
Or install the development version using:
pip install git+https://github.com/TheItsProjects/ItsUtils
Contributing
If you want to give me an idea for a new feature or want to create new features yourself, you can visit the GitHub Repository for this project:
https://github.com/TheItsProjects/ItsUtils
Features
These are the currently available features:
StringMath
from its_utils.string_math import StringMath
print(StringMath.full('1*10^45*(3+5)'))
This utility calculates the result of a stringified mathematical expression and returns the result as an integer.
It uses the Shunting-Yard algorithm and follows the correct order of operation rules.
WordMath
from its_utils.word_math import WordMath
print(WordMath.full('siebentausendvierhundertunddreiundachtzig'))
This utility returns the integer expression of a numeral.
Currently, it only works for the german language, but i may be later extended to support other languages too.
It works with numbers up to 999,999,999 (neunhundertneunundneunzig millionen neunhundertneunundneunzigtausendneunhundertundneunundneunzig)
, but may be later extend to even bigger numbers.
DebugPrompt
from its_utils.debug_prompt import Input
inp = Input.input("Type your name: ", 5)
This utility can get an input from the user for a given number of seconds. If no input was given after these seconds, it timeouts and returns None.
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
Hashes for ItsUtils-0.2.2rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ef236f2ba4ddf1447d7a42ed1cf03be8cdae1519179c17aead35b3dc5953add |
|
MD5 | 09fc18aab1e7e5b51f2c769b29fc9be7 |
|
BLAKE2b-256 | c685fc847bccbf0aa43728b5782473be1a70d6cedf2392c2f96b145d5da63b26 |