Skip to main content

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.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/

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


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.0.tar.gz (4.3 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.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

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

Hashes for focusnfe-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c222232498b93c9925dcb7a76a21b9bfa7af29ae382b30c136341004a4f6be4c
MD5 07409ea1173c4ceb3c25f26ae46984b3
BLAKE2b-256 cec66d68b0202b2411e8a4d4ce931b8a2a5f3e1a9deaa88b2a1ed9e3d46952c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for focusnfe-0.1.0.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.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

Hashes for focusnfe-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8012aa425294a34c926f9d7b209371bdd24a95e7176927aa86b5d7ed55c9ee03
MD5 cafcdda51b9bd72cc89dfe0f7534cb73
BLAKE2b-256 b1a1f7fbd29283272c82ee5e1b81e6fd849727381dcfe86fb71d6f5dbfe48fc7

See more details on using hashes here.

Provenance

The following attestation bundles were made for focusnfe-0.1.0-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.

Supported by

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