B --> C[Schema Validation]
C --> D["Scheme Profile
(optional)"]
D --> E[SWIFT Charset Cleansing]
E --> F[Jinja2 Template]
F --> G[XSD Validation]
G --> H[pacs.008 XML]
---
## Development
```bash
git clone https://github.com/sebastienrousseau/pacs008.git
cd pacs008
poetry install --extras otel
poetry shell
make check # ruff + black + mypy + bandit + pytest + example scripts
make test # pytest with coverage
make test-fast # pytest without coverage
make lint # ruff + black --check
make type-check # mypy --strict
Quality gates (CI-enforced):
| Gate | Tool |
|---|---|
| Lint | ruff check pacs008/ |
| Format | black --check pacs008/ tests/ |
| Types | mypy pacs008/ (strict mode) |
| Tests | pytest --cov=pacs008 (90% branch-coverage floor) |
| Security | bandit -r pacs008/ |
| Smoke | pytest -m smoke |
| Cross-platform matrix | Python 3.10 — 3.12 × Ubuntu / macOS / Windows |
Security
Security issues should be reported privately via GitHub's Security
Advisories
or by email to contact@sebastienrousseau.com. See SECURITY.md
for the full disclosure policy, SLA targets, and hardening guidance for
production deployments.
Highlights:
- XXE protection via
defusedxmlon every parse path. - Path-traversal protection in
pacs008.security.path_validator. - Automatic PII redaction (IBAN / BIC / name / account) in structured logs.
- Tamper-evident Ed25519-signed audit records for every generation event.
Licence
Licensed under the Apache Licence, Version 2.0.
See LICENSE for the full text. Unless you explicitly state
otherwise, any contribution intentionally submitted for inclusion in the work
shall be licensed as above, without any additional terms or conditions.
Contributing
Contributions are welcome — please read CONTRIBUTING.md
first. All contributors agree to abide by the project's code of conduct, and
all pull requests must pass the full CI matrix (make check).
Thanks to all our contributors.
Release files for pacs008 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pacs008-0.0.10.tar.gz | 227.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pacs008-0.0.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 563.1 kB
Release files / pacs008-0.0.10.tar.gz
| Download URL | pacs008-0.0.10.tar.gz |
|---|---|
| Size | 227.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd0e70b37f9fdf4e0affcd7bb630f5c9ebd460c8bf0af92a3758f21d8e5e9ef9
|
|
BLAKE2b-256 checksum How to use checksums |
1f093d922de0f077cfa9e69c585cac62423f56bfba7a45f543db6c3f76887a0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.14
|
Release files / pacs008-0.0.10-py3-none-any.whl
| Download URL | pacs008-0.0.10-py3-none-any.whl |
|---|---|
| Size | 335.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31d85ca8c37619514bcaf860d04fd5f1592cc6a3622e976edf5b548f04f3a3e3
|
|
BLAKE2b-256 checksum How to use checksums |
b3e426db8fca0364998ad81a87f198ab398517ec3203dafa7f6f99677edbc6be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.14
|