semvec/pypi-packages huggingface dataset:
motorturbine 0.5.0
A ORM package for asyncio and motor
License: MIT

# Motorturbine

[![CircleCI](https://circleci.com/gh/BFriedrichs/motorturbine.svg?style=shield)](https://circleci.com/gh/BFriedrichs/motorturbine)
[![RTD](https://readthedocs.org/projects/motorturbine/badge/?version=latest)](https://motorturbine.readthedocs.io/en/latest/)
[![PyPI](https://img.shields.io/pypi/v/motorturbine.svg?colorB=brightgreen)](https://pypi.org/project/motorturbine/)

Motorturbine is an adapted version of the [Motorengine ORM](https://motorengine.readthedocs.io/en/latest/). The main goals are proper asyncio integration as well as a way to have more control over safe updates. Many ORMs suffer from parallelism issues and one big part of this package is to introduce transactions with retry capabilities when updating the fields of a document.

## Installation
````
pip install motorturbine
````

## Documentation

Please read the documentation for further information.
https://motorturbine.readthedocs.io/en/latest/

## Todo List

* [ ] Aggregations
pykl 0.1.6
kltool for python, toolset for web, http, cache, dht, xml, json and so on
License: MIT
Keywords: kltool html graphql xml json

PYKL
====

PYKL is the kltool for python, toolset for web, http, cache, dht, xml, json and so on.

Install it typing in your console:

.. code:: bash

    pip install pykl


Usage
-----

You can either do ``pykl --test`` to start a test server for testing
queries or

.. code:: bash

    pykl QUERY_FILE

This command will write in the standard output (or other output if
specified via ``--output``) the resulting JSON.

Your ``QUERY_FILE`` could look similar to this:

.. code::

    {
      page(url:"http://news.ycombinator.com") {
        items: query(selector:"tr.athing") {
          rank: text(selector:"td span.rank")
          title: text(selector:"td.title a")
          sitebit: text(selector:"span.comhead a")
          url: attr(selector:"td.title a", name:"href")
          attrs: next {
             score: text(selector:"span.score")
             user: text(selector:"a:eq(0)")
             comments: text(selector:"a:eq(2)")
          }
        }
      }
    }

Advanced usage
--------------

If you want to generalize your pykl query to any page, just rewrite your
query file adding the ``$page`` var. So should look to something like
this:

.. code::

    query ($page: String) {
      page(url:$page) {
        # ...
      }
    }

And then, query it like:

.. code:: bash

    pykl QUERY_FILE http://news.ycombinator.com