semvec/pypi-packages huggingface dataset:
alfrodull 0.1.0
Alfrodull is a utility that controls lights based on the a computers events

# Alfrodull
Alfrodull is a utility that controls lights based on the a computers events.

The lights can be turned off when the computer sleepd, and turn on when the computer wakes up. The original use case was to attach an led strip behind the monitor that turn on and off as the display does. But much more can be doen as additional events can easily be added. For example blinking the lights when notifications are received or tracking CPU usage and warning when it passes a threshold.

Right now the only supported devices are those from [blinksticks](https://www.blinkstick.com/). More can be added if requested and I can get ahold of them.

Alfrodull only works on Linux right now as all of the events uses DBUS notifications to react to events. Support for Windows could be added in the future but would require some other notification service.

## Install
```bash
pip install alfrodull
```

## Usage
Simply start alfrodull and pass a configuration file path as input.
```bash
alfrodull config.yml
```
Alfrodull could for example be started in xinit or i3wm config.

## Configuration
Alfrodull is configured with a file, this is where the event, animation and, color are specified. Colors are defined as hex values ex. `#ff00ff`, the values will be checked when the program is started and throw an exception if they can't be parsed. Passing a null value to the color is parsed as turning off the lights. Below are the currently supported events and animations that can be used.

| Event | Description |
| --- | --- |
| Init | After the applicationn is first run |
| Shutdown | Before the computer turns off |
| Sleep | Before the computer goes to sleep |
| Wakeup | After the computer wakes up |

| Effect | Description |
| --- | --- |
| Fade | Fades from the current color or if the color is null turn off. |
| Outside In | Starts from the outside and changes light one by one to the inside. |
| Inside Out | Opposite of Outside In. |

```yml
device: blinkstick
events:
  - type: "Init"
    animation:
      type: "Fade"
      color: "#ffffff"
  - type: "Sleep"
    animation:
      type: "Inside Out"
      color: "#000000"
  - type: "Wakeup"
    animation:
      type: "Outside In"
      color: "#ffffff"
```

## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
snapdump 1.0.7
ZFS incremental snapshot dump and restore tool
Keywords: zfs snapshot dump restore backup off-site

[![PyPI version](https://badge.fury.io/py/snapdump.svg)](https://badge.fury.io/py/snapdump)

# Snapdump

This tool is primarily intended to be used to backup zfs servers to foreign file systems with the offsite backup use case in mind.
It's intended to be ran from outside the ZFS box, and uses passwordless ssh login to perform zfs operations.

## Installation
Simply pip install, after  which you will be able to use snapdump
```
$ pip install snapdump
$ snapdump -v
snapdump 1.0.6
```
You will need to start by creating a config file, see [config.sample.yml](snapdump/config.sample.yml) for an example.

in addition, you need password-less ssh root access to your server. See [restricted_shell/README.md](restricted_shell/README.md) for details about improving security.

## Features
* Incremental snapshot dump and restore
* Taking zfs snapshots automatically
* Automatic cleanup of both ZFS znapshots and dumped files

Script is intended to be executed from a cron job, at a high frequency. it will not do anything 
if the correct interval has not passed.

## Commands
### backup
backup will create full or incremental snapshots of each dataset mentioend in the config, and will also perform cleanup
By default, backup will also verify the integrity of the dumped snapshot, this can be disabled by using --no-verify
```
$ snapdump -c /path-to-config/config.yml backup
Creating incremental snapshot dump for storage/home@2018_12_14__00_23_58 based on 2018_12_14__00_21_47
Creating incremental snapshot dump for storage/datasets01@2018_12_14__00_23_58 based on 2018_12_14__00_21_47
```

### list
Listing all current snapshots per dataset.
```
snapdump -c /path-to-config/config.yml list
storage/home:
	= storage/home@2018_12_10__19_20_34
	+ storage/home@2018_12_14__00_21_47
	+ storage/home@2018_12_14__00_23_58
storage/datasets01:
	= storage/datasets01@2018_12_11__04_47_33
	+ storage/datasets01@2018_12_14__00_21_47
	+ storage/datasets01@2018_12_14__00_23_58
```
Each snapshot is prefixed with = or +, to indicate if it's a full (=) or incremental (+) snapshot.

### restore
Restore will take a snapshot name and optionally a destination dataset and restore it. it will work correctly for incremental snapshots as well.
if destination dataset name is not provided, a new dataset with the suffix _restore will be created.

```
$ snapdump -c /path-to-config/config.yml restore -s storage/datasets01@2018_12_14__00_23_58 
Restoring snapshot storage/datasets01@2018_12_14__00_23_58 to storage/datasets01_restore
```

### cleanup
Initiate the cleanup, this is not normally needed because backup is cleaning up automatically
etherscan 0.3.0
Etherscan.io API wrapper

# Etherscan.io API wrapper

[![PyPi Version](http://img.shields.io/pypi/v/etherscan.svg)](https://pypi.python.org/pypi/etherscan/)

An Etherscan.io API wrapper, for Python.

With a default cache supported by [requests-cache](https://github.com/reclosedev/requests-cache)

## Installation
```
pip3 install etherscan
```

## Usage
```python
import etherscan

es = etherscan.Client(
    api_key='YOUR_API_KEY',
    cache_expire_after=5,
)

eth_price = es.get_eth_price()

eth_supply = es.get_eth_supply()

eth_balance = es.get_eth_balance('0x39eB410144784010b84B076087B073889411F878')

eth_balances = es.get_eth_balances([
    '0x39eB410144784010b84B076087B073889411F878',
    '0x39eB410144784010b84B076087B073889411F879',
])

gas_price = es.get_gas_price()

block = es.get_block_by_number(block_number=12345)

transactions = es.get_transactions_by_address('0x39eB410144784010b84B076087B073889411F878')

token_transations = es.get_token_transactions(
    contract_address='0xEF68e7C694F40c8202821eDF525dE3782458639f',
    address='0xEF68e7C694F40c8202821eDF525dE3782458639f',
)
```
frhyme 0.3
Guess the last phonemes of a French word

frhyme -- a toolkit to guess the last phonemes of a French word
Repository URL: https://gitlab.com/a3nm/frhyme
Python package name: frhyme

== 0. Author and license ==

frhyme is copyright (C) 2011-2019 by Antoine Amarilli

frhyme is free software, distributed under an MIT license: see the
file LICENSE for details of the licensing terms that apply to frhyme.

Many thanks to Julien Romero who maintains the PyPI package for
frhyme.

The file "frhyme.json" in the directory "frhyme" is a derivative work of
the French lexical database Lexique <http://www.lexique.org/>, version
3.83, by Boris New <http://psycho-usmb.fr/boris.new/> and Christophe
Pallier <http://www.pallier.org/>. Hence, this file is under the same
license as Lexique, namely, the license CC BY SA 4.0 (according to the
file README-Lexique.txt in the downloadable archive of Lexique). The
license in LICENSE does *not* apply to this file "frhyme/frhyme.json".

== 1. Features ==

frhyme is a tool to guess what the last phonemes of a French word are.
It is trained on a list of words with associated pronunciation, and will
infer a few likely possibilities for unseen words using known words with
the longest common prefix, using a trie for internal representation.

== 2. Installation ==

You need a working Python3 environment to run frhyme.

You can install frhyme directly with pip by doing:

  pip3 install frhyme

You can also manually clone the project repository and use frhyme
directly from there.

== 3. Usage ==

You can either run

  frhyme.py [NBEST]

giving one word per line in stdin and getting the NBEST top
pronunciations on stdout (default is 5), or you can import frhyme in a
Python program and call frhyme.lookup(word, NBEST) which returns the
NBEST top pronunciations (default is 5).

The pronunciations returned are annotated with a confidence score (the
number of occurrences in the training data). They should be sensible up
to the longest prefix of the input word that occurs in the training
data, but they may be prefixed by garbage.

The pronunciations are given in a variant of X-SAMPA which ensures that
each phoneme is mapped to exactly one ASCII character: the substitutions
are "A~" => "#", "O~" => "$", "E~" => ")", "9~" => "(".

== 4. Training ==

This section explains how the file "frhyme.json" can be prepared. You do
not need to do this to use frhyme, but it can be useful if you want to
create a pronunciation database from a different source.

The provided "fryhme.json" file was trained on a custom variant of the
database Lexique <http://www.lexique.org/>, with some additions. You can
regenerate it as follows:

  git clone 'https://a3nm.net/git/lexique'
  cd scripts
  ./make.sh 4 <(cut -f 1,2 ../lexique/lexique_my_format | uniq) additions > ../frhyme/frhyme.json

The value "4" indicates the number of trailing phonemes to keep, and can
be changed. Beware, this process can take up several hundred megabytes
of RAM. The resulting file should be accurate on the French words of
Lexique.