semvec/pypi-packages huggingface dataset:
epyper 0.1.0
Python driver for Embedded Artists 2.7 inch E-paper Display Module
License: MIT

epyper
======

![demo](https://raw.github.com/mnowotka/epyper/master/doc/demo.jpg)

Python driver for Embedded Artists 2.7 inch E-paper Display Module:

http://www.embeddedartists.com/products/displays/lcd_27_epaper.php. 

It's based on original C code available here:

http://www.embeddedartists.com/sites/default/files/support/displays/epaper/epaper_pi_130307.tar.gz

[![Downloads](https://pypip.in/v/epyper/badge.png)](https://pypi.python.org/pypi/epyper)

Rationale
--------

So you got your new shiny E-paper display from Embeded Artists. You plug it to your rPi to display some images. But how? Example C code is not very easy to adapt. All images included in C demo are written as byte tables in C header files. Function for displaying an image takes pointers to `int8_t`... In order to display new image you need to remember and old one. WTF!?!? You just wanted to display a png or jpg from your disk or web. And preferably do so in python. If that's your story then `epyper` is just for you.

`Epyper` provides high level python interface for displaying images on e-paper. The most important class is `DisplayController`, which provides `displayImg` method accepting PIL `Image` to be displayed. The image needs to have proper size. It doesn't necessary needs to be black and white only - color images will be converted but the effect may be dissapointing so it's better to provide b&w or convert it before handing it to the `DisplayController`. 

Installation
--------

The best way to install epyper is to use `PIP`:

    pip install epyper
    
This command will install latest stable version with all dependencies.
You can of course clone development version from github but it's not guaranteed to be working.

How to use it?
--------

    #necessary imports first
    from PIL import Image
    from epyper.displayCOGProcess import Display
    from epyper.displayController import DisplayController
    
    #create DisplayController instance specifying display type as an argument
    display = DisplayController(Display.EPD_TYPE_270)
    
    #open some image
    im = Image.open("some_image.png")
    
    #display it!
    display.displayImg(im)
    
Dependencies
--------
 * [WiringPi2-Python] (https://github.com/WiringPi/WiringPi2-Python)
 * [Pillow] (https://github.com/python-imaging/Pillow)
drench 0.0.13
A simple BitTorrent client
License: MIT
Keywords: bittorrent torrent visualization twisted

#Drench

Drench is a lightweight BitTorrent client written in Python. There are a couple of nice features, like the ability to download a subset of all the files in the torrent and exiting cleanly once the download is complete. 

The client works with [vis](https://github.com/jefflovejapan/vis), a Twisted web server and D3.js visualization, to show what's going on in the user's file system while the download is taking place.


##Install

The preferred way to install Drench is with [`pip`](http://www.pip-installer.org/en/latest/installing.html), which will let you run the following command from the terminal:

`pip install drench`

Alternatively, you can clone the source and run the following:

`python setup.py install`


##Use

From the command line enter the following:

`python -m drench ./mytorrent.torrent --port 8000 --visualizer 127.0.0.1:8002 --directory ~/Downloads/`

`./mytorrent.torrent`: The path to your torrent file (required)

`--port 8000`: The port to use for BitTorrent traffic (optional)

`--directory ~/Downloads`: Where to save your download (optional)

`--visualizer 127.0.0.1:8002`: The address of your [vis](https://github.com/jefflovejapan/vis) server (optional)

Drench isn't capable of downloading multiple torrents at once; just start up a second instance in another terminal instead.


##Status

You can use Drench to download torrent files from the small handful of sites I've tested on. 

What doesn't work:
- Seeding
- Magnet links
- UDP-based handshake with tracker (which knocks out several of the biggest trackers)