("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.2.3.tar.gz
(23.5 kB
view details)
Built Distribution
utz-0.2.3-py3-none-any.whl
(30.3 kB
view details)
File details
Details for the file utz-0.2.3.tar.gz
.
File metadata
- Download URL: utz-0.2.3.tar.gz
- Upload date:
- Size: 23.5 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48023f3c2dd3d52270ccca90fa4ecd255f6057441b4c7ac4f5bfb68487569b6f |
|
MD5 | 6eb11f4fbe857796087716102cd53c1b |
|
BLAKE2b-256 | ec199184c7eaa3e69befd1117014e819bc760f94c6ed22f43786ad247aa81eaa |
File details
Details for the file utz-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: utz-0.2.3-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2789e4c3345a29ddb792c6fb0b4a058927136544ab5db6bb2aad825004d27920 |
|
MD5 | 9afd14eeed1368841102aaf4268cb17c |
|
BLAKE2b-256 | 537cbed96078b8037e76258a3e7e59180931b7cf1a0ccb438c2aebf4cb1f94a7 |