Skip to main content

Handy decorators for converting parameters

Project description

Python application Pypi version Downloads

parameter-decorators

Handy decorators for converting parameters

Installation

Install the last released version using pip:

python3 -m pip install -U parameter-decorators

Or install the latest version from sources:

git clone git@github.com:matan1008/parameter-decorators.git
cd parameter-decorators
python3 -m pip install -U -e .

Usage

The package contains several handy decorators, lets give an example with str_to_path:

from parameter_decorators import str_to_path


@str_to_path('input_file')
def get_parent(input_file):
    return input_file.parent


# Will print "/usr/bin"
print(get_parent('/usr/bin/python'))

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

parameter_decorators-0.0.2.tar.gz (41.0 kB view hashes)

Uploaded Source

Built Distribution

parameter_decorators-0.0.2-py2.py3-none-any.whl (30.4 kB view hashes)

Uploaded Python 2 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