Skip to main content

A small module for generating sets of function signatures and corresponding function objects.

Project description

A small module for generating sets of function signatures and corresponding function objects.

Installation

funcgen requires Python >= 3.6 because it relies on modern type annotations.

pip install funcgen

Example

>>> import funcgen
>>>
>>> def wrapper(present):
...     log(f'Wrapped {present.__name__}')
...     return present
...
>>> def test_wrapper():
...     for funcs in funcgen.all_valid_functions():
...         assert all(wrapper(f) == f for f in funcs)
...
>>> test_wrapper()

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

funcgen-0.0.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

funcgen-0.0.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file funcgen-0.0.1.tar.gz.

File metadata

  • Download URL: funcgen-0.0.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for funcgen-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b62c9bc059e9d2d71e5d7d4dc054fe98ddc3ce6c20dd8d1ecb1573501a27de19
MD5 b7841457b5cef9efca41362d5b7de9a0
BLAKE2b-256 429e968b2f19c94cb69c91d22e4aceee2b4eff27ed6d2c18cd6bb2bce5609ba5

See more details on using hashes here.

File details

Details for the file funcgen-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: funcgen-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for funcgen-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ed02323e3347b60432338bae523617b7a85d2273a80ae251863971a578c95af9
MD5 379bb8dce73da3b620fb6a564b5ceaf0
BLAKE2b-256 7a4dd2a97172aa845fc446a3299710e404002d749fe9c1aaf51a0302b6ae0899

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page