Skip to main content

Enhanced function parameters

Project description

param

Enhanced function parameters

Installation

pip install git+https://github.com/tombulled/param.git@main

Usage

from param import Param, params

@params
def get(url: str, params: dict = Param(default_factory=dict)):
    print("GET", url, params)
>>> get("https://httpbin.com/get")
GET https://httpbin.com/get {}

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

tombulled-param-0.1.3.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

tombulled_param-0.1.3-py3-none-any.whl (7.8 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