Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

iterify

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iterify

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

  • 0.1.0
  • PyPI
  • Socket score

Maintainers
1

============ iterify

.. image:: https://img.shields.io/pypi/v/iterify.svg :target: https://pypi.python.org/pypi/iterify

.. image:: https://img.shields.io/travis/mmore500/iterify.svg :target: https://travis-ci.com/mmore500/iterify

.. image:: https://readthedocs.org/projects/iterify/badge/?version=latest :target: https://iterify.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status

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

.. code-block:: python3

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.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter .. _audreyr/cookiecutter-pypackage: https://github.com/audreyr/cookiecutter-pypackage

======= History

0.0.0 (2022-02-22)

  • First release on PyPI.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc