semvec/pypi-packages huggingface dataset:
bpl-api 0.1.0
An API for the Blockpool Blockchain.

# BPL API

> A simple Python API for the Blockpool blockchain

This is a easy-to-use Python API for interacting with a Blockpool blockchain. This API provides a Python wrapper for the majority of the API endpoints for [BPL-Node](https://github.com/blockpool-io/BPL-node)

## Features

### Accounts Endpoint
- [x] Retrieve an account
- [x] Retrieve the balance of an account
- [x] Retrieve the public key of an account
- [x] Retrieve the delegate registration fee
- [x] Retrieve the voted delegate of an account

### Blocks Endpoint
- [x] Retrieve for a block
- [x] List all blocks
- [x] Retrieve the epoch of the blockchain
- [x] Retrieve the height of the blockchain
- [x] Retrieve the nethash of the blockchain
- [x] Retrieve a fee
- [x] List all fees of the blockchain
- [x] Retrieve the milestone of the blockchain
- [x] Retrieve the reward of the blockchain
- [x] Retrieve the supply of the blockchain
- [x] Retrieve the status of the blockchain

### Delegates Endpoint
- [x] Retrieve a delegate
- [x] Retrieve the total count of delegates
- [x] Retrieve the delegate registration fee
- [x] Retrieve the total forged of a delegate
- [x] List all voters of a delegate
- [x] List all delegates
- [x] Search all delegates
- [x] List the next forgers
- [x] Retrieve the forging status of a delegate

### Loader Endpoint
- [x] Retrieve the status of the connected node
- [x] Retrieve the synchronisation status of the connected node
- [x] Retrieve the configuration of the connected node

### Multisignature Endpoint
- [x] Retrieve the pending multisignature transactions of an account
- [ ] Retrieve a multisignature account

### Peers Endpoint
- [x] Retrieve a peer
- [x] List all peers
- [x] Retrieve the core version

### Signatures Endpoint
- [x] Retrieve the signature registration fee

### Transaction Endpoint
- [x] Retrieve a transaction
- [x] List all transactions
- [x] Retrieve an unconfirmed transaction
- [x] List all unconfirmed transactions
- [x] Send a transaction

### Endpoint Entity
- [x] GET
- [x] POST
- [x] PUT
- [x] DELETE

## Installation
```sh
pip install bpl-api
```

Note: not working as of 2018-07-26

## Usage

There are 8 API endpoints in bpl-api:

- ``accounts``
- ``blocks``
- ``delegates``
- ``loader``
- ``multisignatures``
- ``peers``
- ``signatures``
- ``transactions``

Each endpoint can be accessed using the `Client` interface, for example:
```python
from bpl_api import Client

accounts_endpoint = Client("s01.mc.blockpool.io:9030").api("accounts")
```

See the documented code for how each endpoint may be used.

## Security or Errors


If you discover a security vulnerability or error within this package, please email [me](mailto:alistair.o'brien@ellesmere.com) or message me on the [BPL discord](https://discordapp.com/invite/67HxSKq).

## Credits

- [Alistair O'Brien](https://github.com/johnyob)
chromatic 1.0.3
Generate monochromatic backgrounds instantly

<h1 align="center">chromatic</h1>
<p align="center">Create monochromatic backgrounds instantly</p>
<p align="center">
<img src="https://i.imgur.com/pNYTBJU.gif" height="500">
</p>

## Installation

#### pip

```sh
$ pip install chromatic
```

#### Manual

```sh
$ git clone https://github.com/prakashdanish/chromatic.git && cd chromatic
$ python3 setup.py install
```

#### Imgur API
If you wish to use `--imgur` option which uploads the generated file to imgur and copies the image link to the clipboard, you'd need the API keys, namely `client_id` and `client_secret`
These are fairly easy to obtain.
1. Register [here](https://imgur.com/signin?redirect=https%3A%2F%2Fapi.imgur.com%2Foauth2%2Faddclient)
2. Copy your keys to `~/.chromatic.conf`

```conf
[DEFAULT]
client_id=<your_id>
client_secret=<your_secret>
```

Your config file should already be present in your home dir `~/.chromatic.conf` and if it's not, then run `chromatic` once without any options or create the file manually.

## Usage

```sh
usage: chromatic [-h] [--color COLOR] [--size SIZE] [--imgur] [--nosave] [--open]
              [--path PATH] [--name NAME]

optional arguments:
  -h, --help     show this help message and exit
  --color COLOR  HEX color code
  --size SIZE    size of the image in LxB
  --imgur        upload image to imgur and return URL
  --nosave       don't save file locally
  --open         open imgur URL in browser
  --path PATH    path to the file
  --name NAME    name of the image file generated
```

## Why?
I've had countless instances wherein I need a solid background image with a given size and color, and after going through the various solid background generators on the web, I end up using photoshop to do the same, which in itself is a tedious task.

## Contributing
Do you want to make this better? Open an issue and/or a PR on Github. Thanks!

## License
MIT License

Copyright (c) 2018 [Danish Prakash](https://github.com/prakashdanish)

---