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

Download and Import

download with pip install usefulpython

import with import usefulpy

Description

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.4.tar.gz (77.4 kB view details)

Uploaded Source

Built Distribution

usefulpython-0.1.4-py3-none-any.whl (87.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: usefulpython-0.1.4.tar.gz
  • Upload date:
  • Size: 77.4 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.4.tar.gz
Algorithm Hash digest
SHA256 335ac0a6e29962c19ad0d616c59b0a01894988dfba07bbb04611ce71b4c8db51
MD5 fadc983abf1c44bb79a48f8145c1e820
BLAKE2b-256 86242084acec72680896bdd7677b881ccedaa62b62ea7a667b568cf0ebfc3ec9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: usefulpython-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 87.6 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d26e21a37babedd21b0b2a85b9effab297e8ec2151e038dbcc0599f2cc60bc9e
MD5 e54d6852f35281d1668383a6c1a47c4f
BLAKE2b-256 7a3576d688de98287a7dc71e3f8c3d1d0284dde723ca257f4e905a349f897244

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