Skip to content

feat(lib): add new version 2.0.0 of python - #1

Open
raul-facturapi wants to merge 1 commit into
mainfrom
feat/pyhon_new_version
Open

raul-facturapi wants to merge 1 commit into
mainfrom
feat/pyhon_new_version

Conversation

@raul-facturapi

Copy link
Copy Markdown
Collaborator

No description provided.

@raul-facturapi raul-facturapi self-assigned this Oct 13, 2026
@raul-facturapi raul-facturapi added the bug Something isn't working label Oct 13, 2026
@raul-facturapi
raul-facturapi requested a balanced review from Copilot October 13, 2026 16:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The release workflow, cursor iteration, generated-client update test, and JSON error handling contain verified failures.

4 open findings
What changed in this PR

Introduces Facturapi Python SDK 2.0 with an OpenAPI-generated instance client, modernized HTTP transport, packaging, documentation, and automation.

Changes:

  • Adds generated coverage for 120 API operations.
  • Modernizes authentication, serialization, pagination, and response handling.
  • Updates packaging, CI, release, documentation, and OpenAPI automation.
File Description
tests/​types/​test_queries.py Updates pagination limit test.
tests/​test_generated_client.py Tests generated resource clients.
tests/​http/​test_client.py Expands HTTP client tests.
setup.py Converts to compatibility shim.
setup.cfg Configures generated-code exclusions.
scripts/​generate_openapi.py Adds OpenAPI client generator.
requirements.txt Updates Pydantic.
requirements-test.txt Adds build and generator tooling.
requirements-docs.txt Adds documentation dependencies.
README.md Documents SDK 2.0 usage.
README.es-MX.md Updates Spanish documentation.
pyproject.toml Defines modern package metadata.
mkdocs.yml Updates repository and API navigation.
MANIFEST.in Defines source distribution contents.
Makefile Adds generation and build targets.
facturapi/​version.py Sets version 2.0.0.
facturapi/​types/​queries.py Adds cursor pagination fields.
facturapi/​types/​exc.py Expands response exceptions.
facturapi/​types/​enums.py Corrects payment-form value.
facturapi/​resources/​invoices.py Supports multiple namespaces.
facturapi/​resources/​base.py Uses reported result totals.
facturapi/​http/​client.py Modernizes transport behavior.
facturapi/​client.py Adds instance-based SDK client.
facturapi/​_generated.py Implements generated API resources.
facturapi/​__init__.py Exports new client classes.
docs/​openapi.md Documents generated resources.
docs/​index.md Refreshes documentation landing page.
.github/​workflows/​test.yml Expands CI version coverage.
.github/​workflows/​release.yml Adds trusted publishing workflow.
.github/​workflows/​openapi.yml Automates OpenAPI updates.
.github/​workflows/​docs.yml Updates documentation deployment.
.github/​workflows/​auto_merge.yml Updates checkout action.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/release.yml Outdated
Comment thread facturapi/http/client.py
Comment thread facturapi/types/queries.py
Comment thread tests/test_generated_client.py Outdated
@raul-facturapi
raul-facturapi force-pushed the feat/pyhon_new_version branch 2 times, most recently from 6c2deb4 to 823cb88 Compare October 21, 2026 15:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +324 to +329
if q.pagination == 'cursor':
next_cursor = page.get('next_cursor')
if next_cursor:
params.pop('before', None)
params['after'] = next_cursor
next_page_uri = f'{cls._resource}?{urlencode(params)}'
response = client.get(cls._resource, q.dict())
items = response['data']
return len(items)
return response.get('total_results', len(response['data']))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants