tools for a cleaner πthon 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.0.tar.gz
.
File metadata
- Download URL: usefulpython-0.1.0.tar.gz
- Upload date:
- Size: 66.0 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 | 2665388b442fc5bef632c671d854d51cd901f7580163f0df6302273926a543d5 |
|
MD5 | ac1835115716a56742f3c8a6dbe5cf78 |
|
BLAKE2b-256 | 302f5104b1e61a1f7586dc7267dd1010ec69acdd51ed9d66f89f49ddf601e789 |
File details
Details for the file usefulpython-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: usefulpython-0.1.0-py3-none-any.whl
- Upload date:
- Size: 75.0 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 | de6bc32f8542876eefe330318c4be112a18343eb05c7df05a51537344207c060 |
|
MD5 | c6edebbc3ba91236f0ca3494390fb130 |
|
BLAKE2b-256 | efef86bb1f7bc5b5125855487c9c6fae8a371eaecc1387c4acaa4d10984739a5 |