semvec/pypi-packages huggingface dataset:
blockcard 0.1.2
It's the proof-of-thought that counts
License: MIT

# Blockcard



  - [ Introduction](#introduction)
  - [ Installation](#installation)
  - [ Usage](#usage)
    - [ Displaying headers and message of a block:](#displaying-headers-and-metadata-of-a-block)
    - [ Generating the first block in a chain](#generating-the-first-block-in-a-chain)
    - [ Generating subsequent blocks in the chain:](#generating-subsequent-blocks-in-the-chain)
    - [ Checking validity of blocks](#checking-validity-of-blocks)
      - [ Check current block](#check-current-block)
      - [ Check all blocks in chain recursively](#check-all-blocks-in-chain-recursively)

## Introduction
A pure Python implementation of the blockcard protocol's proof-of-thought system for gift transactions. Read the full paper [here](https://drive.google.com/file/d/1R2kP6jt5FqH2T9jSR1icVfcJkdFsLUht/view?usp=sharing).

## Installation

Install the latest version from PyPI with `pip install blockcard`.

## Usage

### Displaying headers and message of a block:

`python -m blockcard -d target.blk`

### Generating the first block in a chain

`python -m blockcard -g`

### Generating subsequent blocks in the chain:

`python -m blockcard -g parent.blk`

(For longer messages you may want to pipe this into a pager like `less`)

### Checking validity of blocks

#### Check current block

`python -m blockcard -c target.blk`

#### Check all blocks in chain recursively

`python -m blockcard -C target.blk`

(All .blk files should be stored in current working directory)
fl33t 0.6.2
Fl33t API Client
License: MIT
Requires Python: >=3.4

Fl33t API Client
================

The Fl33t API Client is a Python module for interacting with fl33t_. It requires Python 3+. 

.. _fl33t: https://www.fl33t.com


Example usage
-------------

Setup a Fl33t client::

    from fl33t import Fl33tClient

    team_id = '<your-team-id>'
    token = '<your-token>'

    client = Fl33tClient(team_id, token)


Retrieve all trains/fleets/devices and if there are any upgrades pending::

    for train in client.list_trains():
        print(train)
        for fleet in train.fleets():
            print(fleet)
            for device in fleet.devices():
                print(device)
                fw_upgrade = device.checkin()
                if fw_upgrade:
                    print(fw_upgrade)


Upload new build to a train::

    train_id = '<your-train-id>'
    version = '<your-version-id>'
    filename = '<full/path/to/your-firmware-file>'

    build = client.Build(
        train_id=train_id,
        version=version,
        filename=filename
    )

    print(build.create())