Skip to main content

tools for a cleaner πthon experience

Project description

Usefulpy

Usefulpy Logo

Check out the Usefulpy site

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...

mini_usefulpy_logo

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

usefulpython-0.1.0.tar.gz (66.0 kB view details)

Uploaded Source

Built Distribution

usefulpython-0.1.0-py3-none-any.whl (75.0 kB view details)

Uploaded Python 3

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

Hashes for usefulpython-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2665388b442fc5bef632c671d854d51cd901f7580163f0df6302273926a543d5
MD5 ac1835115716a56742f3c8a6dbe5cf78
BLAKE2b-256 302f5104b1e61a1f7586dc7267dd1010ec69acdd51ed9d66f89f49ddf601e789

See more details on using hashes here.

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

Hashes for usefulpython-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de6bc32f8542876eefe330318c4be112a18343eb05c7df05a51537344207c060
MD5 c6edebbc3ba91236f0ca3494390fb130
BLAKE2b-256 efef86bb1f7bc5b5125855487c9c6fae8a371eaecc1387c4acaa4d10984739a5

See more details on using hashes here.

Supported by

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