Skip to main content

iterify

https://img.shields.io/pypi/v/iterify.svg https://img.shields.io/travis/mmore500/iterify.svg Documentation Status

iterify streamlines making one-off iterators over one or a few values

import iterify as itfy



# itfy.iterify
[*itfy.iterify('a')] # -> ['a']

[*itfy.iterify('a', 'b', 'c')] # -> ['a', 'b', 'c']


# itfy.cyclify
[*zip([1, 2, 3], itfy.cyclify('a', 'b'))] # -> [(1, 'a'), (2, 'b'), (3, 'a')]


# itfy.samplify
[*zip(
  [1, 2, 3],
  itfy.samplify('a', 'b')
)]
# -> [(1, 'a'), (2, 'a'), (3, 'b')]
# or -> [(1, 'b'), (2, 'a'), (3, 'b')]
# or -> [(1, 'b'), (2, 'b'), (3, 'b')]
# etc.


# itfy.shufflify
[*itfy.shufflify('a', 'b')]
# -> ['a', 'b']
# or -> ['b', 'a']

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.0.0 (2022-02-22)

  • First release on PyPI.

Metadata

Release files for iterify 0.1.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 iterify 0.1.0
File Size Uploaded
iterify-0.1.0.tar.gz 10.1 kB Details

Built distribution (wheel)

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

Total release size: 14.3 kB

Release files / iterify-0.1.0.tar.gz

Download URL iterify-0.1.0.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0283515c938e97ec296e864937c5237d8d071312b2b2a9df415bbc47110d7366
BLAKE2b-256 checksum
How to use checksums
a40915afeeee224ede2e8568141ec7982804788e6e1c040723d3458caa0ccb73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

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

Download URL iterify-0.1.0-py2.py3-none-any.whl
Size 4.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a0674dae5dec445feeffd5640be96e1bd6d429e61fa958c1b2c8a526c3c654cf
BLAKE2b-256 checksum
How to use checksums
45f467256b40a98b63a33f7487a09af41de6624033dcaf908d99e3ab0381ea22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

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