bijux-cli 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,142 @@
1
+ # OS
2
+ .DS_Store
3
+ .DS_Store?
4
+ ._*
5
+ .Spotlight-V100
6
+ .Trashes
7
+ ehthumbs.db
8
+ Thumbs.db
9
+ desktop.ini
10
+ Icon?
11
+ $RECYCLE.BIN/
12
+ *.swp
13
+ *.swo
14
+
15
+ # Python
16
+ __pycache__/
17
+ *.py[cod]
18
+ *.pyo
19
+ *.pyd
20
+ *.so
21
+ build/
22
+ dist/
23
+ *.egg-info/
24
+ .eggs/
25
+ *.egg
26
+ *.whl
27
+ *.spec
28
+
29
+ # Environments
30
+ .venv/
31
+ .venv*/
32
+ .env
33
+ .envrc
34
+ .env.*
35
+ .conda/
36
+ .condarc
37
+ *.conda
38
+ .direnv/
39
+ .pdm.toml
40
+
41
+ # Test/coverage
42
+ .coverage
43
+ .coverage.*
44
+ .coverage/
45
+ htmlcov/
46
+ .tox/
47
+ .nox/
48
+ .pytest_cache/
49
+ .mypy_cache/
50
+ .ruff_cache/
51
+ .pytype/
52
+ .hypothesis/
53
+ .mutmut-cache/
54
+ .cache/
55
+ .noseids
56
+ nosetests.xml
57
+ test-results/
58
+ *.cover
59
+ *.prof
60
+ profile_default/
61
+ .benchmarks/
62
+ .mutmut-cache
63
+
64
+ # IDEs/editors
65
+ .idea/
66
+ .vscode/
67
+ .vscode-test/
68
+ *.code-workspace
69
+ *.sublime-project
70
+ *.sublime-workspace
71
+
72
+ # Docs
73
+ docs/_build/
74
+ site/
75
+ _build/
76
+ doctrees/
77
+ *.doctree
78
+
79
+ # JS/Node
80
+ node_modules/
81
+
82
+ # Data/Bioinformatics
83
+ *.bam
84
+ *.bai
85
+ *.cram
86
+ *.crai
87
+ *.sam
88
+ *.vcf
89
+ *.vcf.gz
90
+ *.fai
91
+ *.tar
92
+ *.tar.gz
93
+ *.h5
94
+ *.hdf5
95
+ *.sqlite
96
+ *.sqlite3
97
+ *.db
98
+ *.mtx
99
+ *.loom
100
+ *.bw
101
+ *.rda
102
+ *.rds
103
+ *.csv.gz
104
+ *.tsv.gz
105
+ results/
106
+ output/
107
+ out/
108
+ .snakemake/
109
+ *.singularity
110
+ *.sif
111
+
112
+ # Misc
113
+ *.log
114
+ *.out
115
+ *.err
116
+ *.pid
117
+ *.tmp
118
+ *.temp
119
+ *.bak
120
+ *.orig
121
+ *.rej
122
+ *~
123
+
124
+ # Secrets
125
+ secrets.*
126
+ *.key
127
+ *.pem
128
+ .secret
129
+ .secret.*
130
+ session.sqlite
131
+
132
+ # Local/project dev data
133
+ .tmp_home/
134
+ tmp/
135
+ tmp*/
136
+ .local/
137
+ openapitools.json
138
+
139
+ # bijux-cli
140
+ comments.txt
141
+ artifacts/
142
+ artifacts
@@ -0,0 +1,129 @@
1
+ # Changelog
2
+
3
+ All notable changes to **Bijux CLI** are documented here.
4
+ This project adheres to [Semantic Versioning](https://semver.org) and the
5
+ [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) format.
6
+
7
+ ## [Unreleased]
8
+
9
+ ### Added
10
+
11
+ * (add new entries via Towncrier fragments in `changelog.d/`)
12
+
13
+ ### Changed
14
+
15
+ * (add here)
16
+
17
+ ### Fixed
18
+
19
+ * (add here)
20
+
21
+ ---
22
+
23
+ <!-- towncrier start -->
24
+
25
+ ## [0.1.0] – 2025-08-12
26
+
27
+ ### Added
28
+
29
+ * **Core runtime**
30
+
31
+ * Implemented Dependency Injection kernel, REPL shell, plugin loader, telemetry hooks, and shell completion (bash/zsh/fish).
32
+ * Added core modules: `api`, `cli`, `httpapi`, `core/{constants,context,di,engine,enums,exceptions,paths}`.
33
+
34
+ * **Contracts layer** (`contracts/`)
35
+
36
+ * Defined protocols for `audit`, `config`, `context`, `docs`, `doctor`, `emitter`, `history`,
37
+ `memory`, `observability`, `process`, `registry`, `retry`, `serializer`, `telemetry`.
38
+ * Added `py.typed` markers for downstream type checking.
39
+
40
+ * **Services layer**
41
+
42
+ * Implemented concrete services for `audit`, `config`, `docs`, `doctor`, `history`, `memory`.
43
+ * Built plugin subsystem: `plugins/{entrypoints,groups,hooks,registry}`.
44
+
45
+ * **Infra layer** (`infra/`)
46
+
47
+ * Implemented `emitter`, `observability`, `process`, `retry`, `serializer`, `telemetry`.
48
+
49
+ * **Command suite**
50
+
51
+ * Added top-level commands: `audit`, `docs`, `doctor`, `help`, `repl`, `sleep`, `status`, `version`.
52
+ * Added `config/` commands: `clear`, `export`, `get`, `list`, `load`, `reload`, `set`, `unset`, `service`.
53
+ * Added `dev/` commands: `di`, `list-plugins`, `service`.
54
+ * Added `history/` commands: `clear`, `service`.
55
+ * Added `memory/` commands: `clear`, `delete`, `get`, `list`, `set`, `service`.
56
+ * Added `plugins/` commands: `check`, `info`, `install`, `list`, `scaffold`, `uninstall`.
57
+
58
+ * **Structured output & flags**
59
+
60
+ * Added JSON/YAML output via `--format`, pretty printing, and deterministic global flag precedence ([ADR-0002](https://bijux.github.io/bijux-cli/ADR/0002-global-flags-precedence/)).
61
+
62
+ * **API contract validation & testing**
63
+
64
+ * Automated lint/validation of `api/*.yaml` with Prance, OpenAPI Spec Validator, Redocly, and OpenAPI Generator.
65
+ * Added **Schemathesis** contract testing against the running server.
66
+ * Pinned OpenAPI Generator CLI version via `OPENAPI_GENERATOR_VERSION` and automated Node.js toolchain setup in Makefile.
67
+
68
+ * **Documentation tooling**
69
+
70
+ * Integrated MkDocs (Material), mkdocstrings, literate-nav, and ADR index generation.
71
+
72
+ * **Quality & security pipeline**
73
+
74
+ * Added formatting/linting: `ruff` (+format).
75
+ * Added typing: `mypy`, `pyright`, `pytype`.
76
+ * Added docs style/coverage: `pydocstyle`, `interrogate`.
77
+ * Added code health: `vulture`, `deptry`, `radon`, `codespell`, `reuse`.
78
+ * Added security: `bandit`, `pip-audit`.
79
+ * Added mutation testing: `mutmut`, `cosmic-ray`.
80
+
81
+ * **SBOM**
82
+
83
+ * Generated CycloneDX JSON for prod/dev dependencies via `make sbom` (uses `pip-audit`).
84
+
85
+ * **Citation**
86
+
87
+ * Validated `CITATION.cff` and added export to BibTeX/RIS/EndNote formats via `make citation`.
88
+
89
+ * **Makefile architecture**
90
+
91
+ * Modularized the Makefile into `makefiles/*.mk` for maintainability and clear separation of concerns.
92
+ * Centralized all developer workflows (`test`, `lint`, `quality`, `security`, `api`, `docs`, `build`, `sbom`, `citation`, `changelog`, `publish`) in one consistent interface.
93
+ * Added `bootstrap` target for idempotent virtualenv setup and Git hook installation from `scripts/git-hooks` (skips re-installation if already linked).
94
+ * Added `all-parallel` target to run independent checks (`quality`, `security`, `api`, `docs`) concurrently for faster CI/CD.
95
+ * Added `make help` for self-documenting targets with grouped sections.
96
+ * Provided helper macros (`run_tool`, `read_pyproject_version`) to standardize tooling invocation.
97
+
98
+ * **pre-commit**
99
+
100
+ * Added hygiene hooks: `ruff-format` + `ruff`, `mdformat`, and `codespell`.
101
+ * Enforced Conventional Commits via **commitizen** `commit-msg` hook.
102
+
103
+ * **tox orchestration**
104
+
105
+ * Configured multi-Python test envs (`py311`, `py312`, `py313`).
106
+ * Mapped Makefile workflows into tox envs (`lint`, `quality`, `security`, `api`, `docs`, `build`, `sbom`, `changelog`, `citation`) to ensure reproducibility.
107
+ * Passed `MAKEFLAGS` to execute Makefile targets inside tox-managed virtualenvs.
108
+
109
+ * **Continuous Integration**
110
+
111
+ * Added **GitHub Actions** workflow running tox across Python versions with Node.js 20 and Java 17 for API checks.
112
+ * Added **GitLab CI** sample mirroring the GitHub workflow (tox-driven) with artifacts for coverage and API logs.
113
+ * CI/CD pipelines directly leverage the modularized Makefile for consistent local/CI behavior.
114
+
115
+ * **Packaging / PyPI page**
116
+
117
+ * Built dynamic long description via **hatch-fancy-pypi-readme** from **README.md** and **CHANGELOG.md** for PyPI/TestPyPI.
118
+ * Packaged with `LICENSES/`, `REUSE.toml`, `CITATION.cff`, and `py.typed` included in source distributions.
119
+
120
+ ### Changed
121
+
122
+ * Released initial public version.
123
+
124
+ ### Fixed
125
+
126
+ * None
127
+
128
+ [Unreleased]: https://github.com/bijux/bijux-cli/compare/v0.1.0...HEAD
129
+ [0.1.0]: https://github.com/bijux/bijux-cli/releases/tag/v0.1.0
@@ -0,0 +1,23 @@
1
+ cff-version: 1.2.0
2
+ message: "If you use this software, please cite it as:"
3
+ title: "bijux-cli"
4
+ version: "0.1.0"
5
+ date-released: 2025-08-11
6
+ authors:
7
+ - family-names: "Mousavi"
8
+ given-names: "Bijan"
9
+ orcid: "https://orcid.org/0009-0002-4092-2854"
10
+ repository-code: "https://github.com/bijux/bijux-cli"
11
+ url: "https://github.com/bijux/bijux-cli"
12
+ license: "MIT"
13
+ keywords: ["cli", "developer-tools", "plugins"]
14
+ preferred-citation:
15
+ type: software
16
+ title: "bijux-cli"
17
+ version: "0.1.0"
18
+ authors:
19
+ - family-names: "Mousavi"
20
+ given-names: "Bijan"
21
+ year: 2025
22
+ month: 8
23
+ url: "https://github.com/bijux/bijux-cli"
@@ -0,0 +1,121 @@
1
+ Creative Commons Legal Code
2
+
3
+ CC0 1.0 Universal
4
+
5
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
6
+ LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
7
+ ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
8
+ INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
9
+ REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
10
+ PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
11
+ THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
12
+ HEREUNDER.
13
+
14
+ Statement of Purpose
15
+
16
+ The laws of most jurisdictions throughout the world automatically confer
17
+ exclusive Copyright and Related Rights (defined below) upon the creator
18
+ and subsequent owner(s) (each and all, an "owner") of an original work of
19
+ authorship and/or a database (each, a "Work").
20
+
21
+ Certain owners wish to permanently relinquish those rights to a Work for
22
+ the purpose of contributing to a commons of creative, cultural and
23
+ scientific works ("Commons") that the public can reliably and without fear
24
+ of later claims of infringement build upon, modify, incorporate in other
25
+ works, reuse and redistribute as freely as possible in any form whatsoever
26
+ and for any purposes, including without limitation commercial purposes.
27
+ These owners may contribute to the Commons to promote the ideal of a free
28
+ culture and the further production of creative, cultural and scientific
29
+ works, or to gain reputation or greater distribution for their Work in
30
+ part through the use and efforts of others.
31
+
32
+ For these and/or other purposes and motivations, and without any
33
+ expectation of additional consideration or compensation, the person
34
+ associating CC0 with a Work (the "Affirmer"), to the extent that he or she
35
+ is an owner of Copyright and Related Rights in the Work, voluntarily
36
+ elects to apply CC0 to the Work and publicly distribute the Work under its
37
+ terms, with knowledge of his or her Copyright and Related Rights in the
38
+ Work and the meaning and intended legal effect of CC0 on those rights.
39
+
40
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
41
+ protected by copyright and related or neighboring rights ("Copyright and
42
+ Related Rights"). Copyright and Related Rights include, but are not
43
+ limited to, the following:
44
+
45
+ i. the right to reproduce, adapt, distribute, perform, display,
46
+ communicate, and translate a Work;
47
+ ii. moral rights retained by the original author(s) and/or performer(s);
48
+ iii. publicity and privacy rights pertaining to a person's image or
49
+ likeness depicted in a Work;
50
+ iv. rights protecting against unfair competition in regards to a Work,
51
+ subject to the limitations in paragraph 4(a), below;
52
+ v. rights protecting the extraction, dissemination, use and reuse of data
53
+ in a Work;
54
+ vi. database rights (such as those arising under Directive 96/9/EC of the
55
+ European Parliament and of the Council of 11 March 1996 on the legal
56
+ protection of databases, and under any national implementation
57
+ thereof, including any amended or successor version of such
58
+ directive); and
59
+ vii. other similar, equivalent or corresponding rights throughout the
60
+ world based on applicable law or treaty, and any national
61
+ implementations thereof.
62
+
63
+ 2. Waiver. To the greatest extent permitted by, but not in contravention
64
+ of, applicable law, Affirmer hereby overtly, fully, permanently,
65
+ irrevocably and unconditionally waives, abandons, and surrenders all of
66
+ Affirmer's Copyright and Related Rights and associated claims and causes
67
+ of action, whether now known or unknown (including existing as well as
68
+ future claims and causes of action), in the Work (i) in all territories
69
+ worldwide, (ii) for the maximum duration provided by applicable law or
70
+ treaty (including future time extensions), (iii) in any current or future
71
+ medium and for any number of copies, and (iv) for any purpose whatsoever,
72
+ including without limitation commercial, advertising or promotional
73
+ purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
74
+ member of the public at large and to the detriment of Affirmer's heirs and
75
+ successors, fully intending that such Waiver shall not be subject to
76
+ revocation, rescission, cancellation, termination, or any other legal or
77
+ equitable action to disrupt the quiet enjoyment of the Work by the public
78
+ as contemplated by Affirmer's express Statement of Purpose.
79
+
80
+ 3. Public License Fallback. Should any part of the Waiver for any reason
81
+ be judged legally invalid or ineffective under applicable law, then the
82
+ Waiver shall be preserved to the maximum extent permitted taking into
83
+ account Affirmer's express Statement of Purpose. In addition, to the
84
+ extent the Waiver is so judged Affirmer hereby grants to each affected
85
+ person a royalty-free, non transferable, non sublicensable, non exclusive,
86
+ irrevocable and unconditional license to exercise Affirmer's Copyright and
87
+ Related Rights in the Work (i) in all territories worldwide, (ii) for the
88
+ maximum duration provided by applicable law or treaty (including future
89
+ time extensions), (iii) in any current or future medium and for any number
90
+ of copies, and (iv) for any purpose whatsoever, including without
91
+ limitation commercial, advertising or promotional purposes (the
92
+ "License"). The License shall be deemed effective as of the date CC0 was
93
+ applied by Affirmer to the Work. Should any part of the License for any
94
+ reason be judged legally invalid or ineffective under applicable law, such
95
+ partial invalidity or ineffectiveness shall not invalidate the remainder
96
+ of the License, and in such case Affirmer hereby affirms that he or she
97
+ will not (i) exercise any of his or her remaining Copyright and Related
98
+ Rights in the Work or (ii) assert any associated claims and causes of
99
+ action with respect to the Work, in either case contrary to Affirmer's
100
+ express Statement of Purpose.
101
+
102
+ 4. Limitations and Disclaimers.
103
+
104
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
105
+ surrendered, licensed or otherwise affected by this document.
106
+ b. Affirmer offers the Work as-is and makes no representations or
107
+ warranties of any kind concerning the Work, express, implied,
108
+ statutory or otherwise, including without limitation warranties of
109
+ title, merchantability, fitness for a particular purpose, non
110
+ infringement, or the absence of latent or other defects, accuracy, or
111
+ the present or absence of errors, whether or not discoverable, all to
112
+ the greatest extent permissible under applicable law.
113
+ c. Affirmer disclaims responsibility for clearing rights of other persons
114
+ that may apply to the Work or any use thereof, including without
115
+ limitation any person's Copyright and Related Rights in the Work.
116
+ Further, Affirmer disclaims responsibility for obtaining any necessary
117
+ consents, permissions or other rights required for any use of the
118
+ Work.
119
+ d. Affirmer understands and acknowledges that Creative Commons is not a
120
+ party to this document and has no duty or obligation with respect to
121
+ this CC0 or use of the Work.
@@ -0,0 +1,18 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Bijan Mousavi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
6
+ associated documentation files (the "Software"), to deal in the Software without restriction, including
7
+ without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
9
+ following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all copies or substantial
12
+ portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
15
+ LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
16
+ EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
18
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,297 @@
1
+ Metadata-Version: 2.4
2
+ Name: bijux-cli
3
+ Version: 0.1.0
4
+ Summary: Lean, plug-in-driven CLI kernel
5
+ Project-URL: Homepage, https://github.com/bijux/bijux-cli
6
+ Project-URL: Repository, https://github.com/bijux/bijux-cli.git
7
+ Project-URL: Bug Tracker, https://github.com/bijux/bijux-cli/issues
8
+ Project-URL: Documentation, https://bijux.github.io/bijux-cli/
9
+ Project-URL: Changelog, https://github.com/bijux/bijux-cli/releases
10
+ Author-email: Bijan Mousavi <mousavi.bijan@gmail.com>
11
+ License: MIT License
12
+
13
+ Copyright (c) 2025 Bijan Mousavi
14
+
15
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
16
+ associated documentation files (the "Software"), to deal in the Software without restriction, including
17
+ without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
+ copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
19
+ following conditions:
20
+
21
+ The above copyright notice and this permission notice shall be included in all copies or substantial
22
+ portions of the Software.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
25
+ LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
26
+ EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
27
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
28
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
29
+ Keywords: cli,developer-tools,plugins
30
+ Classifier: Development Status :: 3 - Alpha
31
+ Classifier: Environment :: Console
32
+ Classifier: Framework :: FastAPI
33
+ Classifier: Intended Audience :: Developers
34
+ Classifier: Intended Audience :: Science/Research
35
+ Classifier: License :: OSI Approved :: MIT License
36
+ Classifier: Operating System :: OS Independent
37
+ Classifier: Programming Language :: Python :: 3
38
+ Classifier: Programming Language :: Python :: 3 :: Only
39
+ Classifier: Programming Language :: Python :: 3.11
40
+ Classifier: Programming Language :: Python :: 3.12
41
+ Classifier: Programming Language :: Python :: 3.13
42
+ Classifier: Topic :: Software Development :: Libraries
43
+ Classifier: Topic :: Utilities
44
+ Classifier: Typing :: Typed
45
+ Requires-Python: >=3.11
46
+ Requires-Dist: click>=8.1.7
47
+ Requires-Dist: colorama>=0.4.6
48
+ Requires-Dist: cookiecutter>=2.3.0
49
+ Requires-Dist: cryptography>=44.0.1
50
+ Requires-Dist: fastapi<1.0,>=0.110
51
+ Requires-Dist: injector>=0.20.1
52
+ Requires-Dist: orjson>=3.9.0
53
+ Requires-Dist: packaging>=23.0
54
+ Requires-Dist: pluggy>=1.0.0
55
+ Requires-Dist: prompt-toolkit>=3.0.0
56
+ Requires-Dist: psutil>=6.0.0
57
+ Requires-Dist: pydantic-settings~=2.0
58
+ Requires-Dist: pydantic<3.0,>=2.9.2
59
+ Requires-Dist: pyyaml>=6.0.2
60
+ Requires-Dist: rapidfuzz>=3.0.0
61
+ Requires-Dist: structlog>=24.4.0
62
+ Requires-Dist: typer>=0.12.5
63
+ Provides-Extra: dev
64
+ Requires-Dist: anyio<5.0,>=4.4.0; extra == 'dev'
65
+ Requires-Dist: bandit<2.0,>=1.7.10; extra == 'dev'
66
+ Requires-Dist: black<26.0,>=25.1.0; extra == 'dev'
67
+ Requires-Dist: build<2.0,>=1.0.3; extra == 'dev'
68
+ Requires-Dist: codespell<3.0,>=2.3.0; extra == 'dev'
69
+ Requires-Dist: commitizen<4.0,>=3.21.0; extra == 'dev'
70
+ Requires-Dist: cosmic-ray>=4.0.0; extra == 'dev'
71
+ Requires-Dist: deptry<1.0,>=0.10.0; extra == 'dev'
72
+ Requires-Dist: hypothesis-jsonschema<1.0,>=0.23.0; extra == 'dev'
73
+ Requires-Dist: hypothesis<7.0,>=6.103.0; extra == 'dev'
74
+ Requires-Dist: interrogate<2.0,>=1.7.0; extra == 'dev'
75
+ Requires-Dist: isort<6.0,>=5.11.0; extra == 'dev'
76
+ Requires-Dist: mkdocs-gen-files; extra == 'dev'
77
+ Requires-Dist: mkdocs-git-revision-date-localized-plugin<2.0,>=1.2.0; extra == 'dev'
78
+ Requires-Dist: mkdocs-include-markdown-plugin; extra == 'dev'
79
+ Requires-Dist: mkdocs-literate-nav; extra == 'dev'
80
+ Requires-Dist: mkdocs-material<10.0,>=9.5.39; extra == 'dev'
81
+ Requires-Dist: mkdocs-redirects<2.0,>=1.2; extra == 'dev'
82
+ Requires-Dist: mkdocs<2.0,>=1.6.1; extra == 'dev'
83
+ Requires-Dist: mkdocstrings[python]<1.0,>=0.26.1; extra == 'dev'
84
+ Requires-Dist: mutmut<3.0,>=2.1.0; extra == 'dev'
85
+ Requires-Dist: mypy<2.0,>=1.11.2; extra == 'dev'
86
+ Requires-Dist: openapi-spec-validator<1.0,>=0.7.1; extra == 'dev'
87
+ Requires-Dist: pexpect<5.0,>=4.8.0; extra == 'dev'
88
+ Requires-Dist: pip-audit<3.0,>=2.7.3; extra == 'dev'
89
+ Requires-Dist: prance<1.0,>=0.22.0; extra == 'dev'
90
+ Requires-Dist: pre-commit<4.0,>=3.8.0; extra == 'dev'
91
+ Requires-Dist: pydocstyle<7.0,>=6.2.1; extra == 'dev'
92
+ Requires-Dist: pyright<2.0,>=1.1.320; extra == 'dev'
93
+ Requires-Dist: pytest-asyncio<2.0,>=1.0.0; extra == 'dev'
94
+ Requires-Dist: pytest-benchmark<5.0,>=4.0.0; extra == 'dev'
95
+ Requires-Dist: pytest-cov<7.0,>=6.2.1; extra == 'dev'
96
+ Requires-Dist: pytest-rerunfailures<14.0,>=13.0; extra == 'dev'
97
+ Requires-Dist: pytest-timeout<3.0,>=2.4.0; extra == 'dev'
98
+ Requires-Dist: pytest<9.0,>=8.4.1; extra == 'dev'
99
+ Requires-Dist: pytype>=2024.10.11; extra == 'dev'
100
+ Requires-Dist: radon<6.0,>=5.1.0; extra == 'dev'
101
+ Requires-Dist: reuse<6.0.0,>=4.0.0; extra == 'dev'
102
+ Requires-Dist: ruff<1.0,>=0.6.8; extra == 'dev'
103
+ Requires-Dist: schemathesis<4.0,>=3.16.0; extra == 'dev'
104
+ Requires-Dist: towncrier<25.0,>=23.0; extra == 'dev'
105
+ Requires-Dist: twine<7.0,>=6.1.0; extra == 'dev'
106
+ Requires-Dist: types-colorama<1.0,>=0.0.14; extra == 'dev'
107
+ Requires-Dist: types-orjson<4.0,>=3.6.0; extra == 'dev'
108
+ Requires-Dist: types-psutil<7.0,>=6.0.0; extra == 'dev'
109
+ Requires-Dist: types-pyyaml<7.0,>=6.0.12; extra == 'dev'
110
+ Requires-Dist: typing-extensions<5.0,>=4.5.0; extra == 'dev'
111
+ Requires-Dist: uvicorn<1.0,>=0.30.1; extra == 'dev'
112
+ Requires-Dist: vulture<3.0,>=2.7; extra == 'dev'
113
+ Description-Content-Type: text/markdown
114
+
115
+ # Bijux CLI
116
+
117
+ **A modern, predictable, and extensible CLI framework** — with strict runtime contracts, a first-class plugin system, structured output, and built-in diagnostics.
118
+
119
+ ---
120
+
121
+ ## Features at a Glance
122
+
123
+ * **Plugin-driven architecture** – add/override behavior without touching core.
124
+ * **Deterministic global flags** – strict precedence for consistent behavior
125
+ *(see ADR: Global Flags Precedence)*.
126
+ * **Dependency-Injection kernel** – decoupled services, easy to test.
127
+ * **Interactive REPL** – persistent shell for exploration and debugging.
128
+ * **Structured output** – JSON/YAML with pretty/compact controls.
129
+ * **Diagnostics** – environment checks, DI graph inspection, plugin validation.
130
+
131
+ ---
132
+
133
+ ## Installation
134
+
135
+ **Requires Python 3.11+**
136
+
137
+ ```bash
138
+ # Recommended: isolated CLI install
139
+ pipx install bijux-cli
140
+
141
+ # Or via pip
142
+ pip install bijux-cli
143
+ ```
144
+
145
+ ---
146
+
147
+ ## Quick Start
148
+
149
+ ```bash
150
+ # See commands and global flags
151
+ bijux --help
152
+
153
+ # Run environment diagnostics
154
+ bijux doctor
155
+
156
+ # Start the interactive shell
157
+ bijux
158
+ bijux> help
159
+ bijux> exit
160
+ ```
161
+
162
+ ---
163
+
164
+ ## Usage Examples
165
+
166
+ ### Structured Output (JSON/YAML)
167
+
168
+ ```bash
169
+ # Compact JSON for scripting
170
+ bijux status -f json --no-pretty
171
+
172
+ # Pretty JSON for humans
173
+ bijux status -f json --pretty
174
+
175
+ # YAML
176
+ bijux status -f yaml
177
+ ```
178
+
179
+ ### DI & Developer Introspection
180
+
181
+ ```bash
182
+ # Inspect DI registrations
183
+ bijux dev di -f json | jq
184
+
185
+ # List loaded plugins
186
+ bijux dev list-plugins
187
+ ```
188
+
189
+ ### Plugins
190
+
191
+ ```bash
192
+ # Scaffold, install, and validate a plugin
193
+ mkdir -p ./tmp_plugin && cd ./tmp_plugin
194
+ bijux plugins scaffold my_plugin --template=../plugin_template --force
195
+ cd ..
196
+ bijux plugins install ./tmp_plugin/my_plugin --force
197
+ bijux plugins check my_plugin
198
+ bijux plugins list
199
+ ```
200
+
201
+ ---
202
+
203
+ ## Global Flags (Precedence)
204
+
205
+ Higher priority wins and may short-circuit lower ones.
206
+
207
+ | Priority | Flag(s) | Effect |
208
+ |--------: |-----------------------------|-----------------------------------------------------------------------|
209
+ | 1 | `-h`, `--help` | Exit 0 immediately; ignore all other flags. |
210
+ | 2 | `-q`, `--quiet` | Suppress both stdout and stderr; exit code still reflects the result. |
211
+ | 3 | `-d`, `--debug` | Full diagnostics; implies `--verbose`, forces `--pretty`. |
212
+ | 4 | `-f, --format <json\|yaml>` | Choose structured output; invalid value → exit code `2`. |
213
+ | 5 | `--pretty`/`--no-pretty` | Control indentation (default: `--pretty`). |
214
+ | 6 | `-v`, `--verbose` | Add runtime metadata; implied by `--debug`. |
215
+
216
+ *Reference:* ADR-0002 Global Flags Precedence
217
+ [https://bijux.github.io/bijux-cli/ADR/0002-global-flags-precedence/](https://bijux.github.io/bijux-cli/ADR/0002-global-flags-precedence/)
218
+
219
+ ---
220
+
221
+ ## Built-in Commands
222
+
223
+ | Command | Purpose | Example |
224
+ |-----------|--------------------------------|-----------------------------------|
225
+ | `doctor` | Environment health check | `bijux doctor` |
226
+ | `status` | Show CLI status | `bijux status -f json` |
227
+ | `repl` | Interactive shell | `bijux repl` |
228
+ | `plugins` | Manage plugins | `bijux plugins list` |
229
+ | `config` | Manage key-value settings | `bijux config set core_timeout=5` |
230
+ | `history` | REPL history operations | `bijux history --limit 10` |
231
+ | `audit` | Security/compliance audit | `bijux audit --dry-run` |
232
+ | `docs` | Docs/spec generation utilities | `bijux docs --out spec.json` |
233
+ | `dev` | Developer tools (DI, plugins) | `bijux dev di` |
234
+ | `sleep` | Pause execution | `bijux sleep -s 5` |
235
+ | `version` | Display version info | `bijux version` |
236
+
237
+ Plugins are surfaced as top-level commands once installed.
238
+
239
+ ---
240
+
241
+ ## Shell Completion
242
+
243
+ Enable tab completion (no sudo required):
244
+
245
+ ```bash
246
+ # Install completion (zsh saves to ~/.zfunc)
247
+ bijux --install-completion
248
+
249
+ # Or print the script if you manage completions manually
250
+ bijux --show-completion
251
+ ```
252
+
253
+ Restart your shell afterward. For zsh, ensure `compinit` runs and your `fpath` includes the completions' directory.
254
+
255
+ ---
256
+
257
+ ## Configuration & Paths
258
+
259
+ **Defaults** (overridable via env vars):
260
+
261
+ * Config: `~/.bijux/.env` → `BIJUXCLI_CONFIG`
262
+ * History: `~/.bijux/.history` → `BIJUXCLI_HISTORY_FILE`
263
+ * Plugins: `~/.bijux/.plugins` → `BIJUXCLI_PLUGINS_DIR`
264
+
265
+ **Resolution order:** CLI flags → Environment → Config file → Defaults
266
+
267
+ Example override:
268
+
269
+ ```bash
270
+ export BIJUXCLI_PLUGINS_DIR=./.plugins
271
+ export BIJUXCLI_CONFIG=./.env
272
+ export BIJUXCLI_HISTORY_FILE=./.history
273
+ ```
274
+
275
+ ---
276
+
277
+ ## Documentation
278
+
279
+ * **User Guide:** [https://bijux.github.io/bijux-cli/usage/](https://bijux.github.io/bijux-cli/usage/)
280
+ * **Contributing:** [https://bijux.github.io/bijux-cli/contributing/](https://bijux.github.io/bijux-cli/contributing/)
281
+ * **Security Policy:** [https://bijux.github.io/bijux-cli/security/](https://bijux.github.io/bijux-cli/security/)
282
+ * **Code of Conduct:** [https://bijux.github.io/bijux-cli/code\_of\_conduct/](https://bijux.github.io/bijux-cli/code_of_conduct/)
283
+
284
+ ---
285
+
286
+ ## Support & Security
287
+
288
+ * **Issues:** please include `--debug` output where feasible.
289
+ * **Vulnerabilities:** report privately via GitHub Security Advisory.
290
+ [https://github.com/bijux/bijux-cli/security/advisories/new](https://github.com/bijux/bijux-cli/security/advisories/new)
291
+
292
+ ---
293
+
294
+ ## License
295
+
296
+ Released under the **MIT License**.
297
+ [https://bijux.github.io/bijux-cli/license/](https://bijux.github.io/bijux-cli/license/)
@@ -0,0 +1,183 @@
1
+ # Bijux CLI
2
+
3
+ **A modern, predictable, and extensible CLI framework** — with strict runtime contracts, a first-class plugin system, structured output, and built-in diagnostics.
4
+
5
+ ---
6
+
7
+ ## Features at a Glance
8
+
9
+ * **Plugin-driven architecture** – add/override behavior without touching core.
10
+ * **Deterministic global flags** – strict precedence for consistent behavior
11
+ *(see ADR: Global Flags Precedence)*.
12
+ * **Dependency-Injection kernel** – decoupled services, easy to test.
13
+ * **Interactive REPL** – persistent shell for exploration and debugging.
14
+ * **Structured output** – JSON/YAML with pretty/compact controls.
15
+ * **Diagnostics** – environment checks, DI graph inspection, plugin validation.
16
+
17
+ ---
18
+
19
+ ## Installation
20
+
21
+ **Requires Python 3.11+**
22
+
23
+ ```bash
24
+ # Recommended: isolated CLI install
25
+ pipx install bijux-cli
26
+
27
+ # Or via pip
28
+ pip install bijux-cli
29
+ ```
30
+
31
+ ---
32
+
33
+ ## Quick Start
34
+
35
+ ```bash
36
+ # See commands and global flags
37
+ bijux --help
38
+
39
+ # Run environment diagnostics
40
+ bijux doctor
41
+
42
+ # Start the interactive shell
43
+ bijux
44
+ bijux> help
45
+ bijux> exit
46
+ ```
47
+
48
+ ---
49
+
50
+ ## Usage Examples
51
+
52
+ ### Structured Output (JSON/YAML)
53
+
54
+ ```bash
55
+ # Compact JSON for scripting
56
+ bijux status -f json --no-pretty
57
+
58
+ # Pretty JSON for humans
59
+ bijux status -f json --pretty
60
+
61
+ # YAML
62
+ bijux status -f yaml
63
+ ```
64
+
65
+ ### DI & Developer Introspection
66
+
67
+ ```bash
68
+ # Inspect DI registrations
69
+ bijux dev di -f json | jq
70
+
71
+ # List loaded plugins
72
+ bijux dev list-plugins
73
+ ```
74
+
75
+ ### Plugins
76
+
77
+ ```bash
78
+ # Scaffold, install, and validate a plugin
79
+ mkdir -p ./tmp_plugin && cd ./tmp_plugin
80
+ bijux plugins scaffold my_plugin --template=../plugin_template --force
81
+ cd ..
82
+ bijux plugins install ./tmp_plugin/my_plugin --force
83
+ bijux plugins check my_plugin
84
+ bijux plugins list
85
+ ```
86
+
87
+ ---
88
+
89
+ ## Global Flags (Precedence)
90
+
91
+ Higher priority wins and may short-circuit lower ones.
92
+
93
+ | Priority | Flag(s) | Effect |
94
+ |--------: |-----------------------------|-----------------------------------------------------------------------|
95
+ | 1 | `-h`, `--help` | Exit 0 immediately; ignore all other flags. |
96
+ | 2 | `-q`, `--quiet` | Suppress both stdout and stderr; exit code still reflects the result. |
97
+ | 3 | `-d`, `--debug` | Full diagnostics; implies `--verbose`, forces `--pretty`. |
98
+ | 4 | `-f, --format <json\|yaml>` | Choose structured output; invalid value → exit code `2`. |
99
+ | 5 | `--pretty`/`--no-pretty` | Control indentation (default: `--pretty`). |
100
+ | 6 | `-v`, `--verbose` | Add runtime metadata; implied by `--debug`. |
101
+
102
+ *Reference:* ADR-0002 Global Flags Precedence
103
+ [https://bijux.github.io/bijux-cli/ADR/0002-global-flags-precedence/](https://bijux.github.io/bijux-cli/ADR/0002-global-flags-precedence/)
104
+
105
+ ---
106
+
107
+ ## Built-in Commands
108
+
109
+ | Command | Purpose | Example |
110
+ |-----------|--------------------------------|-----------------------------------|
111
+ | `doctor` | Environment health check | `bijux doctor` |
112
+ | `status` | Show CLI status | `bijux status -f json` |
113
+ | `repl` | Interactive shell | `bijux repl` |
114
+ | `plugins` | Manage plugins | `bijux plugins list` |
115
+ | `config` | Manage key-value settings | `bijux config set core_timeout=5` |
116
+ | `history` | REPL history operations | `bijux history --limit 10` |
117
+ | `audit` | Security/compliance audit | `bijux audit --dry-run` |
118
+ | `docs` | Docs/spec generation utilities | `bijux docs --out spec.json` |
119
+ | `dev` | Developer tools (DI, plugins) | `bijux dev di` |
120
+ | `sleep` | Pause execution | `bijux sleep -s 5` |
121
+ | `version` | Display version info | `bijux version` |
122
+
123
+ Plugins are surfaced as top-level commands once installed.
124
+
125
+ ---
126
+
127
+ ## Shell Completion
128
+
129
+ Enable tab completion (no sudo required):
130
+
131
+ ```bash
132
+ # Install completion (zsh saves to ~/.zfunc)
133
+ bijux --install-completion
134
+
135
+ # Or print the script if you manage completions manually
136
+ bijux --show-completion
137
+ ```
138
+
139
+ Restart your shell afterward. For zsh, ensure `compinit` runs and your `fpath` includes the completions' directory.
140
+
141
+ ---
142
+
143
+ ## Configuration & Paths
144
+
145
+ **Defaults** (overridable via env vars):
146
+
147
+ * Config: `~/.bijux/.env` → `BIJUXCLI_CONFIG`
148
+ * History: `~/.bijux/.history` → `BIJUXCLI_HISTORY_FILE`
149
+ * Plugins: `~/.bijux/.plugins` → `BIJUXCLI_PLUGINS_DIR`
150
+
151
+ **Resolution order:** CLI flags → Environment → Config file → Defaults
152
+
153
+ Example override:
154
+
155
+ ```bash
156
+ export BIJUXCLI_PLUGINS_DIR=./.plugins
157
+ export BIJUXCLI_CONFIG=./.env
158
+ export BIJUXCLI_HISTORY_FILE=./.history
159
+ ```
160
+
161
+ ---
162
+
163
+ ## Documentation
164
+
165
+ * **User Guide:** [https://bijux.github.io/bijux-cli/usage/](https://bijux.github.io/bijux-cli/usage/)
166
+ * **Contributing:** [https://bijux.github.io/bijux-cli/contributing/](https://bijux.github.io/bijux-cli/contributing/)
167
+ * **Security Policy:** [https://bijux.github.io/bijux-cli/security/](https://bijux.github.io/bijux-cli/security/)
168
+ * **Code of Conduct:** [https://bijux.github.io/bijux-cli/code\_of\_conduct/](https://bijux.github.io/bijux-cli/code_of_conduct/)
169
+
170
+ ---
171
+
172
+ ## Support & Security
173
+
174
+ * **Issues:** please include `--debug` output where feasible.
175
+ * **Vulnerabilities:** report privately via GitHub Security Advisory.
176
+ [https://github.com/bijux/bijux-cli/security/advisories/new](https://github.com/bijux/bijux-cli/security/advisories/new)
177
+
178
+ ---
179
+
180
+ ## License
181
+
182
+ Released under the **MIT License**.
183
+ [https://bijux.github.io/bijux-cli/license/](https://bijux.github.io/bijux-cli/license/)
@@ -0,0 +1,35 @@
1
+ version = 1
2
+
3
+ # Config/docs/assets: public domain
4
+ [[annotations]]
5
+ path = [
6
+ "**/*.png", "**/*.svg", "**/*.ico", "**/*.gif", "**/*.jpg", "**/*.jpeg",
7
+ "**/*.html", "**/*.toml", "**/*.ini", "**/*.cfg", "**/*.conf",
8
+ "**/*.env", "**/*.env.*", "**/*.yaml", "**/*.yml", "**/*.json",
9
+ "**/*.cff", "**/*.dic", ".coverage*", ".gitattributes", ".gitignore",
10
+ "changelog.d/**", "**/.editorconfig", "artifacts/**", "scripts/git-hooks/**"
11
+ ]
12
+ precedence = "override"
13
+ SPDX-License-Identifier = "CC0-1.0"
14
+ SPDX-FileCopyrightText = "© 2025 Bijan Mousavi"
15
+
16
+ # Templates: public domain
17
+ [[annotations]]
18
+ path = ["plugin_template/**"]
19
+ precedence = "override"
20
+ SPDX-License-Identifier = "CC0-1.0"
21
+ SPDX-FileCopyrightText = "© 2025 Bijan Mousavi"
22
+
23
+ # Code: MIT
24
+ [[annotations]]
25
+ path = ["**/*.py", "**/*.pyi", "**/*.sh", "**/*.mk", "Makefile", "Dockerfile", "Dockerfile.*"]
26
+ precedence = "closest"
27
+ SPDX-License-Identifier = "MIT"
28
+ SPDX-FileCopyrightText = "© 2025 Bijan Mousavi"
29
+
30
+ # Markdown docs: MIT
31
+ [[annotations]]
32
+ path = ["**/*.md"]
33
+ precedence = "closest"
34
+ SPDX-License-Identifier = "MIT"
35
+ SPDX-FileCopyrightText = "© 2025 Bijan Mousavi"
@@ -0,0 +1,23 @@
1
+ # Project Configuration
2
+
3
+ This directory contains all configuration files for **`bijux-cli`** development and quality assurance.
4
+ It is the **single source of truth** for code formatting, linting, type checking, testing, and security rules — ensuring every contributor works in a **predictable, consistent** environment.
5
+
6
+ Centralizing these configurations ensures:
7
+
8
+ * **One place** to update standards
9
+ * **Identical behavior** across local and CI builds
10
+
11
+ ---
12
+
13
+ ## Quick Reference
14
+
15
+ | File | Tool / Purpose |
16
+ |-----------------------------------|--------------------------------------------------------------------|
17
+ | **`bijux.dic`** | PyCharm / Codespell — custom dictionary for project-specific terms |
18
+ | **`cosmic-ray.toml`** | Cosmic Ray — mutation testing configuration |
19
+ | **`coveragerc.ini`** | Coverage.py — coverage measurement rules |
20
+ | **`mypy.ini`** | Mypy — strict static type checking |
21
+ | **`pyrightconfig.json`** | Pyright — fast static type analysis |
22
+ | **`ruff.toml`** | Ruff — linting, formatting, and isort rules |
23
+
@@ -0,0 +1,63 @@
1
+ # {{cookiecutter.project\_name}}
2
+
3
+ A starter template for building **Bijux CLI** plugins—clean, typed, and ready to ship.
4
+
5
+ ---
6
+
7
+ ## Quick start
8
+
9
+ ```bash
10
+ # 1) Scaffold from this template (run from your workspace)
11
+ mkdir -p ./tmp && cd ./tmp
12
+ bijux plugins scaffold my_plugin --template=../plugin_template --force
13
+
14
+ # 2) Install the new plugin (name inferred from folder basename)
15
+ cd ..
16
+ bijux plugins install ./tmp/my_plugin --force
17
+
18
+ # 3) Verify it’s healthy
19
+ bijux plugins check my_plugin
20
+ bijux plugins info my_plugin
21
+ bijux dev list-plugins
22
+ ```
23
+
24
+ Uninstall anytime:
25
+
26
+ ```bash
27
+ bijux plugins uninstall my_plugin
28
+ ```
29
+
30
+ ---
31
+
32
+ ## What you get
33
+
34
+ * **Zero-boilerplate setup** for a Bijux plugin.
35
+ * **Typed hooks** and a minimal command to extend the CLI.
36
+ * **Structured output** (JSON/YAML) consistent with core flags.
37
+ * Clear spots to add docs, tests, and CI later.
38
+
39
+ > Once installed, plugins appear as **top-level commands** (or can register hooks to extend existing behavior).
40
+
41
+ ---
42
+
43
+ ## Develop & iterate
44
+
45
+ During development, just reinstall over the existing copy:
46
+
47
+ ```bash
48
+ # Make changes to your plugin, then:
49
+ bijux plugins install ./tmp/my_plugin --force
50
+ bijux plugins check my_plugin
51
+ ```
52
+
53
+ Tip: keep your plugin under version control and add tests early.
54
+
55
+ ---
56
+
57
+ ## Need more?
58
+
59
+ * List all installed plugins: `bijux plugins list`
60
+ * Show details: `bijux plugins info <name|path>`
61
+ * Validate structure/signature: `bijux plugins check <name|path>`
62
+
63
+ Build well. Break nothing.
@@ -0,0 +1,216 @@
1
+ [build-system]
2
+ requires = [
3
+ "hatchling>=1.27.0,<1.28",
4
+ "hatch-fancy-pypi-readme>=24.2,<26.0",
5
+ ]
6
+ build-backend = "hatchling.build"
7
+
8
+ [project]
9
+ name = "bijux-cli"
10
+ version = "0.1.0"
11
+ description = "Lean, plug-in-driven CLI kernel"
12
+ readme = { file = "README.md", content-type = "text/markdown" }
13
+ requires-python = ">=3.11"
14
+ license = {file = "LICENSES/MIT.txt" }
15
+ authors = [{ name = "Bijan Mousavi", email = "mousavi.bijan@gmail.com" }]
16
+ keywords = ["cli", "developer-tools", "plugins"]
17
+ classifiers = [
18
+ "Development Status :: 3 - Alpha",
19
+ "Environment :: Console",
20
+ "Intended Audience :: Developers",
21
+ "Intended Audience :: Science/Research",
22
+ "License :: OSI Approved :: MIT License",
23
+ "Operating System :: OS Independent",
24
+ "Programming Language :: Python :: 3",
25
+ "Programming Language :: Python :: 3 :: Only",
26
+ "Programming Language :: Python :: 3.11",
27
+ "Programming Language :: Python :: 3.12",
28
+ "Programming Language :: Python :: 3.13",
29
+ "Topic :: Software Development :: Libraries",
30
+ "Topic :: Utilities",
31
+ "Framework :: FastAPI",
32
+ "Typing :: Typed",
33
+ ]
34
+
35
+ dependencies = [
36
+ "typer>=0.12.5",
37
+ "click>=8.1.7",
38
+ "pydantic>=2.9.2,<3.0",
39
+ "pydantic-settings~=2.0",
40
+ "packaging>=23.0",
41
+ "injector>=0.20.1",
42
+ "fastapi>=0.110,<1.0",
43
+ "orjson>=3.9.0",
44
+ "pyyaml>=6.0.2",
45
+ "cookiecutter>=2.3.0",
46
+ "cryptography>=44.0.1",
47
+ "psutil>=6.0.0",
48
+ "rapidfuzz>=3.0.0",
49
+ "prompt_toolkit>=3.0.0",
50
+ "structlog>=24.4.0",
51
+ "colorama>=0.4.6",
52
+ "pluggy>=1.0.0",
53
+ ]
54
+
55
+ [project.optional-dependencies]
56
+ dev = [
57
+ "types-PyYAML>=6.0.12,<7.0",
58
+ "types-orjson>=3.6.0,<4.0",
59
+ "types-colorama>=0.0.14,<1.0",
60
+ "types-psutil>=6.0.0,<7.0",
61
+ "typing-extensions>=4.5.0,<5.0",
62
+
63
+ "pytest>=8.4.1,<9.0",
64
+ "pytest-cov>=6.2.1,<7.0",
65
+ "pytest-asyncio>=1.0.0,<2.0",
66
+ "pytest-timeout>=2.4.0,<3.0",
67
+ "pytest-rerunfailures>=13.0,<14.0",
68
+ "pytest-benchmark>=4.0.0,<5.0",
69
+ "hypothesis>=6.103.0,<7.0",
70
+ "hypothesis-jsonschema>=0.23.0,<1.0",
71
+ "pexpect>=4.8.0,<5.0",
72
+
73
+ "black>=25.1.0,<26.0",
74
+ "isort>=5.11.0,<6.0",
75
+ "ruff>=0.6.8,<1.0",
76
+ "mypy>=1.11.2,<2.0",
77
+ "pytype>=2024.10.11",
78
+ "codespell>=2.3.0,<3.0",
79
+ "pyright>=1.1.320,<2.0",
80
+ "pydocstyle>=6.2.1,<7.0",
81
+ "radon>=5.1.0,<6.0",
82
+
83
+ "vulture>=2.7,<3.0",
84
+ "deptry>=0.10.0,<1.0",
85
+ "reuse>=4.0.0,<6.0.0",
86
+
87
+ "build>=1.0.3,<2.0",
88
+ "bandit>=1.7.10,<2.0",
89
+ "pip-audit>=2.7.3,<3.0",
90
+ "commitizen>=3.21.0,<4.0",
91
+
92
+ "interrogate>=1.7.0,<2.0",
93
+ "mkdocs>=1.6.1,<2.0",
94
+ "mkdocs-material>=9.5.39,<10.0",
95
+ "mkdocstrings[python]>=0.26.1,<1.0",
96
+ "mkdocs-git-revision-date-localized-plugin>=1.2.0,<2.0",
97
+ "mkdocs-include-markdown-plugin",
98
+ "mkdocs-gen-files",
99
+ "mkdocs-literate-nav",
100
+ "mkdocs-redirects>=1.2,<2.0",
101
+
102
+ "prance>=0.22.0,<1.0",
103
+ "openapi-spec-validator>=0.7.1,<1.0",
104
+ "schemathesis>=3.16.0,<4.0",
105
+ "anyio>=4.4.0,<5.0",
106
+ "uvicorn>=0.30.1,<1.0",
107
+
108
+ "pre-commit>=3.8.0,<4.0",
109
+ "twine>=6.1.0,<7.0",
110
+ "towncrier>=23.0,<25.0",
111
+
112
+ "mutmut>=2.1.0,<3.0",
113
+ "cosmic-ray>=4.0.0",
114
+ ]
115
+
116
+ [project.scripts]
117
+ bijux = "bijux_cli.__main__:main"
118
+
119
+ [project.urls]
120
+ "Homepage" = "https://github.com/bijux/bijux-cli"
121
+ "Repository" = "https://github.com/bijux/bijux-cli.git"
122
+ "Bug Tracker" = "https://github.com/bijux/bijux-cli/issues"
123
+ "Documentation" = "https://bijux.github.io/bijux-cli/"
124
+ "Changelog" = "https://github.com/bijux/bijux-cli/releases"
125
+
126
+ # bijux start
127
+ [tool.bijux]
128
+ api_version = "0.1.0"
129
+ # bijux end
130
+
131
+ # hatch start
132
+ [tool.hatch.build]
133
+ include = [
134
+ "README.md",
135
+ "CHANGELOG.md",
136
+ "LICENSE",
137
+ "LICENSES/**",
138
+ "REUSE.toml",
139
+ "CITATION.cff",
140
+ "src/bijux_cli/py.typed",
141
+ ]
142
+
143
+ [tool.hatch.build.targets.wheel]
144
+ packages = ["src/bijux_cli"]
145
+ zip-safe = false
146
+ include = ["/bijux_cli"]
147
+
148
+ [tool.hatch.metadata.hooks.fancy-pypi-readme]
149
+ content-type = "text/markdown"
150
+ fragments = [
151
+ { path = "README.md" },
152
+ { path = "CHANGELOG.md" },
153
+ ]
154
+ # hatch end
155
+
156
+ # deptry start
157
+ [tool.deptry]
158
+ ignore = ["DEP002", "DEP003"]
159
+ # deptry end
160
+
161
+ # interrogate start
162
+ [tool.interrogate]
163
+ fail-under = 98
164
+ exclude = ["src/bijux_cli/core/di.py"]
165
+ color = true
166
+ # interrogate end
167
+
168
+ # commitizen start
169
+ [tool.commitizen]
170
+ name = "cz_conventional_commits"
171
+ version = ["pyproject.toml:project.version"]
172
+ tag_format = "v$version"
173
+ update_changelog_on_bump = false
174
+ version_files = ["pyproject.toml:project.version"]
175
+ # commitizen end
176
+
177
+ # towncrier start
178
+ [tool.towncrier]
179
+ filename = "CHANGELOG.md"
180
+ directory = "changelog.d"
181
+ title_format = "## [{version}] – {project_date}"
182
+ issue_format = "[#{issue}](https://github.com/bijux/bijux-cli/issues/{issue})"
183
+ start_string = "<!-- towncrier start -->"
184
+ all_bullets = true
185
+ single_file = true
186
+
187
+ [[tool.towncrier.type]]
188
+ directory = "feature"
189
+ name = "New Features"
190
+ showcontent = true
191
+
192
+ [[tool.towncrier.type]]
193
+ directory = "bugfix"
194
+ name = "Bug Fixes"
195
+ showcontent = true
196
+
197
+ [[tool.towncrier.type]]
198
+ directory = "docs"
199
+ name = "Documentation"
200
+ showcontent = true
201
+
202
+ [[tool.towncrier.type]]
203
+ directory = "refactor"
204
+ name = "Refactoring"
205
+ showcontent = true
206
+
207
+ [[tool.towncrier.type]]
208
+ directory = "chore"
209
+ name = "Miscellaneous Chores"
210
+ showcontent = true
211
+
212
+ [[tool.towncrier.type]]
213
+ directory = "trivial"
214
+ name = "Trivial"
215
+ showcontent = false
216
+ # towncrier end
@@ -0,0 +1,84 @@
1
+ # `scripts/`
2
+
3
+ A small collection of **purpose-built developer utilities** for code hygiene, documentation automation, and release workflow integration.
4
+
5
+ ## Contents
6
+
7
+ ### 1. **Comment Harvester** (`helper_comments.py`)
8
+
9
+ Scans a codebase for **all lines containing `#`** (including `# noqa`, `# type: ignore`, and TODO/FIXME notes).
10
+ Useful for:
11
+
12
+ * Building a **baseline** for linter/typing ignore rules.
13
+ * Periodic triage of technical debt and ignored checks.
14
+
15
+ **Example:**
16
+
17
+ ```bash
18
+ python scripts/helper_comments.py src -o comments.txt -e .py .pyi
19
+ ```
20
+
21
+ **Sample output:**
22
+
23
+ ```
24
+ src/example.py
25
+ 12: def foo(): # noqa: E999
26
+ 47: # TODO: refactor
27
+ ```
28
+
29
+ Notes:
30
+
31
+ * Any `#` is treated as a comment (including shebangs and inline hashes in strings).
32
+ * Skips unreadable files.
33
+ * Respects `--ext` filter.
34
+
35
+ ---
36
+
37
+ ### 2. **MkDocs API & Navigation Generator** (`helper_mkdocs.py`)
38
+
39
+ Generates **API reference pages** for all Python modules in `src/bijux_cli` and an auto-synced `nav.md` for [literate-nav](https://github.com/oprypin/mkdocs-literate-nav).
40
+
41
+ Integrated into `mkdocs.yml`:
42
+
43
+ ```yaml
44
+ plugins:
45
+ - gen-files:
46
+ scripts:
47
+ - scripts/helper_mkdocs.py
48
+ - literate-nav
49
+ - mkdocstrings
50
+ ```
51
+
52
+ Run locally:
53
+
54
+ ```bash
55
+ mkdocs serve # preview
56
+ mkdocs build # build static site
57
+ ```
58
+
59
+ ---
60
+
61
+ ### 3. **Commit Hook – Changelog Fragment Generator** (`git-hooks/prepare-commit-msg`)
62
+
63
+ A **Git `prepare-commit-msg` hook** that automatically creates a [Towncrier](https://towncrier.readthedocs.io/) changelog fragment when committing with a Conventional Commit message.
64
+
65
+ Example:
66
+
67
+ ```bash
68
+ feat(api): add streaming support
69
+ ```
70
+
71
+ Automatically produces:
72
+
73
+ ```
74
+ changelog.d/1691940245.feature.md
75
+ ```
76
+
77
+ ---
78
+
79
+ ## Workflow Philosophy
80
+
81
+ * **Automation first**: anything repetitive belongs in a script or hook.
82
+ * **Debt visibility**: helper comments are tracked, triaged, and expire.
83
+ * **Docs in sync**: API navigation is regenerated automatically at build time.
84
+ * **Release-ready commits**: hooks enforce fragment creation for changelog accuracy.
File without changes