unidpp 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
unidpp/__init__.py ADDED
@@ -0,0 +1,104 @@
1
+ """UniDPP Python library — stdlib-only mirror of the UniDPP TS SDK model.
2
+
3
+ Modules:
4
+ - ``unidpp.canonical`` — canonical JSON + SHA-256 commitments
5
+ - ``unidpp.model`` — the mirrored model (types + validation + schemas)
6
+ - ``unidpp.eventlog`` — append-only commitment-chained log, blind edges,
7
+ mass balance
8
+ - ``unidpp.verify`` — verification pipeline harness (readings,
9
+ freshness verdicts, coverage reports, crypto
10
+ slots with the ECDSA-None degrade placeholder)
11
+ - ``unidpp.conformance``— conformance runner (positive corpus + AUDIT.md
12
+ A1-A6 negative fixtures; JSON + markdown reports)
13
+ - ``unidpp.temporal`` — the DPP temporal profile: ISO 8601-1:2019
14
+ (incl. Amd 1:2022 disambiguation) validation of
15
+ every timestamp field, with precise paths
16
+ - ``unidpp.carrier`` — carrier budgets: ISO/IEC 18004 QR capacity
17
+ tables (ported from the CLI) and the budget
18
+ grammar
19
+ - ``unidpp.adapters`` — EPCIS event import, UNTP stub parsing
20
+ - ``unidpp.fixtures`` — laptop and car pilots ported from the TS repo
21
+ """
22
+
23
+ from . import canonical, eventlog, model, validate, verify
24
+ from .eventlog import (
25
+ Actor,
26
+ AppendOnlyError,
27
+ DomainEvent,
28
+ append_event,
29
+ blind_edge_commitment,
30
+ log_head,
31
+ mass_balance,
32
+ verify_chain,
33
+ )
34
+ from .model import (
35
+ CLASS_CAPABILITY,
36
+ PASSPORT_STATUSES,
37
+ RETROACTIVE_REASONS,
38
+ REVOCATION_REASONS,
39
+ TRUST_MARKERS,
40
+ VERIFICATION_READINGS,
41
+ ChildReference,
42
+ CoverageReport,
43
+ EffectiveWindow,
44
+ Finding,
45
+ InstallationBinding,
46
+ PassportLink,
47
+ PassportManifest,
48
+ ProductIdentifier,
49
+ ProfileBinding,
50
+ ProfileDefinition,
51
+ RevocationRecord,
52
+ SignatureFraming,
53
+ TaintRecord,
54
+ TierAPack,
55
+ Verdict,
56
+ VisibilityClause,
57
+ downstream_of,
58
+ is_visible_to,
59
+ marker_at_least,
60
+ signature_voided,
61
+ )
62
+
63
+ __version__ = "0.1.0"
64
+ __all__ = [
65
+ "CLASS_CAPABILITY",
66
+ "PASSPORT_STATUSES",
67
+ "RETROACTIVE_REASONS",
68
+ "REVOCATION_REASONS",
69
+ "TRUST_MARKERS",
70
+ "VERIFICATION_READINGS",
71
+ "Actor",
72
+ "AppendOnlyError",
73
+ "ChildReference",
74
+ "CoverageReport",
75
+ "DomainEvent",
76
+ "EffectiveWindow",
77
+ "Finding",
78
+ "InstallationBinding",
79
+ "PassportLink",
80
+ "PassportManifest",
81
+ "ProductIdentifier",
82
+ "ProfileBinding",
83
+ "ProfileDefinition",
84
+ "RevocationRecord",
85
+ "SignatureFraming",
86
+ "TaintRecord",
87
+ "TierAPack",
88
+ "Verdict",
89
+ "VisibilityClause",
90
+ "append_event",
91
+ "blind_edge_commitment",
92
+ "canonical",
93
+ "downstream_of",
94
+ "eventlog",
95
+ "is_visible_to",
96
+ "log_head",
97
+ "marker_at_least",
98
+ "mass_balance",
99
+ "model",
100
+ "signature_voided",
101
+ "validate",
102
+ "verify",
103
+ "verify_chain",
104
+ ]
@@ -0,0 +1,21 @@
1
+ """Import adapters: EPCIS-style event JSON -> UniDPP E-events, UNTP-style
2
+ passport stub parsing, and EN 18223:2026 EU-profile payload parsing."""
3
+
4
+ from .en18223 import (
5
+ NEW_FINDINGS_REGISTER,
6
+ PROFILE_ADAPTATIONS,
7
+ run_eu_profile_suite,
8
+ write_eu_profile_reports,
9
+ )
10
+ from .epcis import map_epcis_event, transformation_balance
11
+ from .untp import parse_untp_stub
12
+
13
+ __all__ = [
14
+ "NEW_FINDINGS_REGISTER",
15
+ "PROFILE_ADAPTATIONS",
16
+ "map_epcis_event",
17
+ "parse_untp_stub",
18
+ "run_eu_profile_suite",
19
+ "transformation_balance",
20
+ "write_eu_profile_reports",
21
+ ]