semvec/pypi-packages huggingface dataset:
bidcap 0.0.1
benchmark image dataset collection and preprocessing

# bidcap
Benchmark Image Dataset Collection And Preprocessing

## Image datasets incorporated so far

* MNIST dataset and its variants - 12000 train, 50000 test
    * MB: MNIST basic dataset
    * MBI: MNIST background image - A patch from a black and white image was used as the background for the digit image
    * MDRBI: MNIST digits with rotation and background image - The perturbations used in MRD and MBI were combined.
    * MRB: MNIST random background - A random background was inserted in the digit image
    * MRD: MNIST rotated digits - The digits were rotated by an angle generated uniformly between 0 and 360 radians.

* CONVEX dataset - 8000 train, 50000 test

## Usage of the package

### download the datasets

Download the datasets and put the files under the root directory of your project as shown in the following picture. 

![alt text](https://github.com/wwwbbb8510/bidcap/blob/master/dataset_file_structure.PNG "Datasets file structure")

### Load the datasets
```python
# import the loader tool
from bidcap.utils.loader import ImagesetLoader
# import mb. Pass the dataset name described above as the first parameter
data = ImagesetLoader.load('mb')
# training images
data.train['images']
# training labels
data.train['labels']
# test images
data.test['images']
# test labels
data.test['labels']
```
file-hash 1.0.1
Simple hashing script for files.
Requires Python: >=3.7

![file-hash](https://raw.githubusercontent.com/joshuaavalon/file_hash/master/image/icon.png "file-hash")

# file-hash

file-hash is a simple command line hashing utility written in Python.

## Requirements

* Python 3.7+ 
* Jinja2 2.10+

You should able to use this with Python < 3.7 if you have [dataclass back port](https://github.com/ericvsmith/dataclasses).

## Usage

### Create a hash

```bash
file_hash hash file.txt
```

### Validate a hash

```bash
file_hash validate file.txt
```

## Options

```bash
usage: file_hash [-h] [-a <algorithm>] [-d] [-r] [-s] [-p <path>]
              [-P [<prefix> [<prefix> ...]]] [-S [<suffix> [<suffix> ...]]]
              [-R <regex>] [-K <size>] [-J <size>]
              <command> <path>

Simple hashing script for files.

positional arguments:
  <command>             hash or validate
  <path>                Starting path

optional arguments:
  -h, --help            show this help message and exit
  -a <algorithm>, --algorithm <algorithm>
                        Algorithm to calculate hash. (Default: md5)
  -d, --dry-run         Enable dry run to check what file will be generated.
  -r, --recursive       Go through directories recursively. Use carefully with -s
  -s, --symlink         Follow symlink. Use carefully with -r
  -p <path>, --report <path>
                        Generate a HTML report.
  -P [<prefix> [<prefix> ...]], --ignore-prefix [<prefix> [<prefix> ...]]
                        Ignore files and directories that start with those prefix. (Default: ["."])
  -S [<suffix> [<suffix> ...]], --ignore-suffix [<suffix> [<suffix> ...]]
                        Ignore files and directories that end with those suffix. (Default: all hashing algorithm)
  -R <regex>, --regex <regex>
                        Only hash the files that match the regular expression. (Default: None)
  -K <size>, --min-size <size>
                        Minimum file size to be hashed. Default unit is Byte.
                        Support KB, GB, TB, PB. e.g. 1KB (Default: None)
  -J <size>, --max-size <size>
                        Maximum file size to be hashed. Default unit is Byte.
                        Support KB, GB, TB, PB. e.g. 1KB (Default: None)
```

Note than `algorithm` and `dry-run` does not work on `validate`.