("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.1.1.tar.gz
(21.6 kB
view details)
Built Distribution
utz-0.1.1-py3-none-any.whl
(27.7 kB
view details)
File details
Details for the file utz-0.1.1.tar.gz
.
File metadata
- Download URL: utz-0.1.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | df17449865cae8eb38bfddeed3069cb52bb4745e424fb7f7544b779af4ad79d5 |
|
MD5 | 817b2298686b28f92ebc2320cddaad7b |
|
BLAKE2b-256 | f932f2f30062a6a44ff937ed81626b39a345e8932e446daf1d0c6033fe1e77b8 |
File details
Details for the file utz-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: utz-0.1.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2c7f6a84820b8740ecee13d4d5ce9e33e9444a747a7ee76c14867d873e54201 |
|
MD5 | e5f456f1e1a7bfbaa0ca0c198f7bf7e3 |
|
BLAKE2b-256 | 9c1acae5658de10ab5cfd72e374b0ae5931c0a64947f6c0fcf04e63a2a77ea4e |