Skip to main content

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.Session for efficient connection pooling.
  • High Test Coverage: 100% test coverage with pytest and requests-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/

Releasing New Versions

For information on how to release new versions of this library, see the Release Guide.

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.

Metadata

Release files for focusnfe 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for focusnfe 0.1.1
File Size Uploaded
focusnfe-0.1.1.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for focusnfe 0.1.1
File Interpreter ABI Platform
focusnfe-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.0 kB

Release files / focusnfe-0.1.1.tar.gz

Download URL focusnfe-0.1.1.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6d06c6bc866325e82837a5930e9b0a3854df83ea04ff0ca7c67fa03ebe751a33
BLAKE2b-256 checksum
How to use checksums
1bd6f51cbcf5565368703662dec7bd1cf190f36c964a406b7c30be7f9d29e4cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 3, 2026.

Transparency log

Release files / focusnfe-0.1.1-py3-none-any.whl

Download URL focusnfe-0.1.1-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a22407750e63d3fbe6f1451c89ab14c1ba57f64d185823dfe3b1aa0942ed1a6
BLAKE2b-256 checksum
How to use checksums
3b4a8f133d23c982d3d7214010a3cd3ed922cede76766edd5a6b31bd37110b78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 3, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page