Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://viralogic.github.io/py-enumerable/
A Python module used for interacting with collections of objects using LINQ syntax
https://viralogic.github.io/py-enumerable/
Last synced: 24 days ago
JSON representation
A Python module used for interacting with collections of objects using LINQ syntax
- Host: GitHub
- URL: https://viralogic.github.io/py-enumerable/
- Owner: viralogic
- License: mit
- Created: 2014-12-23T23:21:46.000Z (almost 10 years ago)
- Default Branch: development
- Last Pushed: 2024-04-16T16:40:02.000Z (8 months ago)
- Last Synced: 2024-11-07T07:06:18.353Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 338 KB
- Stars: 187
- Watchers: 6
- Forks: 24
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-python-backend - _py-linq_
README
[![codecov](https://codecov.io/gh/viralogic/py-enumerable/branch/master/graph/badge.svg?token=u72ojmMvEn)](https://codecov.io/gh/viralogic/py-enumerable)
# py-linq #
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.## Install ##
Available as a package from PyPI.
```bash
pip install py-linq
```## Usage
To access the LINQ functions an iterable needs to be wrapped by the Enumerable
```python
from py_linq import Enumerable
my_collection = Enumerable([1, 2, 3])
```## Documentation ##
Please visit the project [site](https://viralogic.github.io/py-enumerable) for better documentation
## Contributing ##
Contributions are welcomed. This project uses [poetry](https://python-poetry.org/docs/) to handle the few library dependencies. [Pre-commit](https://pre-commit.com/) is also used so that formatting and linting checks are performed on commit.
1. Clone the repository using `git clone https://github.com/viralogic/py-enumerable.git`
2. Install poetry globally as per the instructions [here](https://python-poetry.org/docs/)
3. CD into the root of your cloned repository directory and `poetry install` to install all packages from the repository Pipfile.
4. Install `pre-commit` by typing `poetry run pre-commit install`
5. You should now be ready to start coding!