Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

asq

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asq

LINQ-for-objects style queries for Python iterables.

  • 2.0.0
  • PyPI
  • Socket score

Maintainers
2

asq is simple implementation of a LINQ-inspired API for Python which operates over Python iterables, including a parallel version implemented in terms of the Python standard library multiprocessing module.

What It Does

asq is a package implementing queries over iterables of Python objects. asq provides a fluent interface making extensive use of method chaining to create complex queries without compromising readability. For example, to take the first five uppercased results from a list of words sorted by length and then alphabetically, try::

from asq import query words = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten"] query(words).order_by(len).then_by().take(5).select(str.upper).to_list() ['ONE', 'SIX', 'TEN', 'TWO', 'FIVE']

Over 40 standard query operators are provided together with various utilities to make the API even more convenient to use in Python.

Documentation

Of course, there is full Narrative and reference documentation for asq <http://asq.readthedocs.org/>_

Status

Build status:

.. image:: https://travis-ci.org/sixty-north/segpy.svg?branch=master :target: https://travis-ci.org/sixty-north/asq :alt: Build Status

.. image:: https://readthedocs.org/projects/asq/badge/?version=latest :target: https://readthedocs.org/projects/asq/?badge=latest :alt: Documentation Status

How to get it

asq is available on the Python Package Index and can be installed with easy_install or pip::

$ pip install asq

Requirements

This version of asq works with and 3.9 and higher

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc