Skip to main content

("yoots"): common imports and utilities exposed for easy wildcard-importing + boilerplate-reduction

Project description

utz

("yoots"): common imports and utilities exposed for easy wildcard-importing + boilerplate-reduction

Install

pip install utz

Use

Import the whole kitchen sink:

from utz import *

See imports.py, which imports many of the modules below, as well as a bevy of handy stdlib methods and objects.

Features

Some noteworthy modules:

  • pnds: common pandas imports and helpers
  • cd: "change directory" contextmanager
  • o: dict wrapper exposing keys as attrs (e.g.: o({'a':1}).a == 1)
  • process: subprocess wrappers for more easily shelling out to commands and parsing their stdout
  • git: git helpers / wrappers around GitPython
  • collections: collection/list helpers
  • context: contextlib helpers

auto-setup.py

utz/setup.py provides defaults for various setuptools.setup() params:

  • name: use parent directory name
  • version: parse from git tag (otherwise from git describe --tags)
  • author_{name,email}: infer from last commit
  • long_description: parse README.md (and set `long_description_content_type)
  • description: parse first <p> under opening <h1> from README.md
  • license: parse from LICENSE file (MIT and Apache v2 supported)

For an example, see gsmo==0.0.1 (and corresponding release).

It can be installed via a pip extra:

pip install utz[setup]

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

utz-0.3.5.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

utz-0.3.5-py3-none-any.whl (35.5 kB view details)

Uploaded Python 3

File details

Details for the file utz-0.3.5.tar.gz.

File metadata

  • Download URL: utz-0.3.5.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for utz-0.3.5.tar.gz
Algorithm Hash digest
SHA256 02d67e2a708f1034f21c9ed54a3d7a7ce7f50846c3a04cc8429d36ca8067ef45
MD5 c03ad024ed580a9f4d819be61d4a9ce7
BLAKE2b-256 8fab9d1ac7e3aa1bd385570e95d34e2af7c66374677e318a02537f413d58538f

See more details on using hashes here.

File details

Details for the file utz-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: utz-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 35.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for utz-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ce58f748b4f4f1ebb8888eafcb0d04af0f27695c7b3009b1e5b34ab07f621bdf
MD5 7a022b43a2ad700496a32b6b462ee09a
BLAKE2b-256 53e0c2dfc0a5a61c0ecde758a9c31f21495e189cb451fa20a7d6268a1bb97dd6

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