Add your description here
Project description
FocusNFe Python Library
A robust, type-safe Python library for interacting with FocusNFe services.
Features
- Pydantic Models: All requests and responses are validated using Pydantic.
- Requests Session: Uses
requests.Sessionfor efficient connection pooling. - High Test Coverage: 100% test coverage with
pytestandrequests-mock. - Sandbox/Production Support: Easily switch between environments.
Installation
This project uses uv for package management.
uv add focusnfe
Quick Start
from focusnfe import FocusNFe
# Sandbox (default)
client = FocusNFe(api_token="your_sandbox_token")
# Production
client = FocusNFe(api_token="your_production_token", sandbox=False)
Services Documentation
For detailed examples and model information for each service, see:
Development
Running Tests
uv run pytest --cov=src/focusnfe tests/
Project Structure
src/focusnfe/client.py: Main client class.src/focusnfe/base.py: Base API request handler.src/focusnfe/models/: Pydantic models for data validation.tests/: Comprehensive test suite.docs/: Detailed service documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file focusnfe-0.1.0.tar.gz.
File metadata
- Download URL: focusnfe-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c222232498b93c9925dcb7a76a21b9bfa7af29ae382b30c136341004a4f6be4c
|
|
| MD5 |
07409ea1173c4ceb3c25f26ae46984b3
|
|
| BLAKE2b-256 |
cec66d68b0202b2411e8a4d4ce931b8a2a5f3e1a9deaa88b2a1ed9e3d46952c1
|
Provenance
The following attestation bundles were made for focusnfe-0.1.0.tar.gz:
Publisher:
publish.yml on admdocbr/focusnfe
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
focusnfe-0.1.0.tar.gz -
Subject digest:
c222232498b93c9925dcb7a76a21b9bfa7af29ae382b30c136341004a4f6be4c - Sigstore transparency entry: 789622849
- Sigstore integration time:
-
Permalink:
admdocbr/focusnfe@583f9dbcb1be7bef24c2429a0f89a475da1e6042 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/admdocbr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@583f9dbcb1be7bef24c2429a0f89a475da1e6042 -
Trigger Event:
push
-
Statement type:
File details
Details for the file focusnfe-0.1.0-py3-none-any.whl.
File metadata
- Download URL: focusnfe-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8012aa425294a34c926f9d7b209371bdd24a95e7176927aa86b5d7ed55c9ee03
|
|
| MD5 |
cafcdda51b9bd72cc89dfe0f7534cb73
|
|
| BLAKE2b-256 |
b1a1f7fbd29283272c82ee5e1b81e6fd849727381dcfe86fb71d6f5dbfe48fc7
|
Provenance
The following attestation bundles were made for focusnfe-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on admdocbr/focusnfe
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
focusnfe-0.1.0-py3-none-any.whl -
Subject digest:
8012aa425294a34c926f9d7b209371bdd24a95e7176927aa86b5d7ed55c9ee03 - Sigstore transparency entry: 789622851
- Sigstore integration time:
-
Permalink:
admdocbr/focusnfe@583f9dbcb1be7bef24c2429a0f89a475da1e6042 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/admdocbr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@583f9dbcb1be7bef24c2429a0f89a475da1e6042 -
Trigger Event:
push
-
Statement type: