Skip to main content

tools for a cleaner python 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.1.tar.gz (65.2 kB view details)

Uploaded Source

Built Distribution

usefulpython-0.1.1-py3-none-any.whl (73.2 kB view details)

Uploaded Python 3

File details

Details for the file usefulpython-0.1.1.tar.gz.

File metadata

  • Download URL: usefulpython-0.1.1.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

Hashes for usefulpython-0.1.1.tar.gz
Algorithm Hash digest
SHA256 acffa6a1468ec96c175441846a11d38be23cfffbe71c46bab1b785f56490f203
MD5 a6470fd4977d2f75e2712ae04aaa676d
BLAKE2b-256 4c5fc2b9815736904a84ef6e98b0ba626f1129b2112cf3eb3d03ce20034771da

See more details on using hashes here.

File details

Details for the file usefulpython-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: usefulpython-0.1.1-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

Hashes for usefulpython-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6d068b987719c3d1a89160bdf52ed259d550d7927b56500bb3ba6d5723407c3d
MD5 eecef7a32fdc7e2ebdc56994bf39d047
BLAKE2b-256 2454b69b53fee5c3f5a53cc9f1ac5a55ae1d834dc74b62eb4b3a2d57982b0c98

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