cliron 0.1.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.
@@ -0,0 +1,35 @@
1
+ version: 2
2
+
3
+ updates:
4
+ - package-ecosystem: github-actions
5
+ directory: /
6
+ schedule:
7
+ interval: weekly
8
+ commit-message:
9
+ prefix: ci
10
+ groups:
11
+ github-actions:
12
+ patterns:
13
+ - "*"
14
+
15
+ - package-ecosystem: cargo
16
+ directory: /
17
+ schedule:
18
+ interval: weekly
19
+ commit-message:
20
+ prefix: build
21
+ groups:
22
+ cargo:
23
+ patterns:
24
+ - "*"
25
+
26
+ - package-ecosystem: uv
27
+ directory: /
28
+ schedule:
29
+ interval: weekly
30
+ commit-message:
31
+ prefix: build
32
+ groups:
33
+ uv:
34
+ patterns:
35
+ - "*"
@@ -0,0 +1,101 @@
1
+ name: Build
2
+
3
+ on:
4
+ workflow_call:
5
+
6
+ permissions:
7
+ contents: read
8
+
9
+ defaults:
10
+ run:
11
+ shell: bash
12
+
13
+ jobs:
14
+ rust:
15
+ name: Rust checks
16
+ runs-on: ubuntu-24.04
17
+ steps:
18
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
19
+ with:
20
+ persist-credentials: false
21
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
22
+ with:
23
+ python-version: "3.15"
24
+ - run: cargo fmt --check
25
+ - run: cargo clippy --locked --all-targets -- -D warnings
26
+ - run: cargo test --locked
27
+
28
+ python:
29
+ name: Python ${{ matrix.python }} tests
30
+ runs-on: ubuntu-24.04
31
+ strategy:
32
+ matrix:
33
+ python: ["3.11", "3.12", "3.13", "3.14", "3.15"]
34
+ steps:
35
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
36
+ with:
37
+ persist-credentials: false
38
+ - uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
39
+ with:
40
+ python-version: ${{ matrix.python }}
41
+ - run: uv run --locked pytest
42
+
43
+ wheel:
44
+ name: Wheel (${{ matrix.runner }})
45
+ needs: [rust, python]
46
+ runs-on: ${{ matrix.runner }}
47
+ strategy:
48
+ matrix:
49
+ include:
50
+ - runner: ubuntu-24.04
51
+ target: x86_64
52
+ - runner: ubuntu-24.04-arm
53
+ target: aarch64
54
+ - runner: macos-15
55
+ target: aarch64
56
+ - runner: windows-2025
57
+ target: x64
58
+ steps:
59
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
60
+ with:
61
+ persist-credentials: false
62
+ - uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
63
+ with:
64
+ target: ${{ matrix.target }}
65
+ manylinux: auto
66
+ args: --release --locked --out dist
67
+ - uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
68
+ - name: Test the wheel on the oldest and newest supported Python
69
+ run: |
70
+ for python in 3.11 3.15; do
71
+ uv run --no-project --isolated --python "$python" --with pytest --with dist/*.whl pytest
72
+ done
73
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
74
+ with:
75
+ name: dist-${{ matrix.runner }}
76
+ path: dist
77
+ if-no-files-found: error
78
+
79
+ sdist:
80
+ name: Source distribution
81
+ needs: [rust, python]
82
+ runs-on: ubuntu-24.04
83
+ steps:
84
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
85
+ with:
86
+ persist-credentials: false
87
+ - uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
88
+ with:
89
+ command: sdist
90
+ args: --out dist
91
+ - uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
92
+ - name: Test the source distribution on the oldest and newest supported Python
93
+ run: |
94
+ for python in 3.11 3.15; do
95
+ uv run --no-project --isolated --python "$python" --with pytest --with dist/*.tar.gz pytest
96
+ done
97
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
98
+ with:
99
+ name: dist-sdist
100
+ path: dist
101
+ if-no-files-found: error
@@ -0,0 +1,17 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - "**"
7
+
8
+ concurrency:
9
+ group: ci-${{ github.ref }}
10
+ cancel-in-progress: true
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ jobs:
16
+ build:
17
+ uses: ./.github/workflows/build.yml
@@ -0,0 +1,119 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v[0-9]+.[0-9]+.[0-9]+"
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ defaults:
12
+ run:
13
+ shell: bash
14
+
15
+ jobs:
16
+ verify:
17
+ name: Verify release
18
+ runs-on: ubuntu-24.04
19
+ outputs:
20
+ notes: ${{ steps.changelog.outputs.notes }}
21
+ steps:
22
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
23
+ with:
24
+ fetch-depth: 0
25
+ persist-credentials: false
26
+ - name: Check that the tag matches the version in Cargo.toml
27
+ run: |
28
+ version=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[0].version')
29
+ if [ "v$version" != "$GITHUB_REF_NAME" ]; then
30
+ echo "::error::Tag $GITHUB_REF_NAME does not match version $version in Cargo.toml"
31
+ exit 1
32
+ fi
33
+ - name: Check that the tagged commit is on main
34
+ run: |
35
+ if ! git merge-base --is-ancestor "$GITHUB_SHA" origin/main; then
36
+ echo "::error::Tag $GITHUB_REF_NAME points to a commit that is not on main"
37
+ exit 1
38
+ fi
39
+ - name: Read the release notes from CHANGELOG.md
40
+ id: changelog
41
+ run: |
42
+ notes=$(awk -v heading="## $GITHUB_REF_NAME" '
43
+ $0 == heading { found = 1; next }
44
+ found && /^## / { exit }
45
+ found && NF { started = 1 }
46
+ started { print }
47
+ ' CHANGELOG.md)
48
+ if [ -z "$notes" ]; then
49
+ echo "::error::CHANGELOG.md has no entries under ## $GITHUB_REF_NAME"
50
+ exit 1
51
+ fi
52
+ delimiter=$(openssl rand -hex 16)
53
+ {
54
+ echo "notes<<$delimiter"
55
+ echo "$notes"
56
+ echo "$delimiter"
57
+ } >> "$GITHUB_OUTPUT"
58
+
59
+ build:
60
+ needs: verify
61
+ uses: ./.github/workflows/build.yml
62
+
63
+ draft:
64
+ name: Draft GitHub release
65
+ needs: [verify, build]
66
+ runs-on: ubuntu-24.04
67
+ permissions:
68
+ contents: write
69
+ steps:
70
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
71
+ with:
72
+ pattern: dist-*
73
+ path: dist
74
+ merge-multiple: true
75
+ - name: Create the draft release
76
+ env:
77
+ GH_TOKEN: ${{ github.token }}
78
+ NOTES: ${{ needs.verify.outputs.notes }}
79
+ run: |
80
+ if [ "$(gh release view "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --json isDraft --jq .isDraft 2>/dev/null)" = "true" ]; then
81
+ gh release delete "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --yes
82
+ fi
83
+ gh release create "$GITHUB_REF_NAME" dist/* \
84
+ --repo "$GITHUB_REPOSITORY" \
85
+ --draft \
86
+ --verify-tag \
87
+ --title "$GITHUB_REF_NAME" \
88
+ --notes "$NOTES"
89
+
90
+ pypi:
91
+ name: Publish to PyPI
92
+ needs: draft
93
+ runs-on: ubuntu-24.04
94
+ environment:
95
+ name: pypi
96
+ url: https://pypi.org/project/cliron/
97
+ permissions:
98
+ id-token: write
99
+ steps:
100
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
101
+ with:
102
+ pattern: dist-*
103
+ path: dist
104
+ merge-multiple: true
105
+ - uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
106
+ with:
107
+ skip-existing: true
108
+
109
+ publish:
110
+ name: Publish GitHub release
111
+ needs: pypi
112
+ runs-on: ubuntu-24.04
113
+ permissions:
114
+ contents: write
115
+ steps:
116
+ - name: Publish the draft release
117
+ env:
118
+ GH_TOKEN: ${{ github.token }}
119
+ run: gh release edit "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --draft=false
@@ -0,0 +1,245 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ *.lcov
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+
75
+ # PyBuilder
76
+ .pybuilder/
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ # For a library or package, you might want to ignore these files since the code is
88
+ # intended to run in multiple environments; otherwise, check them in:
89
+ # .python-version
90
+
91
+ # pipenv
92
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
+ # install all needed dependencies.
96
+ # Pipfile.lock
97
+
98
+ # uv
99
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
100
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
101
+ # commonly ignored for libraries.
102
+ # uv.lock
103
+
104
+ # poetry
105
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
106
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
107
+ # commonly ignored for libraries.
108
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
109
+ # poetry.lock
110
+ # poetry.toml
111
+
112
+ # pdm
113
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
114
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
115
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
116
+ # pdm.lock
117
+ # pdm.toml
118
+ .pdm-python
119
+ .pdm-build/
120
+
121
+ # pixi
122
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
123
+ # pixi.lock
124
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
125
+ # in the .venv directory. It is recommended not to include this directory in version control.
126
+ .pixi/*
127
+ !.pixi/config.toml
128
+
129
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
130
+ __pypackages__/
131
+
132
+ # Celery stuff
133
+ celerybeat-schedule*
134
+ celerybeat.pid
135
+
136
+ # Redis
137
+ *.rdb
138
+ *.aof
139
+ *.pid
140
+
141
+ # RabbitMQ
142
+ mnesia/
143
+ rabbitmq/
144
+ rabbitmq-data/
145
+
146
+ # ActiveMQ
147
+ activemq-data/
148
+
149
+ # SageMath parsed files
150
+ *.sage.py
151
+
152
+ # Environments
153
+ .env
154
+ .envrc
155
+ .venv
156
+ env/
157
+ venv/
158
+ ENV/
159
+ env.bak/
160
+ venv.bak/
161
+
162
+ # Spyder project settings
163
+ .spyderproject
164
+ .spyproject
165
+
166
+ # Rope project settings
167
+ .ropeproject
168
+
169
+ # mkdocs/Zensical documentation
170
+ /site
171
+
172
+ # mypy
173
+ .mypy_cache/
174
+ .dmypy.json
175
+ dmypy.json
176
+
177
+ # Pyre type checker
178
+ .pyre/
179
+
180
+ # pytype static type analyzer
181
+ .pytype/
182
+
183
+ # Cython debug symbols
184
+ cython_debug/
185
+
186
+ # PyCharm
187
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
188
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
189
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
190
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
191
+ # .idea/
192
+
193
+ # Abstra
194
+ # Abstra is an AI-powered process automation framework.
195
+ # Ignore directories containing user credentials, local state, and settings.
196
+ # Learn more at https://abstra.io/docs
197
+ .abstra/
198
+
199
+ # Visual Studio Code
200
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore that
201
+ # can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
202
+ # and can be added to the global gitignore or merged into this file. However, if you prefer, you
203
+ # could uncomment the following to ignore the entire vscode folder
204
+ # .vscode/
205
+ # Temporary file for partial code execution
206
+ tempCodeRunnerFile.py
207
+
208
+ # Ruff stuff:
209
+ .ruff_cache/
210
+
211
+ # PyPI configuration file
212
+ .pypirc
213
+
214
+ # Marimo
215
+ marimo/_static/
216
+ marimo/_lsp/
217
+ __marimo__/
218
+
219
+ # Streamlit
220
+ .streamlit/secrets.toml
221
+
222
+ # Generated by Cargo
223
+ # will have compiled files and executables
224
+ debug
225
+ target
226
+
227
+ # These are backup files generated by rustfmt
228
+ **/*.rs.bk
229
+
230
+ # MSVC Windows builds of rustc generate these, which store debugging information
231
+ *.pdb
232
+
233
+ # Generated by cargo mutants
234
+ # Contains mutation testing data
235
+ **/mutants.out*/
236
+
237
+ # rustc will dump stack traces when hitting an internal compiler error to PWD
238
+ rustc-ice-*.txt
239
+
240
+ # RustRover
241
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
242
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
243
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
244
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
245
+ #.idea/
cliron-0.1.0/AGENTS.md ADDED
@@ -0,0 +1,41 @@
1
+ # AGENTS.md
2
+
3
+ ## Git
4
+
5
+ - Agents must never create, change or delete any git repository, local or remote, by any means. This covers git itself, any other tool, script, subprocess or agent, and direct edits inside a `.git` directory.
6
+ - Repository state includes history, the index, refs, branches, tags, the stash, configuration, hooks and remotes, as well as working tree files whenever git is what changes them.
7
+ - Agents may only run git in ways that leave all of that unchanged. If an agent is not certain an action changes nothing, it must not take it.
8
+ - There are no exceptions.
9
+ - Commit messages follow [Conventional Commits](https://www.conventionalcommits.org) on a single line, without a scope. For example, `docs: Added a README and LICENSE file`, not `docs(readme): Added a README`.
10
+ - Development happens on feature branches that are squash-merged into `main` through pull requests. Pull request titles follow the same format as commit messages.
11
+
12
+ ## Changelog
13
+
14
+ - Every change that affects users adds an entry under `## Unreleased` in `CHANGELOG.md`.
15
+ - Entries are grouped under these headings, in this order, leaving out empty ones: `### Added`, `### Changed`, `### Deprecated`, `### Removed`, `### Fixed`, `### Security`.
16
+ - A release renames `## Unreleased` to `## vX.Y.Z` and adds a new, empty `## Unreleased` above it. Version headings carry no date.
17
+
18
+ ## Comments and docstrings
19
+
20
+ - These rules apply to code everywhere, including code blocks in Markdown and other documentation.
21
+ - Code must be self-documenting. If code cannot be understood without a comment, it is bad code: refactor it instead of commenting it.
22
+ - Docstrings are the only allowed form of documentation in code. They use reStructuredText field lists, and a multiline docstring never starts on the same line as its opening quotes:
23
+
24
+ ```python
25
+ def parse_port(value: str) -> int:
26
+ """
27
+ Parse a TCP port number.
28
+
29
+ :param value: The port as text, for example ``"8080"``.
30
+ :returns: The port as an integer.
31
+ :raises ValueError: If ``value`` is not a number between 1 and 65535.
32
+ """
33
+ ```
34
+
35
+ - PyO3 turns the `///` doc comments on Rust items exposed to Python into their Python docstrings, so those follow the same style. Doc comments on internal Rust items use standard rustdoc Markdown.
36
+ - Apart from the version comments on pinned GitHub Actions, the only allowed comment documents hidden behavior that our code cannot explain, such as why a workaround for a bug in a dependency exists.
37
+ - Never explain how third-party tools or libraries behave, in code or in documentation. That is their documentation's job, and our copy drifts when they change.
38
+
39
+ ## GitHub Actions
40
+
41
+ - Every action is pinned to a full commit hash, followed by a comment naming its version: `uses: actions/checkout@<commit hash> # v7.0.1`.
@@ -0,0 +1,9 @@
1
+ # Changelog
2
+
3
+ ## Unreleased
4
+
5
+ ## v0.1.0
6
+
7
+ ### Added
8
+
9
+ - Initial release.
@@ -0,0 +1,132 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "cliron"
7
+ version = "0.1.0"
8
+ dependencies = [
9
+ "pyo3",
10
+ ]
11
+
12
+ [[package]]
13
+ name = "heck"
14
+ version = "0.5.0"
15
+ source = "registry+https://github.com/rust-lang/crates.io-index"
16
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
17
+
18
+ [[package]]
19
+ name = "libc"
20
+ version = "0.2.191"
21
+ source = "registry+https://github.com/rust-lang/crates.io-index"
22
+ checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
23
+
24
+ [[package]]
25
+ name = "once_cell"
26
+ version = "1.21.4"
27
+ source = "registry+https://github.com/rust-lang/crates.io-index"
28
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
29
+
30
+ [[package]]
31
+ name = "portable-atomic"
32
+ version = "1.15.0"
33
+ source = "registry+https://github.com/rust-lang/crates.io-index"
34
+ checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
35
+
36
+ [[package]]
37
+ name = "proc-macro2"
38
+ version = "1.0.107"
39
+ source = "registry+https://github.com/rust-lang/crates.io-index"
40
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
41
+ dependencies = [
42
+ "unicode-ident",
43
+ ]
44
+
45
+ [[package]]
46
+ name = "pyo3"
47
+ version = "0.30.1"
48
+ source = "registry+https://github.com/rust-lang/crates.io-index"
49
+ checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
50
+ dependencies = [
51
+ "libc",
52
+ "once_cell",
53
+ "portable-atomic",
54
+ "pyo3-build-config",
55
+ "pyo3-ffi",
56
+ "pyo3-macros",
57
+ ]
58
+
59
+ [[package]]
60
+ name = "pyo3-build-config"
61
+ version = "0.30.1"
62
+ source = "registry+https://github.com/rust-lang/crates.io-index"
63
+ checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
64
+ dependencies = [
65
+ "target-lexicon",
66
+ ]
67
+
68
+ [[package]]
69
+ name = "pyo3-ffi"
70
+ version = "0.30.1"
71
+ source = "registry+https://github.com/rust-lang/crates.io-index"
72
+ checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
73
+ dependencies = [
74
+ "libc",
75
+ "pyo3-build-config",
76
+ ]
77
+
78
+ [[package]]
79
+ name = "pyo3-macros"
80
+ version = "0.30.1"
81
+ source = "registry+https://github.com/rust-lang/crates.io-index"
82
+ checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
83
+ dependencies = [
84
+ "proc-macro2",
85
+ "pyo3-macros-backend",
86
+ "quote",
87
+ "syn",
88
+ ]
89
+
90
+ [[package]]
91
+ name = "pyo3-macros-backend"
92
+ version = "0.30.1"
93
+ source = "registry+https://github.com/rust-lang/crates.io-index"
94
+ checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
95
+ dependencies = [
96
+ "heck",
97
+ "proc-macro2",
98
+ "quote",
99
+ "syn",
100
+ ]
101
+
102
+ [[package]]
103
+ name = "quote"
104
+ version = "1.0.47"
105
+ source = "registry+https://github.com/rust-lang/crates.io-index"
106
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
107
+ dependencies = [
108
+ "proc-macro2",
109
+ ]
110
+
111
+ [[package]]
112
+ name = "syn"
113
+ version = "3.0.9"
114
+ source = "registry+https://github.com/rust-lang/crates.io-index"
115
+ checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
116
+ dependencies = [
117
+ "proc-macro2",
118
+ "quote",
119
+ "unicode-ident",
120
+ ]
121
+
122
+ [[package]]
123
+ name = "target-lexicon"
124
+ version = "0.13.5"
125
+ source = "registry+https://github.com/rust-lang/crates.io-index"
126
+ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
127
+
128
+ [[package]]
129
+ name = "unicode-ident"
130
+ version = "1.0.27"
131
+ source = "registry+https://github.com/rust-lang/crates.io-index"
132
+ checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
@@ -0,0 +1,22 @@
1
+ [package]
2
+ name = "cliron"
3
+ version = "0.1.0"
4
+ edition = "2024"
5
+ rust-version = "1.96"
6
+ description = "Rust core of cliron, an AI-native, lightweight, customizable and dependency-free Python CLI framework."
7
+ license = "MIT"
8
+ readme = "README.md"
9
+ repository = "https://github.com/marcusfrdk/cliron"
10
+ publish = false
11
+
12
+ [lib]
13
+ name = "_core"
14
+ crate-type = ["cdylib", "rlib"]
15
+
16
+ [dependencies]
17
+ pyo3 = { version = "0.30.1", features = ["abi3-py311"] }
18
+
19
+ [profile.release]
20
+ lto = true
21
+ codegen-units = 1
22
+ strip = true
cliron-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Cliron contributors
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 all
13
+ 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 THE
21
+ SOFTWARE.
cliron-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,53 @@
1
+ Metadata-Version: 2.4
2
+ Name: cliron
3
+ Version: 0.1.0
4
+ Classifier: Development Status :: 2 - Pre-Alpha
5
+ Classifier: Environment :: Console
6
+ Classifier: Intended Audience :: Developers
7
+ Classifier: Operating System :: OS Independent
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3 :: Only
10
+ Classifier: Programming Language :: Python :: Implementation :: CPython
11
+ Classifier: Programming Language :: Rust
12
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
13
+ Classifier: Topic :: Software Development :: User Interfaces
14
+ Classifier: Typing :: Typed
15
+ License-File: LICENSE
16
+ Summary: An AI-native, lightweight, customizable and dependency-free Python CLI framework.
17
+ Keywords: cli,command-line,framework,agents,ai,rust
18
+ License-Expression: MIT
19
+ Requires-Python: >=3.11
20
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
21
+ Project-URL: Changelog, https://github.com/marcusfrdk/cliron/blob/main/CHANGELOG.md
22
+ Project-URL: Issues, https://github.com/marcusfrdk/cliron/issues
23
+ Project-URL: Repository, https://github.com/marcusfrdk/cliron
24
+
25
+ # Cliron
26
+
27
+ An AI-native lightweight, customizable, and dependency-free Python CLI framework.
28
+
29
+ ## Installation
30
+
31
+ ```bash
32
+ pip install cliron
33
+ ```
34
+
35
+ ## Requirements
36
+
37
+ - **Python**: 3.11 or higher
38
+ - **Rust**: 1.96 or higher
39
+ - **uv**: 0.11 or higher
40
+
41
+ ## Development
42
+
43
+ ```bash
44
+ uv sync
45
+ uv run pytest
46
+ cargo test
47
+ uv run maturin build --release
48
+ ```
49
+
50
+ ## License
51
+
52
+ This project is licensed under an MIT license, see the [LICENSE](./LICENSE) file for more information.
53
+
cliron-0.1.0/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # Cliron
2
+
3
+ An AI-native lightweight, customizable, and dependency-free Python CLI framework.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install cliron
9
+ ```
10
+
11
+ ## Requirements
12
+
13
+ - **Python**: 3.11 or higher
14
+ - **Rust**: 1.96 or higher
15
+ - **uv**: 0.11 or higher
16
+
17
+ ## Development
18
+
19
+ ```bash
20
+ uv sync
21
+ uv run pytest
22
+ cargo test
23
+ uv run maturin build --release
24
+ ```
25
+
26
+ ## License
27
+
28
+ This project is licensed under an MIT license, see the [LICENSE](./LICENSE) file for more information.
@@ -0,0 +1,5 @@
1
+ """Cliron: an AI-native, lightweight, customizable and dependency-free Python CLI framework."""
2
+
3
+ from cliron._core import __version__
4
+
5
+ __all__ = ["__version__"]
@@ -0,0 +1 @@
1
+ __version__: str
File without changes
@@ -0,0 +1,51 @@
1
+ [build-system]
2
+ requires = ["maturin>=1.15,<2.0"]
3
+ build-backend = "maturin"
4
+
5
+ [project]
6
+ name = "cliron"
7
+ description = "An AI-native, lightweight, customizable and dependency-free Python CLI framework."
8
+ readme = "README.md"
9
+ license = "MIT"
10
+ license-files = ["LICENSE"]
11
+ requires-python = ">=3.11"
12
+ dependencies = []
13
+ keywords = ["cli", "command-line", "framework", "agents", "ai", "rust"]
14
+ classifiers = [
15
+ "Development Status :: 2 - Pre-Alpha",
16
+ "Environment :: Console",
17
+ "Intended Audience :: Developers",
18
+ "Operating System :: OS Independent",
19
+ "Programming Language :: Python :: 3",
20
+ "Programming Language :: Python :: 3 :: Only",
21
+ "Programming Language :: Python :: Implementation :: CPython",
22
+ "Programming Language :: Rust",
23
+ "Topic :: Software Development :: Libraries :: Application Frameworks",
24
+ "Topic :: Software Development :: User Interfaces",
25
+ "Typing :: Typed",
26
+ ]
27
+ dynamic = ["version"]
28
+
29
+ [project.urls]
30
+ Repository = "https://github.com/marcusfrdk/cliron"
31
+ Issues = "https://github.com/marcusfrdk/cliron/issues"
32
+ Changelog = "https://github.com/marcusfrdk/cliron/blob/main/CHANGELOG.md"
33
+
34
+ [dependency-groups]
35
+ dev = ["maturin>=1.15,<2.0", "pytest>=8"]
36
+
37
+ [tool.maturin]
38
+ module-name = "cliron._core"
39
+ exclude = ["**/__pycache__", "**/*.pyc", "**/*.pyo"]
40
+
41
+ [tool.uv]
42
+ required-version = ">=0.11"
43
+ cache-keys = [
44
+ { file = "pyproject.toml" },
45
+ { file = "Cargo.toml" },
46
+ { file = "Cargo.lock" },
47
+ { file = "src/**/*.rs" },
48
+ ]
49
+
50
+ [tool.pytest.ini_options]
51
+ testpaths = ["tests"]
@@ -0,0 +1,11 @@
1
+ use pyo3::prelude::*;
2
+
3
+ #[pymodule]
4
+ mod _core {
5
+ use pyo3::prelude::*;
6
+
7
+ #[pymodule_init]
8
+ fn init(module: &Bound<'_, PyModule>) -> PyResult<()> {
9
+ module.add("__version__", env!("CARGO_PKG_VERSION"))
10
+ }
11
+ }
@@ -0,0 +1,12 @@
1
+ from importlib.metadata import version
2
+
3
+ import cliron
4
+ from cliron import _core
5
+
6
+
7
+ def test_version_comes_from_extension() -> None:
8
+ assert cliron.__version__ == _core.__version__
9
+
10
+
11
+ def test_version_matches_package_metadata() -> None:
12
+ assert cliron.__version__ == version("cliron")
cliron-0.1.0/uv.lock ADDED
@@ -0,0 +1,103 @@
1
+ version = 1
2
+ revision = 3
3
+ requires-python = ">=3.11"
4
+
5
+ [[package]]
6
+ name = "cliron"
7
+ source = { editable = "." }
8
+
9
+ [package.dev-dependencies]
10
+ dev = [
11
+ { name = "maturin" },
12
+ { name = "pytest" },
13
+ ]
14
+
15
+ [package.metadata]
16
+
17
+ [package.metadata.requires-dev]
18
+ dev = [
19
+ { name = "maturin", specifier = ">=1.15,<2.0" },
20
+ { name = "pytest", specifier = ">=8" },
21
+ ]
22
+
23
+ [[package]]
24
+ name = "colorama"
25
+ version = "0.4.6"
26
+ source = { registry = "https://pypi.org/simple" }
27
+ sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" }
28
+ wheels = [
29
+ { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" },
30
+ ]
31
+
32
+ [[package]]
33
+ name = "iniconfig"
34
+ version = "2.3.1"
35
+ source = { registry = "https://pypi.org/simple" }
36
+ sdist = { url = "https://files.pythonhosted.org/packages/01/e1/2069291243c926a2ff1cd706c7f3eeb9b62144bf60f77c9fb9ff2fb26bd3/iniconfig-2.3.1.tar.gz", hash = "sha256:67f4b9c50da0dedf52af349e7749a80a9057a5031199791b906c3bb3ae878960", size = 21209, upload-time = "2026-10-06T22:48:38.076Z" }
37
+ wheels = [
38
+ { url = "https://files.pythonhosted.org/packages/56/43/4ca9e49d27a1fcf6bece6f6aec0ea46bb9112489b93d4b688fb415457bdb/iniconfig-2.3.1-py3-none-any.whl", hash = "sha256:9121e2c1fdb355232495be3194c8dfe87ccc2d5dee45947b78e68f499790d7a7", size = 7552, upload-time = "2026-10-06T22:48:36.959Z" },
39
+ ]
40
+
41
+ [[package]]
42
+ name = "maturin"
43
+ version = "1.15.0"
44
+ source = { registry = "https://pypi.org/simple" }
45
+ sdist = { url = "https://files.pythonhosted.org/packages/b9/c8/22e5e21b2679c9bce6415ca578034ca2cc9316be0642ae21e051a2d5198c/maturin-1.15.0.tar.gz", hash = "sha256:94b26cc8e8aba61a5f2099715fe640e18c5f678e9a500408b38761263954228a", size = 385504, upload-time = "2026-08-24T12:11:22.665Z" }
46
+ wheels = [
47
+ { url = "https://files.pythonhosted.org/packages/14/69/5c01b461044eb1f45ddcce006706eb88110c793cdb11c7ae0b5e08492e94/maturin-1.15.0-py3-none-linux_armv6l.whl", hash = "sha256:6bf6dc62e22d4dcfd5a51244ff0d58975fa4979c48209fe84159617648956d82", size = 10206220, upload-time = "2026-08-24T12:10:53.327Z" },
48
+ { url = "https://files.pythonhosted.org/packages/eb/1f/2b431554e11687cdb1077e0cdadcc118c53f611086b3af00c8545a67c6a5/maturin-1.15.0-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:cd35772633f489841132bc8e71d6fc7f842df30b9c05cd5cdf1ee1ddcb744cc7", size = 19416513, upload-time = "2026-08-24T12:10:56.126Z" },
49
+ { url = "https://files.pythonhosted.org/packages/51/36/e23a21cb34a648b711036b9b2fe1d4f3f4ee24f8db54215d73f1a9a3a3ec/maturin-1.15.0-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:c40b4eae7bf5ef1f4b1af8d623fe4105016f93578fb15b764e741d08ec3b92dd", size = 10014962, upload-time = "2026-08-24T12:10:58.486Z" },
50
+ { url = "https://files.pythonhosted.org/packages/8c/80/33b15cb2d8f30f12c807955e8f2fd775027692904e30ec0784744ce8cd83/maturin-1.15.0-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl", hash = "sha256:7eb066372f541f8eb4909c79c5d9bd0b9e8125980bdf1ec9e8aba23c6c8d6c55", size = 10196223, upload-time = "2026-08-24T12:11:00.696Z" },
51
+ { url = "https://files.pythonhosted.org/packages/fe/91/b495e19e2f5c503b540452b2039115e7b2363867e8c5ad4179eb752fa92c/maturin-1.15.0-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl", hash = "sha256:653020a63525bb224e5ab0adf02e17a2e08bc86dbea7fc1399c9a56d7529b99e", size = 10541186, upload-time = "2026-08-24T12:11:02.857Z" },
52
+ { url = "https://files.pythonhosted.org/packages/5d/2b/2abff58037188d852b124871b1f0d720e1c2bfb3d4f1b03d87c52cd66488/maturin-1.15.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl", hash = "sha256:0ebf9767892725083138e671c34482c660317a2f3d6a29fc0e0f34e9d8c99136", size = 10083468, upload-time = "2026-08-24T12:11:05.012Z" },
53
+ { url = "https://files.pythonhosted.org/packages/3f/07/b7e9f8be99a6627849e81ac7b6694876bce8f50a92995fe17e3cf2610f0a/maturin-1.15.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl", hash = "sha256:7ab7eebffd7b8debca2265985de4eaeb332141276d24b9560b5ad484d4b3add1", size = 10047786, upload-time = "2026-08-24T12:11:07.042Z" },
54
+ { url = "https://files.pythonhosted.org/packages/ca/ab/167e3cb7accee11b507dbe53e0e87aeccb376d44ae66284c96ee4df3a9fd/maturin-1.15.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.musllinux_1_1_ppc64le.whl", hash = "sha256:126e12e618b4db42f68c779a56d41f82a390145ba36ac3f621d057eb34f5ad9d", size = 13315332, upload-time = "2026-08-24T12:11:09.433Z" },
55
+ { url = "https://files.pythonhosted.org/packages/14/4d/801379f646cbc6b00998e5289b0630a886be3a4ee4c75b6bc9b87478a7f1/maturin-1.15.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4f9d33e6c3f9615c8caceecbbbd440f8eb25a3ddeb687077682cd5eca2e9ae15", size = 10807183, upload-time = "2026-08-24T12:11:11.73Z" },
56
+ { url = "https://files.pythonhosted.org/packages/89/27/2e612e1cbd1580e9e94d4722c227b5180dca27b32b955a34b79918aa1292/maturin-1.15.0-py3-none-manylinux_2_31_riscv64.musllinux_1_1_riscv64.whl", hash = "sha256:bf29beddd0c6708f112db51d5275fc28b28b9e9c9c5faae387eaef662918b176", size = 10413274, upload-time = "2026-08-24T12:11:14.04Z" },
57
+ { url = "https://files.pythonhosted.org/packages/70/d8/202a7b4d75a51f20f84ec9ce3b7345b12b822207072164e2b1c6ef665125/maturin-1.15.0-py3-none-win32.whl", hash = "sha256:da649988be98e87e009e51b1bf0d301b6a301bc0cecbdd60d40d8ba60748d1ca", size = 8928744, upload-time = "2026-08-24T12:11:16.269Z" },
58
+ { url = "https://files.pythonhosted.org/packages/40/dc/4e90da594986ba78dd3bc8a5921ecdcdb11085b22b02a412caab3b225601/maturin-1.15.0-py3-none-win_amd64.whl", hash = "sha256:552c2be4afd43fe8d5c9f3ec8d4c4756d973b8dcbe94c14084390301f50243e1", size = 10335085, upload-time = "2026-08-24T12:11:18.326Z" },
59
+ { url = "https://files.pythonhosted.org/packages/8b/10/15d4314edf130955edf2dc237aa393a8a7c10f2b9b57b89fa2f61f915659/maturin-1.15.0-py3-none-win_arm64.whl", hash = "sha256:c7dc0c66c78d3debdd9c5aa807e861fbcbf07f3505d34b125df74c03986b0f48", size = 9713795, upload-time = "2026-08-24T12:11:20.83Z" },
60
+ ]
61
+
62
+ [[package]]
63
+ name = "packaging"
64
+ version = "26.3"
65
+ source = { registry = "https://pypi.org/simple" }
66
+ sdist = { url = "https://files.pythonhosted.org/packages/7d/fa/3944b40b07da9ce895c0e6303a5ab7d53da063554f534556b134a54d6093/packaging-26.3.tar.gz", hash = "sha256:94edc256424af38762eb31306eed28beb9f0efc50a8837492c9d6fd6004aed79", size = 313412, upload-time = "2026-08-04T18:15:28.737Z" }
67
+ wheels = [
68
+ { url = "https://files.pythonhosted.org/packages/63/34/ba1c580383c9eada3711951fef0795c80b829a078d72188184bcab9dd527/packaging-26.3-py3-none-any.whl", hash = "sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c", size = 129956, upload-time = "2026-08-04T18:15:27.159Z" },
69
+ ]
70
+
71
+ [[package]]
72
+ name = "pluggy"
73
+ version = "1.7.0"
74
+ source = { registry = "https://pypi.org/simple" }
75
+ sdist = { url = "https://files.pythonhosted.org/packages/bf/db/7fc19e6f2dc92a966727031389fc2e08b558f0f25eb7403c1119ad4713cd/pluggy-1.7.0.tar.gz", hash = "sha256:d1eaa46ebb595891b860ab086b4d09c8588af65ebd4361b8e8f4bb8920b90ba8", size = 123304, upload-time = "2026-10-15T09:50:58.343Z" }
76
+ wheels = [
77
+ { url = "https://files.pythonhosted.org/packages/40/9e/2b38731e0fc536806f16490e1a12d7f0dc2a1235aa8cc07bcc75416a7daa/pluggy-1.7.0-py3-none-any.whl", hash = "sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec", size = 27082, upload-time = "2026-10-15T09:50:56.808Z" },
78
+ ]
79
+
80
+ [[package]]
81
+ name = "pygments"
82
+ version = "2.21.0"
83
+ source = { registry = "https://pypi.org/simple" }
84
+ sdist = { url = "https://files.pythonhosted.org/packages/49/2e/ced460408999b33da6b31b0021b0f37d329e202d4169aeb164493778f25b/pygments-2.21.0.tar.gz", hash = "sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c", size = 5005329, upload-time = "2026-08-17T08:02:48.824Z" }
85
+ wheels = [
86
+ { url = "https://files.pythonhosted.org/packages/71/46/17f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684/pygments-2.21.0-py3-none-any.whl", hash = "sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9", size = 1250147, upload-time = "2026-08-17T08:02:44.912Z" },
87
+ ]
88
+
89
+ [[package]]
90
+ name = "pytest"
91
+ version = "9.1.1"
92
+ source = { registry = "https://pypi.org/simple" }
93
+ dependencies = [
94
+ { name = "colorama", marker = "sys_platform == 'win32'" },
95
+ { name = "iniconfig" },
96
+ { name = "packaging" },
97
+ { name = "pluggy" },
98
+ { name = "pygments" },
99
+ ]
100
+ sdist = { url = "https://files.pythonhosted.org/packages/e4/47/b9efed96c114afcfa3c9d3fe98a76a1d14c74a9e266d397cf6eb64be5e01/pytest-9.1.1.tar.gz", hash = "sha256:1088fbde8f2b49d95a549a195707afa7a76a3ce9bcadc26b6d71f0ffda5fe313", size = 1636369, upload-time = "2026-06-19T10:58:32.857Z" }
101
+ wheels = [
102
+ { url = "https://files.pythonhosted.org/packages/24/25/1de2678b631f5a49215c6c96fff41ba892b0a34df68d6d80292b1b48aa7f/pytest-9.1.1-py3-none-any.whl", hash = "sha256:37a86b45efb9a47a61a36449063e8e18d0cab3161329fc099eb21783169c4f0c", size = 386536, upload-time = "2026-06-19T10:58:31.347Z" },
103
+ ]