LINQ
Provides simple to use LINQ features to Python 3.x.
Documentation
See this link: https://jakkes.github.io/python-linq/
Installing
From pip
pip install python-linq
From source
git clone https://github.com/jakkes/python-linq.git
cd python-linq
pip install -r requirements.txt
Usage
- Import the
Queryclass - Write beautiful queries!
>>> from linq import Query
>>> x = Query([1, 2, 3]).select(lambda x: x * x + 3).to_list()
>>> assert x == [4, 7, 12]
Distribute heavy queries across multiple processes using DistributedQuery.
>>> import time
>>> from linq import DistributedQuery
>>>
>>> def heavy_transformation(x: int):
>>> time.sleep(10)
>>> return x**2
>>>
>>> def less_than_5(x: int):
>>> return x < 5
>>>
>>> x = (
>>> DistributedQuery(range(100), processes=8)
>>> .where(less_than_5)
>>> .select(heavy_transformation)
>>> .to_list()
>>> )
>>> print(x)
[0, 1, 4, 9, 16] # Not necessarily in this order.
Metadata
Release files for python-linq 2.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-linq-2.0.4.tar.gz | 13.8 kB | Without provenance | Details for python-linq-2.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_linq-2.0.4-py3-none-any.whl | Python 3 | none | any | Details for python_linq-2.0.4-py3-none-any.whl |
Total release size: 31.4 kB
Release files / python-linq-2.0.4.tar.gz
| Download URL | python-linq-2.0.4.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69be80f3a975142ecca09815d1b5eed9307dc154b2b5915d1c8f7fa152b25a3c
|
|
BLAKE2b-256 checksum How to use checksums |
05418aba6a6610a6c6f63b276d56237cd1f58a23e10dd3451442ab9070b9a2f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.9
|
Release files / python_linq-2.0.4-py3-none-any.whl
| Download URL | python_linq-2.0.4-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a00b829dfa60da7a8772bd6b126143afd6cbc1bf2fb0811390ea570a4c174b68
|
|
BLAKE2b-256 checksum How to use checksums |
2c5fd235a133721138065064baa1537422e9e3bb6e9c514eff66f5e55b2c6201
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.9
|
Security for python-linq 2.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.