LINQ (Language Integrated Query) is a popular querying language available in .NET. This library ports the language so that developers can query collections of objects using the same syntax. This library would be useful for Python developers with experience using the expressiveness and power of LINQ.
Available as a package from PyPI.
pip install py-linq
To access the LINQ functions an iterable needs to be wrapped by the Enumerable
from py_linq import Enumerable
my_collection = Enumerable([1, 2, 3])
Please visit the project site for better documentation
Contributions are welcomed. This project uses poetry to handle the few library dependencies. Pre-commit is also used so that formatting and linting checks are performed on commit.
git clone https://github.com/viralogic/py-enumerable.git
poetry install
to install all packages from the repository Pipfile.pre-commit
by typing poetry run pre-commit install