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.2.tar.gz (26.9 kB view hashes)

Uploaded Source

Built Distribution

utz-0.3.2-py3-none-any.whl (35.0 kB view hashes)

Uploaded Python 3

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