semvec/pypi-packages huggingface dataset:
basylic 0.22.0
Python interface to Basylic's API
License: MIT
Keywords: insurance,anti-fraud,basylic

# basylic-python-client

Module to access [Basylic](https://www.basylic.fr/) API.

# Summary

Developed by ETAONIS, Basylic is a SaaS solution performing document
fraud detection with "state-of-the-art" performances. The solution is
also used as a powerful tool to extract information from
documents. This module provides a Python interface for accessing
Basylic.

# Installation

This module is available on PyPI. You can install it with `pip` command:

```
pip install basylic
```

Alternatively, you can access the module source code on GitHub:

* https://github.com/basylic-team/basylic-python-client

# Basic usage

To access the API, refresh and access tokens should be provided. You
can access your Refresh token via the Portal interface. Then, we
recommend you store its value in the environment variable
`BASYLIC_REFRESH_TOKEN`.

```python
from basylic import Basylic
basylic = Basylic()
```

Alternatively, if your refresh token is stored in a non-standard
location, you can specify its value with argument `refresh_token` 
during class instantiation:

```python
from basylic import Basylic
basylic = Basylic(refresh_token=...)
```

2. At least two arguments should be set: one of `file_path`,
   `file_obj` or `ftp_file`, and `document_type`:

```python
basylic.send_document(file_path="corinne-berthier-recto-verso.pdf", document_type="french_ids")
```

* The `file_path` argument is a string with the document path (e.g.: "~/FILE.pdf")
* `document_type` is a string specifying which Basylic API to call (e.g.: "french_ids")

Possible values for `document_type` are: `'french_ids'`, `'rib'`, `'ri'`, `'avis-imposition'`...

With those arguments specified, `send_document` returns a comprehensive JSON document.

3. Data about applicants can also be joined to the API call:

```python
applicants_information = {"applicant_0": {"identity": "BERTHIER CORINNE"}}
basylic_result = basylic.send_document(
    file_path="corinne-berthier-recto-verso.pdf",
    document_type="french_ids", applicants_information=applicants_information)
print(basylic_result)
```

4. And various arguments could be passed as kwargs. For example:

* a. `save_report=True` will save the result of your request in your
  user space on Basylic Portal;
* b. `with_image=True` will return a base64 image for each recognised document;

For example, this code:

```python
applicants_information = {"applicant_0": {"identity": "BERTHIER CORINNE"}}
basylic_result = basylic.send_document(
    file_path="corinne-berthier-recto-verso.pdf",
    document_type="french_ids", applicants_information=applicants_information,
    with_image=True, save_report=True)
print(basylic_result)
```

will act in the following way:

1. Uploads of document whose path is `file_path` to Basylic service `french_ids`;
2. Produces of a JSON document `basylic_result` with all relevant information;
3. Compares `identity` provided and identity extracted by Basylic OCR;
5. A base64 encoded image will be returned in the approriate key of `basylic_result`.
burner 0.8.1
Script to interact with SimSMS's website.
License: MIT
Requires Python: >=3.8,<4.0
Keywords: phone,burner,sms,simsms

# Burner

![PyPI](https://img.shields.io/pypi/v/burner) ![PyPI - License](https://img.shields.io/pypi/l/burner) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/burner)

Easy to use script to determine the cheapest price for [SimSMS](https://simsms.org/) codes.

## Installation

### With Pip

```bash
pip install burner
```

### With Poetry

```bash
poetry add git+https://github.com/ramadan8/Burner.git
```

### Manual

```bash
git clone https://github.com/ramadan8/Burner --depth 1
poetry install
```

## Usage

Use the following command to find the code for the service you want.

```bash
burner services
```

Then use the following command to find the price list for the service.

```bash
burner prices opt29 # This will get the price list for Telegram.
```

If you want to refresh the cache for the prices to a newer version, run the following command.

```bash
burner --authorization <apikey> reset
```

If you'd like to buy a phone number, use the following format. An API key with available funds is necessary for this command.

```bash
burner -a <apikey> number <countrycode> <servicecode>
```

For example, you could type the following to get a Russian [Signal](https://signal.org/) code.

```bash
burner -a <apikey> number RU opt127
```

You can also set your API key with the `SMS_AUTHORIZATION` environment variable.

For more information simply type `burner --help`.