Metadata-Version: 2.1
Name: ilinq
Version: 0.3.2
Summary: linq library
Home-page: https://gitlab.com/yassu/ilinq/
License: Apache-2.0
Author: yassu
Author-email: mathyassu@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Project-URL: Repository, https://gitlab.com/yassu/ilinq/
Description-Content-Type: text/x-rst

ILinq
=====

.. image:: https://gitlab.com/yassu/ilinq/badges/master/pipeline.svg

This project provides the module like linq of C# for Python.

How To Install
--------------

::

    $ pip install ilinq

For developers, we enter

::

    $ pip install pipenv
    $ pipenv install --dev

First Example
-------------

::

    #!/usr/bin/env python
    # -*- coding: utf-8 -*-

    from ilinq.ilinq import Linq


    def is_prime(n):
        if n < 2:
            return False

        for j in range(2, n):
            if n % j == 0:
                return False

        return True


    if __name__ == '__main__':
        print(
            Linq(range(10**4))
            .last(is_prime))
        # => 9973

LICENSE
-------

Apache 2.0

