Skip to main content

linq library

Project description

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

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

Documentation

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

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.4.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

ilinq-0.4.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ilinq-0.4.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1

File hashes

Hashes for ilinq-0.4.0.tar.gz
Algorithm Hash digest
SHA256 16274108e357bc312c713e2f4641b1f8e4802b688833baa715d4428d4862e3d3
MD5 c2a701b7d71c0a24073200ea355f7a6a
BLAKE2b-256 ebed7e49eefee2f02c3856d11418044e0a6bc66eb712f06ac4fdeb2349e80649

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ilinq-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1

File hashes

Hashes for ilinq-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2e479b37e745ec38b851373bd39ca379fd8a57abc26b255ba178361faa26729
MD5 294231c105eadf49559d699c6c152342
BLAKE2b-256 76f8d74f7a630f8b990cd10f9d8351e32cd63539045e5a4dba5492a8fa7ea84b

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