semvec/pypi-packages huggingface dataset:
drillpy 0.2.0
Python wrapper for Apache Drill's REST API
License: MIT
Keywords: drill nosql api

drillpy is a Python wrapper for Apache Drill's REST API, which lets you query and import data to Python directly from a working Drill cluster/drillbit instance. It is built on top on requests, numpy and pandas.


Installation

pip install drillpy


Usage

drillpy follows the Python Database API Specification v2.0, so it's usage is pretty similar to the one you can find e.g. in the builtin sqlite3 module from CPython's Standard Library.


As with sqlite3, you should start by creating a Connection object, using drillpy.connect():

from drillpy import connect

con = connect(host="some_drillbit_host", db="some_database_managed_by_drill", port=8047)


Once created, you must create a Cursor:

cur = con.cursor()

Now you can use this cursor to write SQL queries against your Drill cluster. Parameter substitution is handled by question marks ? (as in sqlite3):

query = cur.execute("SELECT * FROM mytable WHERE somecolumn > ? AND someothercolumn < ? LIMIT 10", (value, other_value))


Results are returned in a pandas DataFrame, with NaNs in missing values. Column types are inferred automatically. You can retreive results with fetchone(), fetchmany(size) and fetchall(). With fetchone(), a pandas Series is returned rather than a DataFrame:

returned_df = query.fetchall()



Keep in mind that drillpy cannot insert new data in your tables/databases, since Drill itself is a querying engine meant to be used for exploratory data analysis and BI/visualization tools.

Once finished, you should call Connection.close():

con.close()
wallpaper 0.2.2
Generate wallpapers with Pillow and Palettable.
License: MIT
Keywords: wallpaper

Wallpaper |build-status|
========================

|logo|

This project generates (various) wallpapers using `Python <https://www.python.org/>`_
and `Pillow <https://python-pillow.org/>`_. The  default colorscheme is the `Colorbrewer <http://colorbrewer2.org/>`_
11-class diverging BrBG palette (supplied by `Palettable <https://jiffyclub.github.io/palettable/>`_).

Run ``wallpaper`` in your console to get a PNG image with the name ``wallpaper-<current-time>.png``.

Python 2 and 3 are supported.

----

TODO
====

* Better color selection
* Documentation

.. |logo| image:: https://raw.githubusercontent.com/mitakas/wallpaper/master/docs/wallpaper.png
    :alt: Logo

.. |build-status| image:: https://travis-ci.org/mitakas/wallpaper.svg?branch=master
    :target: https://travis-ci.org/mitakas/wallpaper
    :alt: Build status

History
=======

0.2.2 (2016-03-01)
------------------

* add more arguments to the console script

0.2.1 (2016-03-01)
------------------

* fix console script

0.2 (2016-03-01)
----------------

* create the wallpapers in a neater way, use inheritance

0.1 (2016-02-29)
----------------

* initial release
pycorm 0.2.13
a pico orm that uses jsonschema
License: MIT
Keywords: pycorm

===============================
pycorm
===============================

.. image:: https://img.shields.io/pypi/v/pycorm.svg
        :target: https://pypi.python.org/pypi/pycorm

.. image:: https://img.shields.io/travis/sloev/pycorm.svg
        :target: https://travis-ci.org/sloev/pycorm

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


Model class with fields that translate to jsonschema fields.
Classes can be instantiated from dictionaries and will auto populate fields with right type (only Models)

* Free software: MIT
* Documentation: https://pycorm.readthedocs.org.

Features
--------

Python objects from dictionaries, including dotnotation and jsonschema validation.

Credits
---------

This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage


=======
History
=======

0.2.9
-----------------

* introiduced inheritance between models
* jsonschema validation on model schema and input schema
* models instantiate their schema only once pr class (caching)

0.0.1 (2016-3-1)
------------------

* First release on PyPI.