Skip to main content

No project description provided

Project description

PNQ


Test Suite Package version

User-friendly collection manipulation library.

PNQ is a Python implementation like Language Integrated Query (LINQ).

https://pypi.org/project/pnq/

!!! danger PNQはベータ版です。

- 現在、ドキュメントとAPIが一致していません。
- PNQは鋭意開発中でAPIが頻繁に変更される恐れがあるため、本番環境では利用しないでください。

Features

  • コレクション操作に関する多彩な操作
  • アクセシブルなインターフェース
  • 型ヒントの活用
  • 非同期ストリームに対応

Documentation

Dependencies

  • Python 3.7+

Installation

Install with pip:

$ pip install pnq

Getting Started

import pnq

pnq.query([1]).map(lambda x: x * 2).to_list()
# >> [2]

pnq.query({"a": 1, "b": 2}).filter(lambda x: x[0] == "a").to_list()
# >> [("a", 1)]

release note

v0.0.1 (2021-xx-xx)

  • Initial release.

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

pnq-0.0.9.tar.gz (29.7 kB view hashes)

Uploaded Source

Built Distribution

pnq-0.0.9-py3-none-any.whl (32.7 kB view hashes)

Uploaded Python 3

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