Faster, easier, more robust python data analysis
Project description
Utilz
Convenient helper functions, decorators, and data analysis tools to make life easier with minimal dependencies:
pip install py-utilz
from utilz import mapcat
# Combine function results into a list, array, or dataframe
mapcat(myfunc, myiterable)
# Syntactic sugar for joblib.Parallel
mapcat(myfunc, myiterable, n_jobs=4)
from utilz import log, maybe
# Print the shape of args and outputs before and after execute
@log
def myfunc(args):
return out
# Only run myfunc if results.csv doesn't eist
@maybe('results.csv')
def myfunc(args):
return out
Development
- Install poetry:
curl -sSL https://install.python-poetry.org | python
- Setup virtual environment
poetry install
- Run all tests:
poetry run pytest
- Live render docs:
poetry run mkdocs serve
Additional poetry/virtual environment commands
- Activate environment in current shell:
source activate .venv/bin/activate
- Activate environment in sub-process shell:
poetry shell
- Add/remove additional packages:
poetry add/remove package_name
- Build local package:
poetry build
- Deploy to pypi:
poetry publish
(requires auth)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py_utilz-0.3.1.tar.gz
(19.2 kB
view hashes)
Built Distribution
py_utilz-0.3.1-py3-none-any.whl
(22.9 kB
view hashes)