("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.3.7rc1.tar.gz
(27.5 kB
view details)
Built Distribution
utz-0.3.7rc1-py3-none-any.whl
(35.6 kB
view details)
File details
Details for the file utz-0.3.7rc1.tar.gz
.
File metadata
- Download URL: utz-0.3.7rc1.tar.gz
- Upload date:
- Size: 27.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebf4cfc912d48d731c98d2c7b93a30c867c527f3be71b3e76c874309ea45e443 |
|
MD5 | 7fbe6a3efcbe880f399be5e16288068e |
|
BLAKE2b-256 | af76dd0f67a7fbdb8c4c502d2dd1fb84e4f2b33a88dabd76df375e4b7ef208ca |
File details
Details for the file utz-0.3.7rc1-py3-none-any.whl
.
File metadata
- Download URL: utz-0.3.7rc1-py3-none-any.whl
- Upload date:
- Size: 35.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e7cc6230d54dc3ce3eb0bc8181bf258f3e0f1e12e73b9e2431474edd4a51513 |
|
MD5 | 6ad23919a56abc68f1bc03ff81504639 |
|
BLAKE2b-256 | ad8458b88abf073a9d8e999b58d3594bcf9b4a61ded628b87949fd276476d663 |