Skip to main content

linq library

Project description

https://travis-ci.org/yassu/ilinq.py.svg?branch=master https://badge.fury.io/py/ilinq.svg

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

How To Install

$ pip install ilinq

For developers, we enter

$ pip install -r extra_require.txt

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ilinq-0.2.8.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

ilinq-0.2.8-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file ilinq-0.2.8.tar.gz.

File metadata

  • Download URL: ilinq-0.2.8.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ilinq-0.2.8.tar.gz
Algorithm Hash digest
SHA256 c628f1ed5c9d1694e3e8b18acfd2d10f8c46ae0856b4becb6f69cf8c85bd3027
MD5 6544ddb3ddd3b4a9865175da4b1c367b
BLAKE2b-256 8d98ae868e9b835ea11688ef0523812fef4d4b8581c3cea303e0ad31d431d9d6

See more details on using hashes here.

File details

Details for the file ilinq-0.2.8-py3-none-any.whl.

File metadata

File hashes

Hashes for ilinq-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 f507f04277226bf195a0f182d532ad350b0833a90b8a463bb2a199cf8f9bb9ff
MD5 7f549d6adfebc434efca10f19578da5d
BLAKE2b-256 ec6cff36e1793cf20f2784f6aa29cf811187150efdcf69689d6333449a96272a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page