semvec/pypi-packages huggingface dataset:
polkadots_dotfile_manager 0.0.6
Yet another dotfile manager
License: MIT
Keywords: dotfiles

Polkadots is a small dotfile manager
====================================

What not to expect
------------------

A giant pile of features. That being said, this is extensible and will
probably get some sort of plugin support.

Future plans
------------

-  [ ] Plugin support

-  [ ] World domination

-  [x] Config directories

How to use the damn thing
-------------------------

Install it:
~~~~~~~~~~~

``pip install polkadots-dotfile-manager``

For development:

``pip install --user -e .``

Make a polkadots config directory in .config/polkadots:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Basic example:

``~/.config/polkadots/config.py``:

.. code-block:: python

    actions = [
        SymlinkAction('aiopanel', '~/.config/aiopanel'),
        SymlinkAction('main', '~', dir_mode=True),
    ]

``~/.config/polkadots/dotfile_repo``:

.. code-block:: text

    ~/.dotfiles

This configuration executes two actions. The first one symlinks the entire
aiopanel directory (files are also supported of course).

The second one goes through every item in the "main" folder in the
dotfile repo and symlinks them all into the destination directory. For
example, the file .vimrc in main would be symlinked to ~/.vimrc.

Run it:
~~~~~~~

``polkadots --config2 -v``

Options used:

- ``--config2`` -- enables the new python-based config format.
  ``-2`` is an alias for this.
- ``-v`` -- verbose logging
PyMySQLProxyCursor 0.2.5
Simple PyMySQL ProxyCursor
License: MIT

.. image:: https://img.shields.io/badge/license-MIT-blue.svg
    :target: https://github.com/PyMySQL/PyMySQL/blob/master/LICENSE


PyMySQLProxyCursor
==================


A simple cursor wrapper to support before/after processing using PyMySQL.


Installation
------------

The last stable release is available on PyPI and can be installed with ``pip``::

    $ pip install PyMySQLProxyCursor

Example
-------

.. code:: python

    from __future__ import print_function

    import pymysql
    import proxycursor

    class SimpleProxy(object):
        def __init__(self):
            self.tblname = 'user'

        def after_insert(self, **kwargs):
            cur = kwargs['cursor']
            cur.execute('SELECT LAST_INSERT_ID()')

        def after_update(self, **kwargs):
            cur = kwargs['cursor']
            cur.execute('SELECT * FROM user ORDER BY updated_at desc LIMIT 1')


    conn = pymysql.connect(host='localhost', port=3306, user='root', passwd='', db='mysql')

    cur = conn.cursor()
    cur = proxycursor.wrap(cur, handlers=[SimpleProxy()])
    cur.execute("SELECT Host,User FROM user")

    print(cur.description)

    print()

    for row in cur:
        print(row)

    cur.close()
    conn.close()

License
-------

PyMySQLProxyCursor is released under the MIT License. See LICENSE for more information.
pyhomekit 0.0.1.4
Python interface to control HomeKit accessories.
License: MIT
Keywords: homekit bluetooth home

PyHomeKit - HomeKit for Python
==============================

:Author: Henri Dwyer

.. image:: https://api.travis-ci.org/henridwyer/pyhomekit.png
	   :target: https://travis-ci.org/henridwyer/pyhomekit
.. image:: http://img.shields.io/pypi/v/pyhomekit.svg
   :target: https://pypi.python.org/pypi/pyhomekit
   :alt: Latest Version
.. image:: https://img.shields.io/pypi/pyversions/pyhomekit.svg
   :target: https://pypi.python.org/pypi/pyhomekit
   :alt: Python Versions

PyHomeKit is a set of python libraries that let you control HomeKit compatible accessories, both BLE and HTTP.

For more information about HomeKit, see the `Apple Developper HomeKit <https://developer.apple.com/homekit/>`_ page.

Bluetooth Low Energy device compatibility is provided by `bluepy <https://ianharvey.github.io/bluepy-doc/>`_, which uses bluez.

.. important:: PyHomeKit is currently in pre-alpha. Many features are not yet implemented or broken.

Getting Started
+++++++++++++++

Usage
------------------

Connect to a HAP accessory view its HAP characteristics:

.. code-block:: python

    import pyhomekit

    device_mac = "aa:aa:aa:aa:aa"
    device = pyhomekit.ble.HapAccessory(mac=device_mac)
    characteristics = device.discover_characteristics()

    print(characteristics)

Interact with HAP characteristics:

.. code-block:: python

    # View the value of a characteristic
    device.lock_target_state()
    >>> 0

    # Set the value of a characteristic
    device.lock_target_state(value=1)

Installation
------------

``pyHomeKit`` is on Pypi, so you can ``pip`` install it:

.. code-block:: shell

    pip install pyhomekit

If you want to install from source, clone the repository:

.. code-block:: shell

    git clone git://github.com/henridwyer/pyhomekit.git
    cd pyhomekit
    pip install -r requirements.txt
    pip install -e .

Then you can build the documentation: 

.. code-block:: shell

    make doc

And run the tests:

.. code-block:: shell

    make tests

Requirements
############

pyHomeKit is only compatible with python 3.6 for the moment.