semvec/pypi-packages huggingface dataset:
infinite 0.1
itertools operations on infinite generators.
License: MIT
Keywords: infinite itertools product generators infinity

Description
-----------

Some of the ``itertools`` operations do not work on infinite generators,
this package is the beginning of the work to port some of the iterator
concepts to the infinity.

``infinite`` is compatible with both python2 and python3.

Installation
------------

The package has been uploaded to `PyPI`_, so you can
install the package using pip:

    pip install infinite

Usage
-----

For example if we want to iterate all the pairs of natural numbers:

.. code:: python

    from itertools import count
    from infinite import product

    for x, y in product(count(0), count(0)):
        print(x, y)
        if (x, y) == (3, 3):
            break

.. _PyPI: https://pypi.python.org
gorella 0.1.0
Monkey patch regular expressions
License: MIT

# GoRella
[![Build Status](https://travis-ci.org/frostming/gorella.svg?branch=master)](https://travis-ci.org/frostming/gorella)

Monkey patch regular expression methods to built-in string types

## Introduction
This project is aiming at easing the use of regular expression,
which is inspired by `RegExp` in JavaScript. The name comes from "gorilla" and "re". The sing-file module will monkey patch the following built-in methods of string types on its import:

- `replace`
- `split` and `rsplit`
- `find` and `rfind`
- `index` and `rindex`
- `partition` and `rpartition`
- `count`
- `startswith` and `endswith`

Besides, it extends the built-in string types with following methods of `re`
module:

- `match`
- `search`
- `findall`
- `finditer`

## Usage
All you need is to import gorella in one line, everything is done for you:
```python
>>> import gorella
>>> 'I am 26 years old.'.search('\d+').group()
'26'
```
For built-in methods, when pass a regular expression object, it will call the corresponding re function, else it falls back to built-in one:
```python
>>> pat = re.compile('\d+')
>>> 'I am 26 years old.'.find('am')
2
>>> 'I am 26 years old.'.find(pat)
5
>>> 'I am 26 years old.'.partition(pat)
('I am ', '26', ' years old')
```
*Because it replaces the pure-C methods with python ones, the performance may be affected.*

## Python 3 support
The monkey patching highly depends on the C-API of CPython, so it doesn't support other implementations than CPython. The test passes on Python 2.6, 2.7, 3.3, 3.4 and 3.5

## License
MIT
twisted-platform-support 16.12.3
Platform support packages for Twisted.
License: MIT

Twisted Platform Support
========================

What is this?
-------------

Code that allows Twisted to work on platforms where Python does not have complete bindings for everything Twisted needs.
For example, this includes:

- I/O Completion Ports for Windows ("IOCPReactor")
- ``sendmsg`` support for Python 2
- other C used in testing.


How do I get it?
----------------

Just ``pip install twisted[platform_support]``.