semvec/pypi-packages huggingface dataset:
knx 0.4.0
KNX / EIB library
License: MIT

===
knx
===

.. image:: https://travis-ci.org/mfussenegger/knx.svg?branch=master
    :target: https://travis-ci.org/mfussenegger/knx
    :alt: travis-ci

.. image:: https://img.shields.io/pypi/wheel/knx.svg
    :target: https://pypi.python.org/pypi/knx/
    :alt: Wheel

.. image:: https://img.shields.io/pypi/v/knx.svg
   :target: https://pypi.python.org/pypi/knx/
   :alt: PyPI Version

.. image:: https://img.shields.io/pypi/pyversions/knx.svg
   :target: https://pypi.python.org/pypi/knx/
   :alt: Python Version


A minimalistic `KNX <https://en.wikipedia.org/wiki/KNX_%28standard%29>`_ / EIB
python library.


Sending telegrams
-----------------

This library can be used to send data telegrams to actuators in the bus system.

For example in order to turn on a light the following code could be used::

    >>> from knx import connect
    >>> with connect() as c:
    ...     c.write('0/1/14', 1)


Where ``0/1/14`` is the address of the light and ``1`` is the payload of the
data telegram which indicates that the light should be turned on.


Listening to telegrams
----------------------

This KNX library can also be used to listen to telegrams that are sent onto the
bus system. For example if you simply want to log an entry each time a light is
turned off or on::


    >>> import knx
    >>> import asyncio

    >>> @knx.coroutine
    ... def logger():
    ...     while True:
    ...         telegram = (yield)
    ...         print('Telegram from {0} sent to {1} with value: {2}'.format(
    ...               telegram.src, telegram.dst, telegram.value))

    >>> loop = asyncio.get_event_loop()
    >>> coro = knx.bus_monitor(logger(), host='localhost', port=6720)
    >>> loop.run_until_complete(coro)


Install & Requirements
======================

- Python >= 3.6

Install using pip::

    $ pip install knx

Disclaimer
==========

I've only tested this with `eibd
<http://www.auto.tuwien.ac.at/~mkoegler/index.php/eibd>`_ 0.0.5 and the fork
`knxd <https://github.com/knxd/knxd>`_ as a gateway.


Alternatives
============

If you're looking for complete home automation solutions you might want to take
a look at `home-assistant <https://github.com/balloob/home-assistant>`_ or
`smarthome <https://github.com/mknx/smarthome>`_.

Development
===========

Edit ``knx.py`` in your favorite editor and run tests using ``python -m
unittest`` or ``python tests.py``.

If you want to run the examples without first installing this library you can use::

    python -m examples.actor -- hostname '0/0/20'

(Replace actor with the appropriate module name and omit the arguments if the
module doesn't require them)
docdetect 2019.1.2
Real-time detection of documents in images.
License: MIT
Keywords: docdetect document-detection rectangle-detection edge-detection

# docdetect

[![Build Status](https://travis-ci.org/alessandrozamberletti/docdetect.svg?branch=master)](https://travis-ci.org/alessandrozamberletti/docdetect)
[![Build status](https://ci.appveyor.com/api/projects/status/l1gjc8g7c1q3846j/branch/master?svg=true)](https://ci.appveyor.com/project/alessandrozamberletti/docdetect/branch/master)
[![codecov](https://codecov.io/gh/alessandrozamberletti/docdetect/branch/master/graph/badge.svg)](https://codecov.io/gh/alessandrozamberletti/docdetect)
[![Maintainability](https://api.codeclimate.com/v1/badges/a9aa496faab72437e650/maintainability)](https://codeclimate.com/github/alessandrozamberletti/docdetect/maintainability)

<p align="center"> 
  <img src="https://github.com/alessandrozamberletti/docdetect/blob/master/res/01.gif" alt="sample_01"/>
  <img src="https://github.com/alessandrozamberletti/docdetect/blob/master/res/02.gif" alt="sample_02"/>
  <img src="https://github.com/alessandrozamberletti/docdetect/blob/master/res/03.gif" alt="sample_03"/>
</p>

# Installation

TBD

# Examples

```python
import docdetect

rects = docdetect.process(image)
image = docdetect.draw(rects, image)
```

# Resources  
* [Fast and Accurate Document Detection for Scanning](https://blogs.dropbox.com/tech/2016/08/fast-and-accurate-document-detection-for-scanning/)
pypermacc 0.1.1
Python wrapper around the perma.cc API
License: MIT
Requires Python: >=3.5
Keywords: archive

# pypermacc

Python3 wrapper for the perma.cc API (partial implementation, pull requests welcome)

## Installation

Install from pypi : `pip install pypermacc`

Install from the source code :
```
git clone https://github.com/Te-k/pypermacc.git
cd pypermaa
pip install .
```

## Usage

**Without private key:**
```py
from pypermacc import Permacc
perm = Permacc()

# Download public archives
archives = p.public_archives()

# Get detail on the first one
details = p.archive_detail(archives['objects'][0]['guid'])

# Download warc file
warc = p.archive_download(archives['object'][0]['guid'])
```

**With a private key**
```py
from pypermacc import Permacc
perm = Permacc(KEY)

# Save a webpage
saved = pp.archive_create('https://perma.cc/') # Inception
```

## License

This code is publised under the MIT license
pythreatgrid2 0.1.1
Python wrapper around the Threat Grid API
License: MIT
Requires Python: >=3.5
Keywords: security

# pythreatgrid2

Python 3 wrapper for the Threat Grid API

Renamed as `pythreatgrid2` because there is now another library that seems pretty good, [pythreagrid](https://github.com/RustyBower/pythreatgrid)

## Install

Install from pypi : `pip install pythreatgrid2`

Or install it manually :
```
git clone https://github.com/Te-k/pythreatgrid2.git
cd pythreatgrid
pip install .
```

## Use

Get indicators for all samples connecting to a domain:
```py
from pythreatgrid2 import ThreatGrid, ThreatGridError

key = ''
tg = ThreatGrid(KEY)
samples = tg.search_samples('google.com', type='domain')
for sample in samples['items']:
    iocs = tg.get_sample_iocs(sample['id'])
```

## Documentation

```
cd docs/build/html
python -m http.server 8000
```

Then visit http://localhost:8000/pythreatgrid.html#module-pythreatgrid
spyonweb 0.1
SpyOnWeb python wrapper
License: MIT
Keywords: osint

# SpyOnWeb

Python3 wrapper and CLI for the SpyOnWeb.com API

## Install

Install the [PyPi package](https://pypi.org/project/spyonweb/) : `pip install spyonweb`

You can also install it manually :
```
git clone https://github.com/Te-k/spyonweb.git
cd spyonweb
pip install .
```

## CLI

```
$ spyonweb config --token 2wldRA5t5xL9
In /home/user/.config/spyonweb:
[SpyOnWeb]
token = 2wldRA5t5xL9

$ spyonweb adsense pub-5953444431482912
--------------- pub-5953444431482912 -----------------
Fetched 10 domains over 10
-short-haircuts.org (2013-07-29)
-long-haircuts.com (2013-07-30)
-hewlettpackardprinterdrivers.net (2013-07-29)
-bobhairstyles.biz (2013-07-27)
-liver-disease-symptoms.com (2014-03-21)
-howtopatentanidea.net (2014-03-21)
-fullmooncalendar.net (2013-07-29)
-mens-haircuts.net (2014-03-24)
-bronchitis-symptoms.biz (2015-02-28)
-hernia-symptoms.com (2014-03-20)
```

## API

```python
from spyonweb import SpyOnWeb
client = SpyOnWeb(API_KEY)
client.analytics('UA-34505845')

{'fetched': 9,
 'found': 9,
 'items': {'bobhairstyles.biz': '2016-04-11',
  'bronchitis-symptoms.biz': '2015-02-28',
  'fullmooncalendar.net': '2017-10-02',
  'hewlettpackardprinterdrivers.net': '2016-04-17',
  'howtopatentanidea.net': '2016-04-18',
  'liver-disease-symptoms.com': '2016-04-21',
  'long-haircuts.com': '2016-04-21',
  'mens-haircuts.net': '2016-04-22',
  'short-haircuts.org': '2016-04-27'}}

client.ip('157.166.226.25')
{'fetched': 35,
 'found': 35,
 'items': {'ac360.com': '2015-05-26',
  'amanpour.com': '2017-09-25',
  'cnn.co.hu': '2017-05-18',
  'cnn.hu': '2017-09-29',
  'cnn.net': '2016-09-21',
  'cnn.tv': '2017-09-29',
[SNIP]
```
directory-proxy 0.1.0
Proxy
License: MIT

# directory-proxy

[![code-climate-image]][code-climate]
[![circle-ci-image]][circle-ci]
[![codecov-image]][codecov]

Proxy for rejecting non-whitelisted IP addresses.

---

Proxy sets a [Hawk](https://github.com/hueniverse/hawk) signature header that the upstream service can check, rejecting requests that do not have a valid signature.

## Installation

`pip install directory-proxy`

## Usage

Proxy can be ran as a standalone service or as a WSGI worker running alongside the upstream service.

### WSGI worker

The proxy can be run on the same box as the upstream service. Install proxy on the same box as the upstream service then run the WSGI worker:

```sh
DJANGO_SETTINGS_MODULE=directory_proxy.conf.settings \
gunicorn directory_proxy.conf.wsgi --bind 0.0.0.0:$UPSTREAM_PORT
```

### Standalone service

If you're unable to run the WSGI worker on the same box as the upstream service then the proxy can be ran as a standlone service.


### Configuration

Set the following environment variables to configure the proxy:

| Environment variable                  | Details                                 |
| ------------------------------------- | --------------------------------------- |
| IP_RESTRICTOR_ALLOWED_ADMIN_IPS       | Allow IP addresses. Command delimited   |
| IP_RESTRICTOR_ALLOWED_ADMIN_IP_RANGES | Allow IP ranges. Command delimited      |
| IP_RESTRICTOR_SKIP_CHECK_ENABLED      | Skip IP check. Check cookie instead     |
| IP_RESTRICTOR_SKIP_CHECK_SECRET       | Shared secret for checking cookie       |
| UPSTREAM_DOMAIN                       | Domain of upstream service              |
| UPSTREAM_SIGNATURE_SECRET             | Hawk shared secret for upstream request |
| UPSTREAM_SIGNATURE_SENDER_ID          | Hawk sender ID for upstream request     |


## Local installation

    $ git clone https://github.com/uktrade/directory-proxy
    $ cd directory-proxy

## Debugging

### Setup debug environment

    $ make debug

### Run debug webserver

    $ make debug_webserver

### Run debug tests

    $ make debug_test


[code-climate-image]: https://codeclimate.com/github/uktrade/directory-proxy/badges/issue_count.svg
[code-climate]: https://codeclimate.com/github/uktrade/directory-proxy

[circle-ci-image]: https://circleci.com/gh/uktrade/directory-proxy/tree/master.svg?style=svg
[circle-ci]: https://circleci.com/gh/uktrade/directory-proxy/tree/master

[codecov-image]: https://codecov.io/gh/uktrade/directory-proxy/branch/master/graph/badge.svg
[codecov]: https://codecov.io/gh/uktrade/directory-proxy