tools for a cleaner python experience
Project description
Usefulpy
Usefulpy site is not always up to date
Filled with simple resources and modules for a cleaner looking program, Usefulpy is a module filled with many useful functions and modules in various subjects geared to cut down and simplify some little bits of code that can become messy or repetitive.
So instead of checking, say
float(x) == int(float(x))
You can check it as
is_integer(x)
Which calls
def is_integer(s):
'''Check if an object is an integer can be turned into an integer without
losing any value'''
try: return int(float(s)) == float(s)
except: return False
Simple, but works well and can be used in a variety of situations.
Essentially, usefulpy is a large library of functions that improve the quality of python programming. One catch, it can't use any sort of third party libraries... so no numpy, scipy, manim, or any others...
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
Built Distribution
File details
Details for the file usefulpython-0.1.2.tar.gz
.
File metadata
- Download URL: usefulpython-0.1.2.tar.gz
- Upload date:
- Size: 65.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1464c82b8df4eb837d0693b922dffedb334b673ddbac7563f298defb97560a3 |
|
MD5 | bf1f9a86c870fe963ac11b2c481795e4 |
|
BLAKE2b-256 | 47950e0f1ef2417a9253cb65efcfa9d20a0df0fed46b60daa8e2d4781b3bc850 |
File details
Details for the file usefulpython-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: usefulpython-0.1.2-py3-none-any.whl
- Upload date:
- Size: 73.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7fdf10a293eac52fa4fd3827f7051774c9d6757949428ce974618be3c436380 |
|
MD5 | b72df886215d7f0d3aa13a13aa5061e6 |
|
BLAKE2b-256 | b914a3bbdab52b58fcf09153f746c1b005ad060080852fd3bddb080b442e82df |