semvec/pypi-packages huggingface dataset:
brdocs-validation 0.5.0
Validate brazilian documents using Type Hints in classes inheriting Pydantic's (V2) BaseModel
Requires Python: >=3.10
Keywords: pydantic-v2, cpf-validador, cnpj-validador, validador-pispasep, validador-titulo-eleitor

![Test](https://github.com/vinicius-oa/BRdocs-validation/actions/workflows/test.yml/badge.svg)
![codecov](https://codecov.io/gh/vinicius-oa/BRdocs-validation/graph/badge.svg?token=Z211YIKO8L)
![PyPI - Version](https://img.shields.io/pypi/v/brdocs-validation?label=pypi%20package&color=2334D058)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/brdocs-validation?color=2334D058)
![Pydantic V2](https://img.shields.io/badge/Pydantic_V2->=2.0-2334D058.svg)

## Install
```
pip install brdocs-validation
```


## Supported docs and its formats

|     Supports      |                Description                |                     Format                      |   Format's support   | 
|:-----------------:|:-----------------------------------------:|:-----------------------------------------------:|:--------------------:|
|       CNPJ        |                                           | *12.345.678/9012-34* OR _Without special chars_ |                      |
|        CPF        |                                           |   *123.456.789-01* OR _Without special chars_   |                      |
|        CNH        |                                           |                  Only numbers                   |     Length: _11_     |
| NIS/PIS/PASEP/NIT | Use _**NIS**_ type for _PIS, PASEP, NIT_  |       *123.45678.90-1* OR _Only numbers_        |                      |
|        CNS        |         Cartão Nacional de Saúde          |                  Only numbers                   |                      |
|      RENAVAM      |                                           |                  Only numbers                   | Length: _9, 10 & 11_ | 
|        TE         |             Título de eleitor             |                  Only numbers                   |                      |
|       CERT        | Certidão de casamento, nascimento e óbito |                  Only numbers                   |                      | 
|        SEI        |         Número do Processo SEI            | 12345-67890123/4567-89 OR without special chars |                      |

## Usage 

```python
from br_docs import CNPJ, CPF, CNH, NIS, CNS, RENAVAM, TE, CERT, SEI
from pydantic import BaseModel


class User(BaseModel):
    cpf: CPF
    cnpj: CNPJ
    cnh: CNH
    nis: NIS
    cns: CNS
    renavam: RENAVAM
    te: TE
    cert: CERT
    sei: SEI
```
flet-pdfview 0.2.1
Flet pdf view for all platforms
Requires Python: >=3.10

# 📄 flet-pdfview

**A lightweight and efficient PDF viewer component for Flet applications.**

`flet-pdfview` provides a simple way to render PDF files inside your UI while keeping performance, stability, and user experience in mind.

---

### ✨ Features

* 🧩 **Native PDF rendering** inside Flet layouts.
* 🔍 **Interactive Zoom**: Support for zooming in and out with configurable limits.
* 📐 **High-resolution** rendering with custom DPI.
* 🖼️ **Flexible image fitting** using `BoxFit`.
* 📱 **Fully responsive** (via `expand=True`).
* 🚫 **Silent failure** for invalid paths (no crashes, no UI freezes).
* ⚡ **Optimized** for performance and UI stability.

---

### 📦 Installation

Install the package directly from PyPI:

```bash
pip install flet-pdfview
```
### 🚀 Basic UsagePython
```
from flet_pdfview import PdfColumn
from flet import Page, run, BoxFit

def main(page: Page):
    page.add(
        PdfColumn(
            src="path/to/your/file.pdf",
            expand=True,
            dpi=300,
            fitImage=BoxFit.FILL,
            enable_zoom=True
        )
    )

run(main)
```
### 🔍 Zoom Control
You can now fully control the viewing experience with the following properties:

min_zoom: Sets the minimum scale allowed (Default : 0.8).

max_zoom: Sets the maximum scale allowed to ensure quality and performance (Default : 2.5).
### ⚠️ Important Behavior & Performance
**1. Silent Failure**

PdfColumn will not render anything if the provided path does not exist or does not end with .pdf.

No exceptions ❌

No error dialogs ❌

No UI interruption ❌

**2. Technical Performance Warning**

[!WARNING] Resource Management: Be cautious when performing intensive property updates on the PdfColumn object after its initial call. If changes involve high values or frequent updates, it may cause a brief delay when closing the application as the component finishes processing tasks to ensure a stable exit.

> [!IMPORTANT]
> **This behavior is intentional:**
> * **No exceptions** ❌
> * **No error dialogs** ❌
> * **No UI interruption** ❌
> 
> The component simply stays silent and allows the application to continue running normally.

---

### 🎯 Why Silent Failure?

This design choice ensures:

* 🛡️ **Application stability**: Prevents crashes due to missing files.
* 🧠 **Clean Experience**: A distraction-free UI for the end-user.
* 🚀 **Production Ready**: Predictable behavior in live environments.

**In short:** *No valid PDF → No rendering → App remains stable.*
pytest-clerk 4.1.3
A set of pytest fixtures to help with integration testing with Clerk.
Requires Python: <4.0,>=3.10

# Pytest Clerk

This is a collection of fixtures we've been using to perform integration tests using
the real Clerk APIs.

Usage of any of these fixture requires that the following be specified in environment
variables or a .env file:

* CLERK_SECRET_KEY: Set this to the value of your Clerk secret key. Conflicts with
                    CLERK_SECRET_ID.
* CLERK_SECRET_ID: Set this to the ID of the AWS SecretsManager Secret that contains the
                   Clerk secret key. This requires installing the `aws` extra. Conflicts
                   with CLERK_SECRET_KEY.

The fixtures themselves are heavily documented so please view their docstrings for more
information on their usage.