Skip to main content

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.

If you provide an empty string as the input, a ValueError will be raised.

The function StringMath.check_valid_expression() can be used to check whether a string is valid and can be processed. If the string is valid, the function will return True.

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.

Metadata

Release files for ItsUtils 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ItsUtils 0.2.2
File Size Uploaded
ItsUtils-0.2.2.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ItsUtils 0.2.2
File Interpreter ABI Platform
ItsUtils-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 17.0 kB

Release files / ItsUtils-0.2.2.tar.gz

Download URL ItsUtils-0.2.2.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9315ed8020544c0e6d665a0a2d890c8b318e68713a8c11003e00c83d3fa3e366
BLAKE2b-256 checksum
How to use checksums
e32cadf078f685d0eecd9c553befe3e72453cc15552288b0ae7d352b28a74558
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / ItsUtils-0.2.2-py3-none-any.whl

Download URL ItsUtils-0.2.2-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe083d612cde2a4d227a1291c646581cede3b295dc3c3b81ab40442bd0911c8b
BLAKE2b-256 checksum
How to use checksums
d110dc5b5d18cde10797f6109abad5ab5a358716286e4584c742a9db22ca82e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page