Skip to main content

Autocurry

Currying is a powerful technique in functional programming languages like Haskell. This decorator allows a function to be automatically curried by supplying fewer arguments than required.

Installation

pip3 install autocurry

Usage

from autocurry import autocurry

@autocurry
def find_by_key_with_connection(db_connection, key):
    pass

find_by_key = find_by_key_with_connection(some_connection)

value1 = find_by_key('my_key')
value2 = find_by_key('your_key')

Metadata

Release files for Autocurry 0.2.0

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

Source distribution (sdist)

Source distribution for Autocurry 0.2.0
File Size Uploaded
Autocurry-0.2.0.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Autocurry 0.2.0
File Interpreter ABI Platform
Autocurry-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.8 kB

Release files / Autocurry-0.2.0.tar.gz

Download URL Autocurry-0.2.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
17055d05c960e5df9e541058cc6e7ded4343340ed391d920610d57fbd6d4a673
BLAKE2b-256 checksum
How to use checksums
08ffad06e7abf31f602454484896cd560178ba4ddd5298c575fde8ce55230b9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

Release files / Autocurry-0.2.0-py3-none-any.whl

Download URL Autocurry-0.2.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
54c0fdf0a0c3dc539679f37ca8a12271782a35e8b23162a8356d3140c40b4584
BLAKE2b-256 checksum
How to use checksums
85e0c53ad786d8900194952433bcf07ac3cacfa3be07b068a8dcb151f7f21f33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1

1 release file

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