semvec/pypi-packages huggingface dataset:
ocr-pro 0.1.3
OCR extractor for PAN and Aadhaar card details
Requires Python: >=3.8

# OCR Extractor

[![PyPI version](https://img.shields.io/pypi/v/ocr-pro?color=green)](https://pypi.org/project/ocr-pro/)
[![Python versions](https://img.shields.io/pypi/pyversions/ocr-pro.svg)](https://pypi.org/project/ocr-pro/)
[![License](https://img.shields.io/pypi/l/ocr-pro?color=yellow)](https://opensource.org/licenses/MIT)
[![Downloads](https://img.shields.io/pypi/dm/ocr-pro?color=orange)](https://pypi.org/project/ocr-pro/)

A simple and efficient OCR-based data extraction tool for Indian PAN and
Aadhaar cards using [Tesseract
OCR](https://github.com/tesseract-ocr/tesseract).

## 🆕 What's New in v0.1.3

- Corrected example usage in README:  
  - `print(pan_data.get_pan())`  
  - `print(aadhaar_data.get_aadhaar())`
- Includes all features from v0.1.2:  
  - Added `tesseract_cmd` parameter to `ExtractAadhaarData` and `ExtractPanData` for custom Tesseract paths.  
  - Fixed issue with preprocessing argument (`preprocess`) in child classes not being passed correctly.  

*(For full version history, see [CHANGELOG.md](./CHANGELOG.md))*

## ✨ Features

- Extract PAN card data with a single function call
- Extract Aadhaar card data with a single function call
- Built-in preprocessing option for better OCR accuracy
- Cross-platform support (Windows, Linux, macOS) with configurable
  Tesseract path

## 📦 Installation

```bash
pip install ocr-pro
```

## 🚀 Usage

### Extract PAN Card Data

```python
from ocr import ExtractPanData

# Default usage (preprocess=False by default)
pan_data = ExtractPanData("pan_image.jpg", tesseract_cmd="/usr/bin/tesseract")

print(pan_data.get_pan())
```

### Extract Aadhaar Card Data

```python
from ocr import ExtractAadhaarData

# You can also enable preprocessing
aadhaar_data = ExtractAadhaarData("aadhaar_image.jpg", tesseract_cmd="/usr/bin/tesseract", preprocess=True)

print(aadhaar_data.get_aadhaar())
```

### Arguments

- **filepath** *(str)* → Path to the image file
- **tesseract_cmd** *(str, optional)* → Path to the Tesseract
  executable (default: system auto-detection or
  `"C:\Program Files\Tesseract-OCR\tesseract.exe"` on Windows)
- **preprocess** *(bool, default=False)* → Whether to apply
  preprocessing for better OCR results

## ⚙️ Requirements

- Python 3.7+
- [Tesseract OCR](https://tesseract-ocr.github.io/) installed on your
  system

## 📜 License

MIT License
linux-api 2.0.0
A linux API server to get system informations and other live informations about your linux machine.
Requires Python: >=3.11

# Welcome to Linux-API

Linux-API is a modern, secure REST API server for Linux system monitoring and management.

## Quick Start
- See the documentation for installation and hosting options:
  - [Manual Hosting](https://github.com/Ivole32/Linux-API/wiki/Manual-Hosting)
  - [pip Installation](https://github.com/Ivole32/Linux-API/wiki/pip-Hosting)
  - [systemd Service](https://github.com/Ivole32/Linux-API/wiki/Systemd-Hosting)

## Features
- [See all features](https://github.com/Ivole32/Linux-API/wiki/Features)

## API Documentation
- Interactive OpenAPI docs: [Docs](http://67.207.74.82/docs#)

## Demo Service
- Try the public demo: [Demo](http://67.207.74.82/docs)

## Support
- For questions or issues, open an issue on GitHub or contact the maintainer.
finergy-mia-pos-sdk 1.1.3
Python SDK for Finergy MIA POS eComm API
Requires Python: >=3.9
Keywords: finergy, moldova, mia, pos, qr, payments, api, sdk, python

# Python SDK for Finergy MIA POS eComm API
* Finergy MIA POS eComm integration: https://github.com/finergy-tech/mia-pay-ecomm-integration
* Finergy MIA POS eComm API https://github.com/finergy-tech/mia-pay-ecomm-integration/blob/main/docs/mia-ecomm-api_v0.0.1.html
* GitHub project https://github.com/alexminza/finergy-mia-pos-sdk-python
* PyPI package https://pypi.org/project/finergy-mia-pos-sdk/

## Installation
To easily install or upgrade to the latest release, use `pip`:
```shell
pip install --upgrade finergy-mia-pos-sdk
```

## Getting started
Import SDK:

```python
from finergy_mia_pos_sdk import FinergyMiaPosSdk
```

Add project configuration:

```python
import os

FINERGY_MIA_POS_BASE_URL = os.getenv('FINERGY_MIA_POS_BASE_URL', FinergyMiaPosSdk.TEST_BASE_URL)
FINERGY_MIA_POS_MERCHANT_ID = os.getenv('FINERGY_MIA_POS_MERCHANT_ID')
FINERGY_MIA_POS_SECRET_KEY = os.getenv('FINERGY_MIA_POS_SECRET_KEY')
FINERGY_MIA_POS_TERMINAL_ID = os.getenv('FINERGY_MIA_POS_TERMINAL_ID')
```

## SDK usage examples
### Initialize SDK instance

```python
finergy_sdk = FinergyMiaPosSdk(
    base_url=FINERGY_MIA_POS_BASE_URL,
    merchant_id=FINERGY_MIA_POS_MERCHANT_ID,
    secret_key=FINERGY_MIA_POS_SECRET_KEY)
```

### Create order payment

```python
payment_data = {
    'terminalId': FINERGY_MIA_POS_TERMINAL_ID,
    'orderId': 'order12345',
    'amount': 150.75,
    'currency': 'MDL',
    'language': 'ro',
    'payDescription': 'Payment for order #12345',
    'paymentType': 'qr',
    'clientName': 'Test Client',
    'clientPhone': '00000000',
    'clientEmail': 'test@test.com',
    'callbackUrl': 'http://your_callback_url',
    'successUrl': 'http://your_success_url?orderId=order12345',
    'failUrl': 'http://your_failUrl_url?orderId=order12345'
}

create_payment_response = finergy_sdk.create_payment(payment_data=payment_data)

payment_id = create_payment_response['paymentId']
checkout_page = create_payment_response['checkoutPage']
```

### Validate callback signature

```python
callback_data = {
    'result': {
        'terminalId': 'TRMW0001',
        'orderId': '108',
        'paymentId': '2a663962-c954-4984-90e5-1d24c3305f7b',
        'status': 'EXPIRED',
        'amount': 1775.00,
        'currency': 'MDL',
        'paymentType': 'qr',
        'paymentDate': '2024-12-17T11:54:23'
    },
    'signature': 'gtWkQdF2X2oCwO/+a+DJxpDc5DhjC1PMVWrnCXsCX54qOo24siRTy4PAjHoYet1r0KERVEL65p7UZuHcaK+TOiJptlalMUVZWbGLPf05WpyKPOPSPI1P4ZoADzJpceYsKjjZImB/+ft6OAF+ahxazhHkiT1Ze05vwD2L1D6zRohcxZl9XRJMChZcVD9bdNy23ozwuq6FwlnneJJeCPNvqveg7f5e0CD1NXWdLJ3WryP0ypcGtQGZAY+PrhkdVG5SWhYr0FFniAZIrp9yOFn3vrsUP4rpZmeqIahSV6x12pyyRsm+bs/tjw/kPR34ygG7ksXsrpwhQbltAHWeWwnOmg=='
}

validate_result = finergy_sdk.validate_callback_signature(callback_data=callback_data)
```

### Get payment status

```python
payment_status_response = finergy_sdk.get_payment_status(payment_id=payment_id)
```

For more examples see [Finergy MIA POS PHP SDK](https://github.com/finergy-tech/mia-pay-ecomm-php-sdk)