Skip to main content

Faster, easier, more robust python data analysis

Project description

Utilz

Build Status Coverage Status Python Versions Platforms

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

  1. Install poetry: curl -sSL https://install.python-poetry.org | python
  2. Setup virtual environment poetry install
  3. Run all tests: poetry run pytest
  4. 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 details)

Uploaded Source

Built Distribution

py_utilz-0.3.1-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file py_utilz-0.3.1.tar.gz.

File metadata

  • Download URL: py_utilz-0.3.1.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for py_utilz-0.3.1.tar.gz
Algorithm Hash digest
SHA256 ae7eeb225743181efa36f1e1e7e44fc710a8c3cd760b5ac30d40e9272cbaa37b
MD5 8cf43d752d2fe5d5c019a16abcb91c4e
BLAKE2b-256 d80c2ab7801a788adc08c8e8e2193a61b20f6ae6dfa132443fffdcd8e1d4b1f8

See more details on using hashes here.

File details

Details for the file py_utilz-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: py_utilz-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for py_utilz-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fbe849c0fe935ebba3ce734d5592125e42c9f672436083ae32427367733ec0e5
MD5 5104317abcca6dec0496bd8525a92694
BLAKE2b-256 784fa407a5abe3927e211df2f59a80b7685d2156bec25df7d982535c6df7cf91

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page