Skip to main content

No project description provided

Project description

hodgepodge

A hodgepodge of hopefully helpful helper code

These are a few of my favourite functions

Features

  • Search for files;
  • Pack files into archives;
  • Perform pattern matching;
  • Compress and decompress objects;
  • Make the outputs from your tools more human-readable (e.g., by pretty-printing dates, file sizes, timestamps, and durations); and
  • Way, way, way more ✨.

Supported hash algorithms:

  • MD5
  • SHA-1
  • SHA-256
  • SHA-512

Supported archive formats:

  • ZIP

Supported compression algorithms:

  • GZIP

Installation

To install from source:

$ git clone git@github.com:whitfieldsdad/hodgepodge.git
$ python3 setup.py install

Tests

You can run the unit tests and measure code coverage at the same time as follows:

$ python3 -m tox
...
Name                                           Stmts   Miss  Cover
------------------------------------------------------------------
hodgepodge/__init__.py                             0      0   100%
hodgepodge/classes.py                             12      0   100%
hodgepodge/cli/__init__.py                         9      1    89%
...
hodgepodge/types.py                               86     46    47%
hodgepodge/uuid.py                                 3      0   100%
hodgepodge/ux.py                                  56      6    89%
------------------------------------------------------------------
TOTAL                                            730    199    73%
py3 run-test: commands[4] | /home/fishet/src/hodgepodge/.tox/py3/bin/python -m coverage html '--omit=.tox/*,tests/*'
_______________________________________ summary _______________________________________
  py3: commands succeeded
  congratulations :)

A code coverage report will automatically be written to: htmlcov/index.html whenever you run tox.

On Linux systems, you can use xdg-open to open the file using the system's default web browser:

$ xdg-open htmlcov/index.html

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

hodgepodge-0.1.2.tar.gz (14.7 kB view hashes)

Uploaded Source

Built Distribution

hodgepodge-0.1.2-py3-none-any.whl (19.1 kB view hashes)

Uploaded Python 3

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