Skip to main content

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'))

Metadata

Release files for parameter-decorators 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for parameter-decorators 0.0.2
File Size Uploaded
parameter_decorators-0.0.2.tar.gz 41.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for parameter-decorators 0.0.2
File Interpreter ABI Platform
parameter_decorators-0.0.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 71.4 kB

Release files / parameter_decorators-0.0.2.tar.gz

Download URL parameter_decorators-0.0.2.tar.gz
Size 41.0 kB
Tags Source
SHA-256 checksum
How to use checksums
499ec96e71394705be9e3eeb28542aab4875694042516c31051d5dcb0488028e
BLAKE2b-256 checksum
How to use checksums
40b903b5e409930cb4cff0f25f6f3199145f4319a88d5f9be7ee17882359f72d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / parameter_decorators-0.0.2-py2.py3-none-any.whl

Download URL parameter_decorators-0.0.2-py2.py3-none-any.whl
Size 30.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8f89280356f7ea983725bf47534c22171fbd10a13d98159f44f3c55ba8ae73e7
BLAKE2b-256 checksum
How to use checksums
de7b1fa9000dbe427745af3eda3f1690d86e2161b6cfcd56b16cd76008a8f2c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page