Metadata-Version: 2.1
Name: iterify
Version: 0.1.0
Summary: iterify streamlines making one-off iterators over one or a few values
Home-page: https://github.com/mmore500/iterify
Author: Matthew Andres Moreno
Author-email: m.more500@gmail.com
License: MIT license
Keywords: iterify
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.6

============
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


* Free software: MIT license
* Documentation: https://iterify.readthedocs.io.


.. 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.


