sherma 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,32 @@
1
+ name: PR Checks
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [main]
6
+
7
+ jobs:
8
+ checks:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+
13
+ - uses: astral-sh/setup-uv@v5
14
+
15
+ - run: uv python install
16
+
17
+ - run: uv sync
18
+
19
+ - name: Lint
20
+ run: uv run ruff check .
21
+
22
+ - name: Format check
23
+ run: uv run ruff format --check .
24
+
25
+ - name: Type check
26
+ run: uv run pyright
27
+
28
+ - name: Unit tests
29
+ run: uv run pytest -m "not integration"
30
+
31
+ - name: Integration tests
32
+ run: uv run pytest -m "integration" --no-header -rN || test $? -eq 5
@@ -0,0 +1,78 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ jobs:
8
+ checks:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+
13
+ - uses: astral-sh/setup-uv@v5
14
+
15
+ - run: uv python install
16
+
17
+ - run: uv sync
18
+
19
+ - name: Lint
20
+ run: uv run ruff check .
21
+
22
+ - name: Format check
23
+ run: uv run ruff format --check .
24
+
25
+ - name: Type check
26
+ run: uv run pyright
27
+
28
+ - name: Unit tests
29
+ run: uv run pytest -m "not integration"
30
+
31
+ - name: Integration tests
32
+ run: uv run pytest -m "integration" --no-header -rN || test $? -eq 5
33
+
34
+ release:
35
+ needs: checks
36
+ runs-on: ubuntu-latest
37
+ environment: pypi
38
+ permissions:
39
+ contents: write
40
+ id-token: write
41
+ steps:
42
+ - uses: actions/checkout@v4
43
+ with:
44
+ fetch-depth: 0
45
+ token: ${{ secrets.GITHUB_TOKEN }}
46
+
47
+ - uses: astral-sh/setup-uv@v5
48
+
49
+ - run: uv python install
50
+
51
+ - run: uv sync
52
+
53
+ - name: Configure git for github-actions[bot]
54
+ run: |
55
+ git config user.name "github-actions[bot]"
56
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
57
+
58
+ - name: Bump version
59
+ id: bump
60
+ run: |
61
+ if uv run cz bump --yes --changelog; then
62
+ echo "bumped=true" >> "$GITHUB_OUTPUT"
63
+ else
64
+ echo "bumped=false" >> "$GITHUB_OUTPUT"
65
+ echo "No bumpable commits, skipping release"
66
+ fi
67
+
68
+ - name: Push version bump
69
+ if: steps.bump.outputs.bumped == 'true'
70
+ run: git push origin main --tags
71
+
72
+ - name: Build package
73
+ if: steps.bump.outputs.bumped == 'true'
74
+ run: uv build
75
+
76
+ - name: Publish to PyPI
77
+ if: steps.bump.outputs.bumped == 'true'
78
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,207 @@
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
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+ #poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ #pdm.lock
116
+ #pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ #pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # SageMath parsed files
135
+ *.sage.py
136
+
137
+ # Environments
138
+ .env
139
+ .envrc
140
+ .venv
141
+ env/
142
+ venv/
143
+ ENV/
144
+ env.bak/
145
+ venv.bak/
146
+
147
+ # Spyder project settings
148
+ .spyderproject
149
+ .spyproject
150
+
151
+ # Rope project settings
152
+ .ropeproject
153
+
154
+ # mkdocs documentation
155
+ /site
156
+
157
+ # mypy
158
+ .mypy_cache/
159
+ .dmypy.json
160
+ dmypy.json
161
+
162
+ # Pyre type checker
163
+ .pyre/
164
+
165
+ # pytype static type analyzer
166
+ .pytype/
167
+
168
+ # Cython debug symbols
169
+ cython_debug/
170
+
171
+ # PyCharm
172
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
173
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
174
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
175
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
176
+ #.idea/
177
+
178
+ # Abstra
179
+ # Abstra is an AI-powered process automation framework.
180
+ # Ignore directories containing user credentials, local state, and settings.
181
+ # Learn more at https://abstra.io/docs
182
+ .abstra/
183
+
184
+ # Visual Studio Code
185
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
186
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
187
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
188
+ # you could uncomment the following to ignore the entire vscode folder
189
+ # .vscode/
190
+
191
+ # Ruff stuff:
192
+ .ruff_cache/
193
+
194
+ # PyPI configuration file
195
+ .pypirc
196
+
197
+ # Cursor
198
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
199
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
200
+ # refer to https://docs.cursor.com/context/ignore-files
201
+ .cursorignore
202
+ .cursorindexingignore
203
+
204
+ # Marimo
205
+ marimo/_static/
206
+ marimo/_lsp/
207
+ __marimo__/
@@ -0,0 +1,29 @@
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ rev: v0.15.4
4
+ hooks:
5
+ - id: ruff
6
+ args: [--fix]
7
+ - id: ruff-format
8
+
9
+ - repo: https://github.com/commitizen-tools/commitizen
10
+ rev: v4.13.9
11
+ hooks:
12
+ - id: commitizen
13
+ stages: [commit-msg]
14
+
15
+ - repo: local
16
+ hooks:
17
+ - id: pyright
18
+ name: pyright
19
+ entry: uv run pyright
20
+ language: system
21
+ types: [python]
22
+ pass_filenames: false
23
+
24
+ - id: pytest
25
+ name: pytest
26
+ entry: uv run pytest -m "not integration"
27
+ language: system
28
+ types: [python]
29
+ pass_filenames: false
@@ -0,0 +1 @@
1
+ 3.13
@@ -0,0 +1,5 @@
1
+ ## v0.2.0 (2026-03-05)
2
+
3
+ ### Feat
4
+
5
+ - init repo (#1)
sherma-0.1.0/CLAUDE.md ADDED
@@ -0,0 +1,48 @@
1
+ # Project: sherma
2
+
3
+ ## Planning Workflow
4
+
5
+ - Every task has a corresponding plan. Before implementing a task, enter plan mode and create a plan.
6
+ - Save all plans to the `tasks/plans/` folder.
7
+ - Plans follow the same naming convention as tasks: `<number>-<kebab-case-description>.md` (e.g., `tasks/plans/0-setup-python-repo.md` is the plan for `tasks/0-setup-python-repo.md`).
8
+ - After the plan is saved, exit plan mode and implement the plan.
9
+
10
+ ## Tech Stack
11
+
12
+ - **Language:** Python 3.13
13
+ - **Package manager:** uv
14
+ - **Build backend:** hatchling
15
+ - **Linter/Formatter:** ruff
16
+ - **Type checker:** pyright
17
+ - **Testing:** pytest
18
+ - **Commits:** commitizen (conventional commits)
19
+ - **Git hooks:** pre-commit
20
+ - **CI/CD:** GitHub Actions
21
+
22
+ ## Common Commands
23
+
24
+ ```bash
25
+ uv sync # Install dependencies
26
+ uv run ruff check . # Lint
27
+ uv run ruff format --check . # Format check
28
+ uv run pyright # Type check
29
+ uv run pytest # Run tests
30
+ uv run pytest -m "not integration" # Unit tests only
31
+ uv run pytest -m "integration" # Integration tests only
32
+ uv run pre-commit run --all-files # Run all pre-commit hooks
33
+ ```
34
+
35
+ ## Project Structure
36
+
37
+ ```
38
+ sherma/
39
+ __init__.py # Package init, __version__, re-exports
40
+ hello.py # Hello world function
41
+ py.typed # PEP 561 type marker
42
+ tests/
43
+ test_hello.py # Unit tests
44
+ docs/
45
+ README.md # Consumer documentation
46
+ tasks/
47
+ plans/ # Task plans
48
+ ```
sherma-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Rohith Ramakrishnan
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.
sherma-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,72 @@
1
+ Metadata-Version: 2.4
2
+ Name: sherma
3
+ Version: 0.1.0
4
+ Summary: Agent Framework rising through the citadel!
5
+ Author: Rohith Ramakrishnan
6
+ License-Expression: MIT
7
+ License-File: LICENSE
8
+ Requires-Python: >=3.13
9
+ Description-Content-Type: text/markdown
10
+
11
+ # sherma
12
+
13
+ Agent Framework rising through the citadel!
14
+
15
+ ## Tech Stack
16
+
17
+ | Tool | Purpose |
18
+ |------|---------|
19
+ | Python 3.13 | Language |
20
+ | uv | Package manager |
21
+ | hatchling | Build backend |
22
+ | ruff | Linter and formatter |
23
+ | pyright | Type checker |
24
+ | pytest | Testing framework |
25
+ | commitizen | Conventional commits and version bumps |
26
+ | pre-commit | Git hook management |
27
+ | GitHub Actions | CI/CD |
28
+
29
+ ## Local Development
30
+
31
+ ```bash
32
+ # Clone the repo
33
+ git clone https://github.com/MadaraUchiha-314/sherma.git
34
+ cd sherma
35
+
36
+ # Install dependencies
37
+ uv sync
38
+
39
+ # Install pre-commit hooks
40
+ uv run pre-commit install --hook-type pre-commit --hook-type commit-msg
41
+ ```
42
+
43
+ ## Running Checks
44
+
45
+ ```bash
46
+ # Lint
47
+ uv run ruff check .
48
+
49
+ # Format
50
+ uv run ruff format --check .
51
+
52
+ # Type check
53
+ uv run pyright
54
+
55
+ # Unit tests
56
+ uv run pytest
57
+
58
+ # All pre-commit hooks
59
+ uv run pre-commit run --all-files
60
+ ```
61
+
62
+ ## Commit Conventions
63
+
64
+ This project uses [Conventional Commits](https://www.conventionalcommits.org/). Commit messages must follow the format:
65
+
66
+ ```
67
+ <type>(optional scope): <description>
68
+ ```
69
+
70
+ Common types: `feat`, `fix`, `docs`, `style`, `refactor`, `test`, `chore`.
71
+
72
+ Commitizen enforces this via a commit-msg hook and handles automatic version bumping on merge to main.
sherma-0.1.0/README.md ADDED
@@ -0,0 +1,62 @@
1
+ # sherma
2
+
3
+ Agent Framework rising through the citadel!
4
+
5
+ ## Tech Stack
6
+
7
+ | Tool | Purpose |
8
+ |------|---------|
9
+ | Python 3.13 | Language |
10
+ | uv | Package manager |
11
+ | hatchling | Build backend |
12
+ | ruff | Linter and formatter |
13
+ | pyright | Type checker |
14
+ | pytest | Testing framework |
15
+ | commitizen | Conventional commits and version bumps |
16
+ | pre-commit | Git hook management |
17
+ | GitHub Actions | CI/CD |
18
+
19
+ ## Local Development
20
+
21
+ ```bash
22
+ # Clone the repo
23
+ git clone https://github.com/MadaraUchiha-314/sherma.git
24
+ cd sherma
25
+
26
+ # Install dependencies
27
+ uv sync
28
+
29
+ # Install pre-commit hooks
30
+ uv run pre-commit install --hook-type pre-commit --hook-type commit-msg
31
+ ```
32
+
33
+ ## Running Checks
34
+
35
+ ```bash
36
+ # Lint
37
+ uv run ruff check .
38
+
39
+ # Format
40
+ uv run ruff format --check .
41
+
42
+ # Type check
43
+ uv run pyright
44
+
45
+ # Unit tests
46
+ uv run pytest
47
+
48
+ # All pre-commit hooks
49
+ uv run pre-commit run --all-files
50
+ ```
51
+
52
+ ## Commit Conventions
53
+
54
+ This project uses [Conventional Commits](https://www.conventionalcommits.org/). Commit messages must follow the format:
55
+
56
+ ```
57
+ <type>(optional scope): <description>
58
+ ```
59
+
60
+ Common types: `feat`, `fix`, `docs`, `style`, `refactor`, `test`, `chore`.
61
+
62
+ Commitizen enforces this via a commit-msg hook and handles automatic version bumping on merge to main.
@@ -0,0 +1,16 @@
1
+ # sherma
2
+
3
+ ## Installation
4
+
5
+ ```bash
6
+ pip install sherma
7
+ ```
8
+
9
+ ## Quick Start
10
+
11
+ ```python
12
+ from sherma import hello
13
+
14
+ print(hello()) # Hello, world!
15
+ print(hello("agent")) # Hello, agent!
16
+ ```
@@ -0,0 +1,37 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "sherma"
7
+ version = "0.1.0"
8
+ description = "Agent Framework rising through the citadel!"
9
+ readme = "README.md"
10
+ requires-python = ">=3.13"
11
+ license = "MIT"
12
+ authors = [{ name = "Rohith Ramakrishnan" }]
13
+
14
+ [dependency-groups]
15
+ dev = ["ruff", "pyright", "pytest", "pre-commit", "commitizen"]
16
+
17
+ [tool.ruff]
18
+ target-version = "py313"
19
+ line-length = 88
20
+
21
+ [tool.ruff.lint]
22
+ select = ["E", "W", "F", "I", "B", "UP", "RUF"]
23
+
24
+ [tool.pyright]
25
+ typeCheckingMode = "standard"
26
+ include = ["sherma/"]
27
+
28
+ [tool.pytest.ini_options]
29
+ testpaths = ["tests"]
30
+ markers = ["integration: marks tests as integration tests"]
31
+
32
+ [tool.commitizen]
33
+ name = "cz_conventional_commits"
34
+ version = "0.2.0"
35
+ tag_format = "v$version"
36
+ version_files = ["sherma/__init__.py:__version__"]
37
+ update_changelog_on_bump = true
@@ -0,0 +1,5 @@
1
+ __version__ = "0.2.0"
2
+
3
+ from sherma.hello import hello
4
+
5
+ __all__ = ["hello"]
@@ -0,0 +1,2 @@
1
+ def hello(name: str = "world") -> str:
2
+ return f"Hello, {name}!"
File without changes
@@ -0,0 +1,33 @@
1
+ - Python (3) is the language
2
+ - Use the latest version of python 3
3
+ - Use pyproject.toml
4
+ - Use uv as the package manager
5
+ - Install python dependencies in current repo
6
+ - `.venv` folder
7
+ - Use ruff as the linter
8
+ - Use pyright as the type checker
9
+ - Use pytest
10
+ - Creates a `docs/` folder for documentation of this project
11
+ - These docs are primarily for consumers of this package.
12
+ - The developer docs will be in the README.md at the project root
13
+ - Use the most populat commit linter for python
14
+ - This is to ensure that commit messages follow "sematic-commit" or "conventional-commit"
15
+ - basically the `fix`, `feat` ... format
16
+ - Pre-Commit
17
+ - Run lint, type-checks, unit tests
18
+ - Github Actions
19
+ - On PR
20
+ - Do the same thing as pre-commit lint
21
+ - Run Integration tests
22
+ - On merge to main
23
+ - Run all things that run on PR
24
+ - Publish package to Pypi
25
+ - The package name is: `sherma`
26
+ - Update master with the new version number of the package
27
+ - Create a hello world function as the only function right now
28
+ - Create unit test for that function as an example
29
+ - Update README.md with tech stack used in the project and local development instructions
30
+ - include instructions on installing the pre-commit hooks
31
+ - All code should be under the folder `sherma`
32
+ - create this folder in the root of the project
33
+ - all imports should look like: `from sherma import ...`