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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ilinq-0.4.2.tar.gz
  • Upload date:
  • Size: 8.6 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.2.tar.gz
Algorithm Hash digest
SHA256 b36efa90dae12c9c202ce7b6cdfb1be7272f0dd767afaa70a58522ced16f4581
MD5 2b5acdb3afd4a5532530e4a37102e433
BLAKE2b-256 ddbb62d7e2acdf26b6ba15ddeef52e5b1f104d32fee212906200bd97bf532fb0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ilinq-0.4.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0619dd87602d67aca6c9b675efce54afefc5f9f1c93a004d7c89c5ba882fc40a
MD5 285faba5a267c86165d5df721cac57f6
BLAKE2b-256 d576846c070f3a485b01ee82ff49b2ffa9560b54ff576dfde4e42a8f0bc9c566

See more details on using hashes here.

Supported by

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