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

This version

0.1.0

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

Uploaded Source

Built Distribution

utz-0.1.0-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: utz-0.1.0.tar.gz
  • Upload date:
  • Size: 21.6 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.0 CPython/3.8.6

File hashes

Hashes for utz-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0b6f1e0834cf8dbac57b511f7aeca11d2d28ca1d88ff87792b7c4147245ffa37
MD5 04cf65e3df3df7139c4b9b49f14498c9
BLAKE2b-256 f9cb5aeb40b7f3cdc5a79a4b3d724083b39f33883b58bcea476d1ad816e5a7c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: utz-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 27.7 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.0 CPython/3.8.6

File hashes

Hashes for utz-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f032d4206876a5c9b876b1d282e12a49acdd75fade883a04a400a73bd8518260
MD5 3a9cbc73a62e971501e766ffe251f72e
BLAKE2b-256 65e62afbe742dc4ec9ccfd715722b7b41d18bb3f23e33e11d47379d1a614532c

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