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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

utz-0.0.26-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for utz-0.0.26.tar.gz
Algorithm Hash digest
SHA256 0787f59ce26404f9f6f7e3a38b562ccaa919769f2c62807296ee7da8a620a7c5
MD5 e90eaccea3a8a9258d3a90950707d3d1
BLAKE2b-256 9173b0a5a57f45d99bccedf48de48f7e0f63f4748627150e9f5c4a7e87d4e315

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for utz-0.0.26-py3-none-any.whl
Algorithm Hash digest
SHA256 5ee29297079bed417a9a41563f93af7134a0d3a661170bb0a2ca57335c6b5496
MD5 aa4578a1bb8ea30bc946513f239624ea
BLAKE2b-256 20386251f452f22fd83c17b29badfae251eb4b30a0f247bfe2f4ded07ecb9f77

See more details on using hashes here.

Supported by

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