Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ This library is published under the [GNU Lesser General Public License v2.1](htt

## Changelog

* version 0.12 dated 2026-07-05

* Add support for e-reporting XML generation (transactions and payments) with XSD check
* generate_cdar(): date fields are now passed in data_dict as datetime object.

* version 0.11 dated 2026-06-29

* new boolean named argument **prefixed_namespaces** in **generate_cdar()** to either generate prefixed namespaces (default) or default namespaces
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ classifiers = [
readme = "README.md"
license = {file = "LICENSE.txt"}
dependencies = [
"requests",
"requests_oauthlib",
"python-stdnum >= 1.20",
"lxml",
"saxonche",
"pytz",
"python-dateutil",
]
requires-python = ">=3.9"
dynamic = ["version"]
Expand Down
24 changes: 23 additions & 1 deletion src/pyfrctc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
__version__ = "0.11"
import logging

__version__ = "0.12"
from .ereporting import (
check_ereporting_xsd,
generate_ereporting_payments,
generate_ereporting_transactions,
)
from .pyfrctc import (
authorization_code_first_token,
check_cdar_schematron,
check_cdar_xsd,
generate_cdar,
get_authorization_url,
get_directory_lines,
Expand Down Expand Up @@ -37,8 +46,21 @@
"healthcheck",
"parse_cdar",
"parse_cdar_raw",
"check_cdar_schematron",
"check_cdar_xsd",
"search_flows",
"search_flows_parsed",
"send_flow",
"send_flow_parsed",
"generate_ereporting_transactions",
"generate_ereporting_payments",
"check_ereporting_xsd",
]


def configure_script_logging(level=logging.INFO):
logger = logging.getLogger("pyfrctc")
handler = logging.StreamHandler()
handler.setFormatter(logging.Formatter("%(asctime)s [%(levelname)s] %(message)s"))
logger.addHandler(handler)
logger.setLevel(level)
Loading
Loading