Skip to content

Normalize PTAX date parameters#63

Merged
wilsonfreitas merged 1 commit into
mainfrom
issue-4-ptax-date-parameters
Jun 15, 2026
Merged

Normalize PTAX date parameters#63
wilsonfreitas merged 1 commit into
mainfrom
issue-4-ptax-date-parameters

Conversation

@wilsonfreitas

@wilsonfreitas wilsonfreitas commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Normalize PTAX date parameters before OData parameter serialization
  • Accept ISO strings, date/datetime, and pandas.Timestamp while preserving existing PTAX-formatted strings
  • Document that generalized inputs are converted to the PTAX service format M/D/YYYY

Closes #4

Tests

  • uv run ruff format --check bcb tests
  • uv run ruff check bcb tests
  • uv run mypy bcb
  • uv run pytest tests/test_odata.py
  • uv run pytest
  • uv run --group docs sphinx-build -b html docs docs/_build/html

@wilsonfreitas wilsonfreitas force-pushed the issue-4-ptax-date-parameters branch from 5e2aae0 to 65fb926 Compare June 15, 2026 00:46
@wilsonfreitas wilsonfreitas merged commit 80cf889 into main Jun 15, 2026
9 checks passed
@wilsonfreitas wilsonfreitas deleted the issue-4-ptax-date-parameters branch June 15, 2026 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tornar o filtro e parâmetros versáteis na API do PTAX

1 participant