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

Uploaded Source

Built Distribution

utz-0.2.1-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for utz-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f8c0225b80e3ae47f24ed75f49656cd2304d68f1147193894e02fd7cd6bccffb
MD5 cd9eef9077509dff3d7604d0b5a712aa
BLAKE2b-256 bafe6e0d9c19995074f190fb1ed878073b33ca33d00cc5dea552b0a7775cdf8b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for utz-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a6d427e9904b38d76e38cb61cfd35af0dbdf4633ad38740a9f112cc39126dd32
MD5 de34bf1e27ebebd0aa785ca84789d536
BLAKE2b-256 c37a9778959e07bdcf38e96c94ac931205d774b9c6d3f79a77f4dea94b7efd0c

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