semvec/pypi-packages huggingface dataset:
bai2-to-json 0.0.5
Small package for a function which unpacks bai2 files, uses the bai2 package.
Requires Python: >=3.7

# bai2_to_json
This is a simple package built for two purposes: i) learn to use PyPI to distribute packages, and ii) publish the function within, which converts a bai_2 object to a JSON-serialized object.
## Usage
```
import bai2_to_json

path = '$yourpath'

file_to_json(path)
    # returns a json object
```
cracker-tools 0.1.4
逆向工具包
Requires Python: >=3

#### 1.1 打包
`python
python -m pip install --upgrade setuptools wheel # 打包工具
python -m pip install --upgrade twine  # 发布模块的工具
`

#### 2.1 安装此包
 pip install cracker-tools -i https://pypi.python.org/pypi
pencilctl-lite 0.0.13
A simple package to help deploy docker swarm stack.
Requires Python: >=3.7,<4.0

# pencilctl_lite

Repositório contendo o script pencilctl_lite, responsável por fazer deploy de projetos que utilizem uma estrutura de docker stack, mas que não serão executados no cluster principal da Pencil.

## Quick Start

Para utilizar este script, existem algumas pré-requisitos:

1. Um cluster swarm tem que existir na máquina em que ele será executado;
2. O projeto que será alvo do deploy deve possuir uma pasta `docker/production`, contendo os arquivos Dockerfile (caso as stacks exigam imagens customizadas), e os arquivos de stack, que serão utilizados para realizar o deploy do projeto.
3. O diretório  `docker/production`, deve ter a seguinte estrutura:

![estrutura ](./estrutura.png)

- **xpto**: Diretório que centraliza todos os arquivos de uma stack. Um projeto pode ter mais de uma stack, por exemplo, uma stack para fazer deploy do servidor, e outra para um http proxy ou um redis. O pencilctl _lite permite fazer deploy de multiplas stacks. Diretório obrigatório;
- **xpto/stacks**: Diretório contendo os arquivos de stack do projeto.  Diretório obrigatório;
- **xpto/nginx_confs**: Diretório contendo arquivos de configuração do nginx. Diretório optativo;
- **xpto/server**: Diretório contendo o Dockerfile do serviço chamado server, declarado no arquivo de stack. Diretório optativo;
- **xpto/db**: Diretório contendo o Dockerfile do serviço chamado db, declarado no arquivo de stack. Diretório optativo;
- **xpto/nginx**: Diretório contendo o Dockerfile do serviço chamado nginx, declarado no arquivo de stack Diretório optativo;

Essa estrutura deve existir **no repositório do projeto** que será alvo do deploy. O papel do script é apenas acessar esse diretório e automatizar os processos de build e deploy. Essa estrutura também padroniza o nome/tag das imagens que são construidas via `./pencilctl_lite build`.

Supondo a stack xpto, o comando para buildar a imagem do server seria:

    ./pencilctl_lite.sh build --docker_path=/home/user/xpto/docker --service=server --stack=xpto

Este comando geraria a imagem `127.0.0.1:5000/xpto_server:stable-prod`.

O comando para fazer deploy da stack:

    ./pencilctl_lite.sh deploy --docker_path=/home/user/xpto/docker --stack=xpto

Este comando geraria a stack `xpto_prod`.

Para saber quais comandos o script possui e quais argumentos ele recebe, basta executar:

    ./pencilctl_lite.sh help
readmrz 0.0.2
Machine readable zone reader on ID cards

# readmrz

`readmrz` detects the machine readable zone on ID cards and extracts the text in that zone.

This zone contains the name, surname, date of birth, etc. of the person to whom the identity card was issued.
It has universal standards in new generation identity cards and passports.

In conclusion, `readmrz` is a tool to read mrz code on identity cards and passports.

## Install

Please install `tesseract` before installing the package,

On macOS,

```zsh
$ brew install tesseract
```

On Ubuntu,

```zsh
$ sudo apt-get install -y tesseract-ocr
```

On Windows,

```zsh
$ choco install tesseract
```

Then you can install the latest release,

```zsh
$ pip install readmrz
```

## Usage

```python
>>> import json
>>> from readmrz import MrzDetector, MrzReader

>>> detector = MrzDetector()
>>> reader = MrzReader()

>>> image = detector.read('/path/to/file')
>>> cropped = detector.crop_area(image)
>>> result = reader.process(cropped)
>>> print(json.dumps(result))
{
    "surname": "STEARNE",
    "name": "JOHN TIMOTHY KELLY",
    "country": "CAN",
    "nationality": "CAN",
    "birth_date": "580702",
    "expiry_date": "240904",
    "sex": "M",
    "document_type": "P",
    "document_number": "GA302922",
    "optional_data": "",
    "birth_date_hash": "0",
    "expiry_date_hash": "3",
    "document_number_hash": "0",
    "final_hash": "2"
}
```

or using url,

```python
>>> import json
>>> from readmrz import MrzDetector, MrzReader

>>> detector = MrzDetector()
>>> reader = MrzReader()

>>> image = detector.read_from_url('/url/to/image')
>>> cropped = detector.crop_area(image)
>>> result = reader.process(cropped)
>>> print(json.dumps(result))
{
    "surname": "STEARNE",
    "name": "JOHN TIMOTHY KELLY",
    "country": "CAN",
    "nationality": "CAN",
    "birth_date": "580702",
    "expiry_date": "240904",
    "sex": "M",
    "document_type": "P",
    "document_number": "GA302922",
    "optional_data": "",
    "birth_date_hash": "0",
    "expiry_date_hash": "3",
    "document_number_hash": "0",
    "final_hash": "2"
}
```

The result is returned as a dict so it's easy to access the fields. You can also use command-line,

```zsh
$ readmrz -f /path/to/file
```

or using url,

```zsh
$ readmrz -u /url/to/image
```

## Example

![example](/images/flow.jpg)

Please check to the [notebook](https://github.com/egemenzeytinci/readmrz/blob/master/notebook/example.ipynb) to see the results step by step.

## Contribution

Please check to the pylint and flake8 steps in workflow before contribution.
div.lib.github3apps.py 0.3.1
Access the Github API as an Application
Requires Python: >=3.9
Keywords: automation github apps git

# github3apps.py

This project is an extension to the [github3.py](https://github.com/sigmavirus24/github3.py) project, with the purpose of enabling [GitHub Application](https://developer.github.com/apps/) development.

Using this library developers can access all of the special App endpoints as well as pull out a `github3.py` client authenticated by a specific installation.


## Usage

### Connect to Github as Application

To connect you need to pass the app id and the location of your app's private key.

```python
from github3apps import GithubApp

gha = GithubApp(app_id, path_to_private_key)
gha.set_user_agent('MyApp')
gha.get_app()
```


### List Available Installations

This returns the list of installations IDs available to your application.

```python
from github3apps import GithubApp

gha = GithubApp(app_id, path_to_private_key)
installation_ids = gha.get_installations()
```


### Get Repositories Available to Installation

This returns the list of repositories available to your specific installation.

```python
from github3apps import GithubApp

gha = GithubApp(app_id, path_to_private_key)

installation = gha.get_installation(installation_id)
installation.get_repositories()
```


### Communicate with Github API as Installation

This returns a [github3.py](https://github.com/sigmavirus24/github3.py) client already authenticated against a specific installation.

```python
from github3apps import GithubApp

gha = GithubApp(app_id, path_to_private_key)
installation = gha.get_installation(installation_id)
gh = installation.get_github3_client()
```
detimer 0.2.1
Universal backup manager

# Detimer

Detimer provides a high-level interface for making backups. Say goodbye to messy
backup scripts. With this tool you can configure all your backup targets in a
single yaml file.

**Currently supported backup tools:**
- [rdiff-backup](https://rdiff-backup.net)
- *more coming soon*

## Overview

A **root** is a backup job, including information such as the directory to back
up, where to store it and exclusion rules. Eventually, you will also be able to
specify a backup tool (for now rdiff-backup is assumed).

## Installation

You will need
[rdiff-backup](https://github.com/rdiff-backup/rdiff-backup/releases) installed.
Then you can install detimer:

```
pip install detimer
```

## Usage

```sh
$ detimer -h
Usage: detimer [OPTIONS] COMMAND [ARGS]...

  Universal backup manager

Options:
  -V, --version  Show the version and exit.
  -h, --help     Show this message and exit.

Commands:
  backup  Backup specified roots
  list    List all roots
```

## Configuration

To add a root, edit `config.yml` in:
- OS X: **~/Library/Application Support/Detimer**
- Unix: **~/.config/detimer**
- Windows: **%USERPROFILE%\AppData\Roaming\Detimer**

Each root should have the following properties:
- `name`
- `src` - Absolute path of the source directory
- `dest` - Absolute path of the destination directory
- `match` - Inclusion/exclusion rules. Patterns starting with `-` are excluded,
  and patterns starting with `+` are force-included. Any inclusion lines must
  precede their corresponding exclusion lines (see the example below).

**Example**:

```yml
roots:
  - name: mega
    src: /home/USER
    dest: /mega/backups
    match: |
      - Downloads
      - **/node_modules
      + another-excluded-dir/except-this-file
      - another-excluded-dir
```

## Contributing

Pull Requests are welcome! Please open an issue before making major changes.
Additionally, we use
[conventional commits](https://www.conventionalcommits.org/en/v1.0.0/).

## License

Licensed under [GNU GPLv3](./LICENSE)
iow-gpl 1.0.6
Balanced parentheses

Improved Octo Waddle
--------------------

An implementation of the balanced parentheses tree structure as described by
[Cordova and Navarro](http://www.dcc.uchile.cl/~gnavarro/ps/tcs16.2.pdf). This 
repository is a GPL licensed version of [iow](https://github.com/biocore/improved-octo-waddle).

Install notes
-------------

Installation is a two step procedure right now due to the chicken and egg
problem of requiring numpy and cython for setup.py to execute. The package is
named iow in pypi as "bp" was taken at time of registration.

```
$ conda create --name bp python=3.8
$ conda activate bp
$ conda install numpy cython
$ pip install iow-gpl
```

Developer notes
---------------

If pulling the source, please note that we use a submodule and Github does not
by default bring it down. After a clone, please run:

```
$ git submodule update --init --recursive
```

Fragment insertion
------------------

BP supports the [jplace format](https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0031009). Fragments can be inserted using either fully-resolved or multifurcation mode to resolve multiple placements to the same edge. In fully resolved, the edge placed against is broken N times where N is the number of fragments on the edge. In multifurcation, a new node is constructed as the average of the distal length for the N fragments, and a separate multifurcation node is added which encompasses the placed fragments.

Insertions can be handled by the command line following install:

```
$ bp placement --help
Usage: bp placement [OPTIONS]

Options:
  --placements PATH               jplace formatted data  [required]
  --output PATH                   Where to write the resulting newick
                                  [required]

  --method [fully-resolved|multifurcating]
                                  Whether to fully resolve or multifurcate
                                  [required]

  --help                          Show this message and exit.
```

Note that the multifurcating support relies on GPL code derived from the Genesis project.
macchanger1 0.0.4
MAC changer

# MAC Changer

Programming implementation of macchanger tool.

## How to install it?

## On Linux
``` pip install macchanger1 ```

## How to use it?

### Initialize Package
``` from macchanger import * ```

# documentation is in it's script.


## On any issue.
### e-mail me on: skrab.sah@gmail.com