semvec/pypi-packages huggingface dataset:
mailsave 0.8.1
Dump emails to a file. It can be used as a remplacement for sendmail or an SMTP server.
License: MIT
Keywords: mail

=========
Mail Save
=========

Save emails to a file. It can be used as a replacement for sendmail or a SMTP server.

You can install it with ``pip install mailsave`` or ``pip install --user mailsave``

You can also use the single `file version <https://framagit.org/Jenselme/mailsave/tree/master/dist/mailsave.py>`__. Since mailsave only needs the standard library, you don't have anything to install.

It is different from other tools like `maildump <https://pypi.org/project/maildump/>`__ because:

- It is very minimalist: no Web or GUI interface, just files.
- It can be used instead of sendmail.

To use in place of sendmail, just put the path to the ``mailsave`` executable instead of the sendmail one. For instance, in a ``php.ini`` file:

::

    sendmail_path = /home/jenselme/.virtualenvs/test/bin/mailsave --dir mails

To use as an SMTP server, launch it like this:

::

    mailsave --server --dir mails

Then you can send it emails with the SMTP protocol:

::

    swaks --to user@example.com --server localhost --port 2525 --add-header "X-Custom-Header: Swaks-Tested"

To view the full help, use:

::

    mailsave --help


Written for Python 3.5+.


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

0.8.1 (2017-09-05)
------------------

* Decode HTML payload when extracting HTML. If we don't, the HTML message is not valid HTML and cannot be displayed by a web browser.


0.8.0 (2017-09-01)
------------------

* Move project to gitlab
* Add support for emails with payload encoded in base64
* Improve handling of email with special characters sent from stdin
* Normalize file names before save
* Can use subject in file name
* Can choose not to save the file
* Can extract HTML from the mail
* Add support for ``-t`` option. This is useful if the dots of the mail are escaped before being sent to the script, ie a dot (``.``) at the start of a line is replaced by two dots (``..``).


0.5.0 (2017-07-26)
------------------

* Add an option to print the version
* Don't print traceback when quitting the "readline" version with CTRL-C
* Can use a template for the file


0.4.0 (2017-07-10)
------------------

* Can choose the name of the file in which to save.


0.3.0 (2017-07-06)
------------------

* Don't fail if script receive undefined option. It is important to act as a
  replacement for sendmail. Some program will try to call it with custom options.
* Include LICENSE and HISTORY.rst in release made to pypi.
* Add a single file version so users don't have to install mailsave with pip.


0.2.0 (2017-07-05)
------------------

* Can read mail from SMTP.


0.1.0 (2017-07-05)
------------------

* Can act as a replacement of sendmail.
kb_transaction 0.0.3.1
Crawling KB bank transaction with IE Selenium
License: MIT

# KB 국민은행 계좌 조회

## 왜 만들었나요?

KB국민은행에서 작년 '빠른조회'서비스 사이트가 변경되어 기존에 Github에 돌아다니던 조회 도구가 무용지물이 되어,
Selenium을 사용한 크롤링 도구를 간단하게 만들었습니다.

## 제약

현재 국민은행에서는 크롬등의 AX가 지원되지 않는 브라우저는 '가상키보드'를 사용합니다.
IE에서는 가상키보드를 사용하지 않고 Selenium의 `send_keys` 메소드를 사용해 입력을 받기 때문에 기존 코드 그대로 사용이 가능합니다.
하지만 IE의 제약으로 인해 프로그램이 Windows상에서 구동되어야한다는 문제점이 있습니다.

이 패키지는 파이썬 3.5 이상에서 사용가능합니다.

## 설치법

우선 pip로 받아주세요.

```
pip install kb-transaction
```

다음으로는 윈도에서 돌아갈 Selenium StandAlone Server가 필요합니다.

[http://docs.seleniumhq.org/download/](http://docs.seleniumhq.org/download/)에서 받아주세요. [바로받기](https://goo.gl/hWYjHR)

Selenium을 구동할 때 이 서버는 항상 켜져있어야 합니다.(IE라서...)

위 사이트에서 `Internet Explorer Driver`도 받아줘야 합니다. 32비트 버전을 받아주세요. [바로받기](https://goo.gl/BbeFgE)

> 64비트 버전을 사용해도 되지만 `send_keys()`가 무척 느려지는 이슈가 있어 사용을 권장하지 않습니다.

## 사용법

```python
from kb_transaction.crawler import get_balance

PATH = 'C:\\Users\\Administrator\\Desktop\\IEDriverServer.exe'
transaction_list = get_balance(PATH, '계좌번호', '계좌 비밀번호4자리', '생년월일6자리')

for t in transaction_list:
    print(t)
```

위에서 받은 `IEDriverServer.exe`의 위치(절대경로)를 첫 인자로 하고 계좌번호와 비밀번호, 생년월일 6자리를 입력하면 아래와 같은 dict로 이루어진 list가 나옵니다.

> 유의: 경로 입력시 `\`는 `\\`로 입력해주셔야 제대로 escaping이 됩니다.

```json
[{'date': datetime.datetime(2017, 9, 5, 18, 3, 52), 'amount': -1250, 'balance': 114645, 'transaction_by': 'KB카드출금'}, ...]
```

date는 datetime 객체, amount는 입금이면 +int, 출금이면 -int, balance는 현재 계좌 잔고 int, transaction_by는 은행에 찍히는 거래소(입금자명 등)입니다.

## 발전계획

이전 거래내역과 다른, 새로운 거래내역을 발견시 DB를 업데이트해주는 Django App으로 발전해나가는 것도 고려중입니다.
colorz 1.0.3
Color scheme generator.
License: MIT
Keywords: colorz color scheme theme generator

========
 colorz
========

|Sample Usage|

Color scheme generator.

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

::

   pip install colorz

or just move ``colorz.py`` to somewhere in your ``$PATH``.
If you do the latter, you must install the dependencies in the
following section manually.

Dependencies
------------

- Python (2 or 3)
- Pillow
- scipy

Usage
-----

::

  usage: colorz [-h] [-n NUM_COLORS] [--minv MINV] [--maxv MAXV] [--bold BOLD]
                [--font-size FONT_SIZE] [--bg-color BG_COLOR] [--no-bg-img]
                [--no-preview]
                image

  A color scheme generator. Takes an image (local or online) and grabs the most
  dominant colors using kmeans. Also creates bold colors by adding value to the
  dominant colors. Finally, outputs the colors to stdout (one normal and one
  bold per line, space delimited) and generates an HTML preview of the color
  scheme.

  positional arguments:
    image                 the image file or url to generate from.

  optional arguments:
    -h, --help            show this help message and exit
    -n NUM_COLORS         number of colors to generate (excluding bold).
                          Default: 6
    --minv MINV           minimum value for the colors. Default: 170
    --maxv MAXV           maximum value for the colors. Default: 200
    --bold BOLD           how much value to add for bold colors. Default: 50
    --font-size FONT_SIZE
                          what font size to use, in rem. Default: 1
    --bg-color BG_COLOR   what background color to use, in hex format. Default:
                          #272727
    --no-bg-img           whether or not to use a background image in the
                          preview. Default: background image on
    --no-preview          whether or not to generate and show the preview.
                          Default: preview on

Thanks to
---------

- http://charlesleifer.com/blog/using-python-and-k-means-to-find-the-dominant-colors-in-images/
- https://gist.github.com/radiosilence/3946121

.. |Sample Usage| image:: http://i.imgur.com/QVLSXqK.png
   :target: colorz.png
   :alt: Color preview.
FBpyGIF 1.0.5
Frame Buffer drawing libray with GIF support for Python3
License: MIT
Keywords: GIF animation raspberry pi rpi frame buffer fb

# FBpyGIF
Pure Python implemented Memory-mapped Frame Buffer mainly for GIF animation on Raspberry pi

## Description
#### Problem domain
  Recent Raspberry pi and similar single-board computers which needs efficient way to show image usually uses [fbi](https://www.kraxel.org/blog/linux/fbida/).
  This pack of C libraries and programs are able to show GIF image properly thorugh direct frame buffer, but in lack of function to play GIF animation files.
#### Features
So I decided to make almost pure Python implemented library that is utilizing frame buffer and memory mapping.
The only a thing about 'pure' with this library is that it uses PIL library that is default installed python libarary on official Raspbian to convert image formats into raw BGR(A) and is also providing ways to use imagemagick as decompressor.
#### Note
There are many documents online how to mmap frame buffer with C, but none of similar are with Python, which also has mmap library by default. Actually there aren't so many examples about Python mmap library either. Hope this code helps you to understand how to ioctl and mmap not only frame buffers but also general Linux drivers with pure Python. 

### To-do
 - [x] Upload on PyPi to let it be installable with `pip install`.
   - [x] Make installation script
 - [x] Proper animtation time delay on every frames
 - [x] Standard argument style launcher
 - [x] Checking Python version
 - [ ] Add more options to program
   - [x] Shuffling
   - [ ] Picture frame
   - [x] Custom clearing
 - [ ] Layer support
 - [ ] Background loading of next animation file to reduce loading delay between them
 - [ ] Optimize with setting screen to RGB mode by sending mailbox message (RGB_to_BGR function will be unused)
 - [ ] Bugfix with wrong ioctl command. `dmesg` shows `bcm2708_fb soc:fb: Unknown ioctl 0x5401`
 - [ ] Wiki documentation about ioctl and mmap with pure Python.

### Tested on
 - Latest Raspbian on Raspberry pi 2 B+
 - Archlinux (No, not with the ARM version on RPi, but the one on a vagrant VM)
 - Ubuntu Mate Xenial on Odroid C2

### How to install
 - prerequisite for pillow (for fresh raspbian)
```
  sudo apt install libjpeg8-dev libfreetype6-dev libwebp-dev -y
```
 - option1: use pip
```
  sudo apt install python3-pip
  sudo pip3 install fbpygif
```
 - option2: use git and setup.py
```
  sudo apt install git
  git clone https://github.com/chidea/FBpyGIF
  cd FBpyGIF
  sudo python3 setup.py install
```

### How to use
These three are identical.
```
sudo FBpyGIF [directory or file list...]
sudo python3 -m FBpyGIF.main [...]
sudo python3 -m FBpyGIF [...]
```
 - `FBpyGIF --help` to see all commands.
 - Library and script is written for Python >= 3.
 - Writing directly to frame buffer driver needs superuser priviledge.
 - `FBpyGIF -ct` will put you into color test mode. (Aware of hypnotising screen ;) )
 - Utility
   - `python3 -m FBpyGIF.util size_cat ~/pictures` will categorize pictures based on its sizes and move into folders horizontal, vertical, square under the directory you run it.