axonnext 1.0.0__tar.gz

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.
Files changed (107) hide show
  1. axonnext-1.0.0/.github/workflows/publish-pyaxon.yml +71 -0
  2. axonnext-1.0.0/.github/workflows/publish-serde-axon.yml +41 -0
  3. axonnext-1.0.0/.github/workflows/python-reference.yml +123 -0
  4. axonnext-1.0.0/LICENSE-APACHE +201 -0
  5. axonnext-1.0.0/LICENSE-MIT +22 -0
  6. axonnext-1.0.0/LICENSE_original.txt +21 -0
  7. axonnext-1.0.0/MANIFEST.in +34 -0
  8. axonnext-1.0.0/NOTICE.md +21 -0
  9. axonnext-1.0.0/PKG-INFO +231 -0
  10. axonnext-1.0.0/README.rst +192 -0
  11. axonnext-1.0.0/bin/json2axon +17 -0
  12. axonnext-1.0.0/bin/xml2axon +17 -0
  13. axonnext-1.0.0/conformance/empirical_differential.json +79 -0
  14. axonnext-1.0.0/conformance/fuzz_seeds.json +48 -0
  15. axonnext-1.0.0/conformance/normative_clause_index.json +398 -0
  16. axonnext-1.0.0/conformance/normative_vectors.json +276 -0
  17. axonnext-1.0.0/conformance/rfc8785_appendix_b.json +33 -0
  18. axonnext-1.0.0/docs/2026/AXON_2026_CONFORMANCE_TESTS.md +185 -0
  19. axonnext-1.0.0/lib/axon2/__init__.py +11 -0
  20. axonnext-1.0.0/lib/axon2/_common.pxd +85 -0
  21. axonnext-1.0.0/lib/axon2/_dumper.c +39817 -0
  22. axonnext-1.0.0/lib/axon2/_dumper.h +103 -0
  23. axonnext-1.0.0/lib/axon2/_dumper.pxd +337 -0
  24. axonnext-1.0.0/lib/axon2/_dumper.py +1116 -0
  25. axonnext-1.0.0/lib/axon2/_loader.c +52113 -0
  26. axonnext-1.0.0/lib/axon2/_loader.pxd +250 -0
  27. axonnext-1.0.0/lib/axon2/_loader.py +1043 -0
  28. axonnext-1.0.0/lib/axon2/_native.py +71 -0
  29. axonnext-1.0.0/lib/axon2/_objects.c +44734 -0
  30. axonnext-1.0.0/lib/axon2/_objects.h +152 -0
  31. axonnext-1.0.0/lib/axon2/_objects.pxd +374 -0
  32. axonnext-1.0.0/lib/axon2/_objects.py +575 -0
  33. axonnext-1.0.0/lib/axon2/api.py +193 -0
  34. axonnext-1.0.0/lib/axon2/binary2026.py +587 -0
  35. axonnext-1.0.0/lib/axon2/cst2026.py +761 -0
  36. axonnext-1.0.0/lib/axon2/errors.py +244 -0
  37. axonnext-1.0.0/lib/axon2/lsp2026.py +74 -0
  38. axonnext-1.0.0/lib/axon2/objects.py +5 -0
  39. axonnext-1.0.0/lib/axon2/odict.c +30586 -0
  40. axonnext-1.0.0/lib/axon2/odict.h +87 -0
  41. axonnext-1.0.0/lib/axon2/odict.pxd +78 -0
  42. axonnext-1.0.0/lib/axon2/odict.py +9 -0
  43. axonnext-1.0.0/lib/axon2/odict.pyx +517 -0
  44. axonnext-1.0.0/lib/axon2/schema2026.py +692 -0
  45. axonnext-1.0.0/lib/axon2/scientific.py +62 -0
  46. axonnext-1.0.0/lib/axon2/stream.py +39 -0
  47. axonnext-1.0.0/lib/axon2/test/__init__.py +5 -0
  48. axonnext-1.0.0/lib/axon2/test/benchmark/__init__.py +0 -0
  49. axonnext-1.0.0/lib/axon2/test/benchmark/test_vs_json.py +288 -0
  50. axonnext-1.0.0/lib/axon2/test/benchmark/test_vs_yaml.py +74 -0
  51. axonnext-1.0.0/lib/axon2/test/profiling.py +10 -0
  52. axonnext-1.0.0/lib/axon2/test/samples.py +208 -0
  53. axonnext-1.0.0/lib/axon2/test/test_base64.py +35 -0
  54. axonnext-1.0.0/lib/axon2/test/test_constant.py +61 -0
  55. axonnext-1.0.0/lib/axon2/test/test_crossref.py +34 -0
  56. axonnext-1.0.0/lib/axon2/test/test_datetime.py +206 -0
  57. axonnext-1.0.0/lib/axon2/test/test_datetime10.py +206 -0
  58. axonnext-1.0.0/lib/axon2/test/test_decimal.py +51 -0
  59. axonnext-1.0.0/lib/axon2/test/test_dict.py +44 -0
  60. axonnext-1.0.0/lib/axon2/test/test_element.py +107 -0
  61. axonnext-1.0.0/lib/axon2/test/test_empirical_differential.py +53 -0
  62. axonnext-1.0.0/lib/axon2/test/test_errors.py +250 -0
  63. axonnext-1.0.0/lib/axon2/test/test_float.py +42 -0
  64. axonnext-1.0.0/lib/axon2/test/test_instance.py +86 -0
  65. axonnext-1.0.0/lib/axon2/test/test_int.py +46 -0
  66. axonnext-1.0.0/lib/axon2/test/test_legacy_a10_remediation.py +87 -0
  67. axonnext-1.0.0/lib/axon2/test/test_legacy_depth_limit.py +75 -0
  68. axonnext-1.0.0/lib/axon2/test/test_list.py +52 -0
  69. axonnext-1.0.0/lib/axon2/test/test_load.py +451 -0
  70. axonnext-1.0.0/lib/axon2/test/test_mapping.py +159 -0
  71. axonnext-1.0.0/lib/axon2/test/test_odict.py +351 -0
  72. axonnext-1.0.0/lib/axon2/test/test_samples.py +42 -0
  73. axonnext-1.0.0/lib/axon2/test/test_sequence.py +135 -0
  74. axonnext-1.0.0/lib/axon2/test/test_set.py +37 -0
  75. axonnext-1.0.0/lib/axon2/test/test_string.py +62 -0
  76. axonnext-1.0.0/lib/axon2/test/test_suite.py +25 -0
  77. axonnext-1.0.0/lib/axon2/test/test_tuple.py +38 -0
  78. axonnext-1.0.0/lib/axon2/test/test_unsafe_loads.py +230 -0
  79. axonnext-1.0.0/lib/axon2/test/test_v2026.py +174 -0
  80. axonnext-1.0.0/lib/axon2/test/test_v2026_a10_remediation.py +224 -0
  81. axonnext-1.0.0/lib/axon2/test/test_v2026_a13_remediation.py +83 -0
  82. axonnext-1.0.0/lib/axon2/test/test_v2026_advanced.py +294 -0
  83. axonnext-1.0.0/lib/axon2/test/test_v2026_audit_fixes.py +47 -0
  84. axonnext-1.0.0/lib/axon2/test/test_v2026_audit_remediation.py +242 -0
  85. axonnext-1.0.0/lib/axon2/test/test_v2026_fuzz.py +221 -0
  86. axonnext-1.0.0/lib/axon2/test/test_v2026_normative.py +300 -0
  87. axonnext-1.0.0/lib/axon2/types.py +21 -0
  88. axonnext-1.0.0/lib/axon2/utils.h +96 -0
  89. axonnext-1.0.0/lib/axon2/utils.py +80 -0
  90. axonnext-1.0.0/lib/axon2/v2026.py +2255 -0
  91. axonnext-1.0.0/lib/axonnext.egg-info/PKG-INFO +231 -0
  92. axonnext-1.0.0/lib/axonnext.egg-info/SOURCES.txt +105 -0
  93. axonnext-1.0.0/lib/axonnext.egg-info/dependency_links.txt +1 -0
  94. axonnext-1.0.0/lib/axonnext.egg-info/top_level.txt +1 -0
  95. axonnext-1.0.0/pyproject.toml +3 -0
  96. axonnext-1.0.0/setup.cfg +4 -0
  97. axonnext-1.0.0/setup.py +121 -0
  98. axonnext-1.0.0/spec/AXON_2018_to_2026_Language_Evolution_MERGED.md +774 -0
  99. axonnext-1.0.0/spec/AXON_2026_SPEC.md +1282 -0
  100. axonnext-1.0.0/test_all.py +39 -0
  101. axonnext-1.0.0/test_benchmark.py +318 -0
  102. axonnext-1.0.0/tools/check_rfc8785_differential.py +101 -0
  103. axonnext-1.0.0/tools/check_rfc8785_node.mjs +36 -0
  104. axonnext-1.0.0/tools/install_built_wheel.py +15 -0
  105. axonnext-1.0.0/tools/release_gate.py +108 -0
  106. axonnext-1.0.0/tools/run_fuzz2026.py +29 -0
  107. axonnext-1.0.0/tools/smoke_installed.py +13 -0
@@ -0,0 +1,71 @@
1
+ name: Publish pyaxon to PyPI
2
+
3
+ # Runs when you publish a GitHub Release. Builds CPython 3.10-3.13 wheels for
4
+ # Linux/macOS/Windows plus the source sdist, then uploads them to PyPI using
5
+ # Trusted Publishing (OIDC) -- no API token is stored anywhere.
6
+ #
7
+ # ONE-TIME SETUP (on pypi.org): Account -> Publishing -> add a "pending
8
+ # publisher" for project "axonnext", owner "axonnext", repo "AXONNext",
9
+ # workflow "publish-pyaxon.yml", environment "pypi".
10
+ #
11
+ # For a token-only first release instead, you can delete the `wheels` job and
12
+ # publish just the sdist (users then compile from the checked-in C on install).
13
+
14
+ on:
15
+ release:
16
+ types: [published]
17
+ workflow_dispatch:
18
+
19
+ jobs:
20
+ wheels:
21
+ name: Wheels on ${{ matrix.os }}
22
+ runs-on: ${{ matrix.os }}
23
+ strategy:
24
+ fail-fast: false
25
+ matrix:
26
+ os: [ubuntu-latest, macos-latest, windows-latest]
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+ - name: Build wheels
30
+ uses: pypa/cibuildwheel@v2.21
31
+ env:
32
+ CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-*"
33
+ CIBW_SKIP: "pp* *_i686 *-musllinux*"
34
+ - uses: actions/upload-artifact@v4
35
+ with:
36
+ name: wheels-${{ matrix.os }}
37
+ path: wheelhouse/*.whl
38
+
39
+ sdist:
40
+ name: Source distribution
41
+ runs-on: ubuntu-latest
42
+ steps:
43
+ - uses: actions/checkout@v4
44
+ - uses: actions/setup-python@v5
45
+ with:
46
+ python-version: "3.13"
47
+ - name: Build sdist
48
+ run: |
49
+ python -m pip install --upgrade build
50
+ python -m build --sdist
51
+ - uses: actions/upload-artifact@v4
52
+ with:
53
+ name: sdist
54
+ path: dist/*.tar.gz
55
+
56
+ publish:
57
+ name: Publish to PyPI
58
+ needs: [wheels, sdist]
59
+ runs-on: ubuntu-latest
60
+ environment:
61
+ name: pypi
62
+ url: https://pypi.org/p/axonnext
63
+ permissions:
64
+ id-token: write # required for Trusted Publishing
65
+ steps:
66
+ - uses: actions/download-artifact@v4
67
+ with:
68
+ path: dist
69
+ merge-multiple: true
70
+ - name: Publish distributions to PyPI
71
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,41 @@
1
+ name: Publish serde_axon to crates.io
2
+
3
+ # Runs when you publish a GitHub Release. Publishes the serde_axon crate to
4
+ # crates.io using an API token stored as a repository secret.
5
+ #
6
+ # ONE-TIME SETUP:
7
+ # 1. crates.io -> Account Settings -> API Tokens -> New Token.
8
+ # Scopes: publish-new (the crate does not exist yet) and publish-update.
9
+ # 2. GitHub -> this repo -> Settings -> Secrets and variables -> Actions ->
10
+ # New repository secret, named CARGO_REGISTRY_TOKEN.
11
+ #
12
+ # TRUSTED-PUBLISHING ALTERNATIVE (no stored token, once the crate exists):
13
+ # add `permissions: id-token: write`, insert the step
14
+ # - uses: rust-lang/crates-io-auth-action@v1
15
+ # id: auth
16
+ # and set CARGO_REGISTRY_TOKEN to ${{ steps.auth.outputs.token }}, then register
17
+ # the publisher on crates.io: owner "axonnext", repo "AXONNext", workflow
18
+ # "publish-serde-axon.yml".
19
+
20
+ on:
21
+ release:
22
+ types: [published]
23
+ workflow_dispatch:
24
+
25
+ jobs:
26
+ publish:
27
+ name: cargo publish
28
+ runs-on: ubuntu-latest
29
+ permissions:
30
+ contents: read
31
+ steps:
32
+ - uses: actions/checkout@v4
33
+ - uses: dtolnay/rust-toolchain@stable
34
+ - name: Verify the crate packages cleanly
35
+ run: cargo publish --dry-run
36
+ working-directory: serde_axon
37
+ - name: Publish serde_axon
38
+ run: cargo publish
39
+ working-directory: serde_axon
40
+ env:
41
+ CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
@@ -0,0 +1,123 @@
1
+ name: AXON 2026 Python reference
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ workflow_dispatch:
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ platform-matrix:
13
+ name: ${{ matrix.os }} / Python ${{ matrix.python }}
14
+ runs-on: ${{ matrix.os }}
15
+ timeout-minutes: 30
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ os: [ubuntu-latest, windows-latest, macos-latest]
20
+ python: ["3.10", "3.11", "3.12", "3.13"]
21
+
22
+ steps:
23
+ - uses: actions/checkout@v7
24
+ - uses: actions/setup-python@v6
25
+ with:
26
+ python-version: ${{ matrix.python }}
27
+ cache: pip
28
+ - uses: actions/setup-node@v6
29
+ with:
30
+ node-version: "24"
31
+
32
+ - name: Install build tooling
33
+ # tzdata is pinned so the named-time-zone (DST fold/gap) tests see a tzdb
34
+ # where America/Edmonton still observes DST, independent of the runner's
35
+ # system zoneinfo; PyYAML is used only by the JSON/YAML benchmark test.
36
+ #
37
+ # This pin is TEST-ONLY (deterministic fixtures). It is NOT a runtime
38
+ # requirement: at runtime, named-zone (`tz-names`) resolution uses the
39
+ # host tzdb per AXON 2026 SPEC §6.8, and the version in effect is
40
+ # reported by `tzdb_version2026()` rather than pinned by the library.
41
+ run: python -m pip install --upgrade pip build "tzdata==2025.1" pyyaml
42
+
43
+ - name: Run Python release gate
44
+ run: >-
45
+ python tools/release_gate.py
46
+ --evidence platform-evidence/${{ runner.os }}-py${{ matrix.python }}.json
47
+
48
+ - name: Cross-check RFC 8785 with V8
49
+ run: node tools/check_rfc8785_node.mjs
50
+
51
+ - name: Differentially verify finite binary64 rendering with V8
52
+ run: python tools/check_rfc8785_differential.py --random-cases 100000
53
+
54
+ - name: Build source and wheel distributions
55
+ run: python -m build
56
+
57
+ - name: Install the produced wheel
58
+ run: python tools/install_built_wheel.py
59
+
60
+ - name: Installed-package smoke test
61
+ run: python tools/smoke_installed.py
62
+
63
+ - name: Upload platform evidence and distributions
64
+ if: always()
65
+ uses: actions/upload-artifact@v7
66
+ with:
67
+ name: axon2026-${{ runner.os }}-py${{ matrix.python }}
68
+ path: |
69
+ platform-evidence/
70
+ dist/
71
+ if-no-files-found: error
72
+
73
+ rust-crate:
74
+ name: ${{ matrix.os }} / Rust stable
75
+ runs-on: ${{ matrix.os }}
76
+ timeout-minutes: 30
77
+ strategy:
78
+ fail-fast: false
79
+ matrix:
80
+ os: [ubuntu-latest, windows-latest, macos-latest]
81
+ defaults:
82
+ run:
83
+ working-directory: serde_axon
84
+ steps:
85
+ - uses: actions/checkout@v7
86
+ - uses: dtolnay/rust-toolchain@stable
87
+ with:
88
+ components: rustfmt, clippy
89
+
90
+ - name: Check formatting
91
+ run: cargo fmt --check
92
+
93
+ - name: Lint with clippy (warnings are errors)
94
+ run: cargo clippy --all-targets -- -D warnings
95
+
96
+ - name: Build all targets
97
+ run: cargo build --all-targets
98
+
99
+ - name: Run the full test suite
100
+ # Includes the differential/normative fixtures generated from the
101
+ # Python reference, so this job also gates byte-for-byte parity.
102
+ run: cargo test
103
+
104
+ long-fuzz:
105
+ runs-on: ubuntu-latest
106
+ timeout-minutes: 30
107
+ steps:
108
+ - uses: actions/checkout@v7
109
+ - uses: actions/setup-python@v6
110
+ with:
111
+ python-version: "3.12"
112
+ - name: Run complete gate and 25,000 values per seed
113
+ run: >-
114
+ python tools/release_gate.py
115
+ --fuzz-iterations 25000
116
+ --evidence platform-evidence/Linux-long-fuzz-py312.json
117
+ - name: Upload long-fuzz evidence
118
+ if: always()
119
+ uses: actions/upload-artifact@v7
120
+ with:
121
+ name: axon2026-Linux-long-fuzz-py312
122
+ path: platform-evidence/Linux-long-fuzz-py312.json
123
+ if-no-files-found: error
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Michael Lauzon <axonnext@gmail.com>
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2011-2016 Shibzukhov Zaur (intellimath) - original AXON / pyaxon
4
+ Copyright (c) 2026 Michael Lauzon <axonnext@gmail.com> (AXON Next: modernization and extensions)
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) <2011-2016> <Shibzukhov Zaur, szport at gmail dot com>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,34 @@
1
+ include setup.py
2
+ include README.rst
3
+ include LICENSE-MIT
4
+ include LICENSE-APACHE
5
+ include LICENSE_original.txt
6
+ include NOTICE.md
7
+ include test_all.py
8
+ include test_benchmark.py
9
+ # The `include lib/axon2/*.py` glob already ships every module. That includes
10
+ # _loader.py, _dumper.py, and _objects.py, which are Cython sources written in
11
+ # pure-Python-mode syntax -- NOT pure-Python fallbacks. They depend on the
12
+ # declarations their matching .pxd files cimport (SafeBuilder, PyFloat_AS_DOUBLE,
13
+ # import_datetime, and so on), so importing them as plain Python raises
14
+ # NameError: the compiled extensions are required, not optional. They ship
15
+ # because the sdist must be able to rebuild those extensions from source;
16
+ # setup.py's build_py drops them from the wheel, where the .pyd/.so replaces
17
+ # them. The .pxd, .pyx, .c, and .h files below exist for the same reason, and
18
+ # let a source build succeed without Cython installed.
19
+ include lib/axon2/*.py
20
+ include lib/axon2/odict.pyx
21
+ include lib/axon2/*.pxd
22
+ include lib/axon2/*.c
23
+ include lib/axon2/*.h
24
+ include lib/axon2/test/*.py
25
+ include lib/axon2/test/benchmark/*.py
26
+ # Reference documentation only. Internal working notes under docs/2026 (freeze
27
+ # review, implementation status, closure ledger, empirical report) and audit
28
+ # reports are deliberately NOT distributed to external consumers.
29
+ include spec/AXON_2026_SPEC.md
30
+ include docs/2026/AXON_2026_CONFORMANCE_TESTS.md
31
+ include spec/AXON_2018_to_2026_Language_Evolution_MERGED.md
32
+ recursive-include conformance *.json
33
+ recursive-include tools *.py *.mjs
34
+ recursive-include .github/workflows *.yml
@@ -0,0 +1,21 @@
1
+ # NOTICE -- Attribution & Lineage
2
+
3
+ **AXON Next** is a modernization and extension of **AXON** (*eXtended Object
4
+ Notation*), originally created by **intellimath** (Zaur Shibzukhov) and first released as the
5
+ Python library **`pyaxon`**, under the MIT License.
6
+
7
+ - Original work: AXON / `pyaxon` (c) 2011-2016 Shibzukhov Zaur (intellimath) -- MIT License.
8
+ - This work: AXON Next (c) 2026 Michael Lauzon <axonnext@gmail.com> -- MIT License (or MIT OR Apache-2.0
9
+ for the `serde_axon` Rust crate; see that crate's own license files).
10
+
11
+ Portions of this repository that descend from `pyaxon` (the modernized
12
+ reference implementation) are derivative works of intellimath's MIT-licensed
13
+ code and retain the original copyright notice above, as MIT requires. The
14
+ `serde_axon` Rust crate is an independent clean-room implementation written from
15
+ the AXON Next specification and from observed reference behaviour; it contains
16
+ no `pyaxon` source.
17
+
18
+ > **Attribution note.** The original-work credit above uses the copyright span
19
+ > from the original `pyaxon` LICENSE, retained verbatim in `LICENSE_original.txt`
20
+ > (`Copyright (c) <2011-2016> <Shibzukhov Zaur, szport at gmail dot com>`), as
21
+ > MIT requires.