Skip to main content
File added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

Generates is a micro library providing generates decorator.

The generates decorator can be used to easily create a function that returns a container like list or dict, but using generator syntax in the function body. For example:

@generates(list)
def get_numbers(n):
    for i in range(n):
        yield i

assert get_numbers(5) == [0, 1, 2, 3, 4]

@generates(dict)
def get_map():
    yield ('key1', 'value1')
    yield ('key2', 'value2')

assert get_map() == {'key1': 'value1', 'key2': 'value2'}

Metadata

Release files for generates 0.1.0

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

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for generates 0.1.0
File Size Uploaded
generates-0.1.0.tar.gz 1.5 kB Details

Built distribution (wheel)

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

Total release size: 5.3 kB

Release files / generates-0.1.0.tar.gz

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL generates-0.1.0.tar.gz
Size 1.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ca4185792658da26cbe5e6b3a8b71e16345f14504a0d41c856c96835764c83ca
BLAKE2b-256 checksum
How to use checksums
1d390ae6693185435941c991a2c3874d8ff55b32028d3bd899b74d25e7402e54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / generates-0.1.0-py2.py3-none-any.whl

Download URL generates-0.1.0-py2.py3-none-any.whl
Size 3.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d5fca8bef0bb9368f1d51fb14896892e6f274a81d8bfbe49a88ac52a133031eb
BLAKE2b-256 checksum
How to use checksums
be4474833b56929ee2b27fd6032fe5806f5018420d26cb3770409eecfcf3ffd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

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