("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 nameversion
: parse from git tag (otherwise fromgit describe --tags
)author_{name,email}
: infer from last commitlong_description
: parseREADME.md
(and set `long_description_content_type)description
: parse first<p>
under opening<h1>
fromREADME.md
license
: parse fromLICENSE
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.25.tar.gz
(18.5 kB
view details)
Built Distribution
utz-0.0.25-py3-none-any.whl
(23.5 kB
view details)
File details
Details for the file utz-0.0.25.tar.gz
.
File metadata
- Download URL: utz-0.0.25.tar.gz
- Upload date:
- Size: 18.5 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6345666b905fd96e408014990ecb25dd86ca27a1532791278af03b9272babfe3 |
|
MD5 | f7fbb98ada83c7bd08a0e15c71089ef3 |
|
BLAKE2b-256 | 42442d7be0b1ebfef5f2d4af34370c9deed677bf5f47176f9e0cd4cc69d5adf7 |
File details
Details for the file utz-0.0.25-py3-none-any.whl
.
File metadata
- Download URL: utz-0.0.25-py3-none-any.whl
- Upload date:
- Size: 23.5 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cf6401fbad08a57d9b0f25ab2c158adc4ce553bbe1a7039b11726c1ddffd937 |
|
MD5 | 8f232afb9bede38b2b67b5d17d88c58c |
|
BLAKE2b-256 | 2d1983d737d814fd6086471cd193e3101ef0701525dd179992340ef407756671 |