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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

focusnfe-0.1.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

focusnfe-0.1.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file focusnfe-0.1.1.tar.gz.

File metadata

  • Download URL: focusnfe-0.1.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for focusnfe-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6d06c6bc866325e82837a5930e9b0a3854df83ea04ff0ca7c67fa03ebe751a33
MD5 1c7414c202444c456f4934675dc632fe
BLAKE2b-256 1bd6f51cbcf5565368703662dec7bd1cf190f36c964a406b7c30be7f9d29e4cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for focusnfe-0.1.1.tar.gz:

Publisher: publish.yml on admdocbr/focusnfe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file focusnfe-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: focusnfe-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for focusnfe-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0a22407750e63d3fbe6f1451c89ab14c1ba57f64d185823dfe3b1aa0942ed1a6
MD5 61a01aeb77f32cd7f9e7702ebcbdc3c5
BLAKE2b-256 3b4a8f133d23c982d3d7214010a3cd3ed922cede76766edd5a6b31bd37110b78

See more details on using hashes here.

Provenance

The following attestation bundles were made for focusnfe-0.1.1-py3-none-any.whl:

Publisher: publish.yml on admdocbr/focusnfe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page