Skip to content

Commit f8b81b9

Browse files
committed
Initial release: TealTiger Python SDK v1.0.0
0 parents  commit f8b81b9

65 files changed

Lines changed: 13523 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: '[BUG] '
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
## Bug Description
10+
A clear and concise description of what the bug is.
11+
12+
## To Reproduce
13+
Steps to reproduce the behavior:
14+
1. Initialize AgentGuard with '...'
15+
2. Call method '...'
16+
3. See error
17+
18+
## Expected Behavior
19+
A clear and concise description of what you expected to happen.
20+
21+
## Actual Behavior
22+
What actually happened.
23+
24+
## Code Sample
25+
```python
26+
# Minimal code sample that reproduces the issue
27+
from agentguard import AgentGuard
28+
29+
guard = AgentGuard(api_key="test", ssa_url="http://localhost:3000")
30+
# ...
31+
```
32+
33+
## Environment
34+
- **SDK Version**: [e.g. 0.1.0]
35+
- **Python Version**: [e.g. 3.11.0]
36+
- **Operating System**: [e.g. Ubuntu 22.04]
37+
- **Framework**: [e.g. LangChain, CrewAI, AutoGPT]
38+
39+
## Error Messages
40+
```
41+
Paste any error messages or stack traces here
42+
```
43+
44+
## Additional Context
45+
Add any other context about the problem here (screenshots, logs, etc.)
46+
47+
## Possible Solution
48+
If you have suggestions on how to fix the bug, please describe them here.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: '[FEATURE] '
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
## Feature Description
10+
A clear and concise description of the feature you'd like to see.
11+
12+
## Problem Statement
13+
Describe the problem this feature would solve. Ex. I'm always frustrated when [...]
14+
15+
## Proposed Solution
16+
Describe how you envision this feature working.
17+
18+
## Code Example
19+
```python
20+
# Show how you'd like to use this feature
21+
from agentguard import AgentGuard
22+
23+
guard = AgentGuard(api_key="test", ssa_url="http://localhost:3000")
24+
# ...
25+
```
26+
27+
## Alternatives Considered
28+
Describe any alternative solutions or features you've considered.
29+
30+
## Use Case
31+
Describe your specific use case and how this feature would benefit your project.
32+
33+
## Additional Context
34+
Add any other context, screenshots, or examples about the feature request here.
35+
36+
## Willingness to Contribute
37+
- [ ] I'm willing to submit a PR to implement this feature
38+
- [ ] I can help with testing
39+
- [ ] I can help with documentation

.github/pull_request_template.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Pull Request
2+
3+
## Description
4+
Provide a clear and concise description of what this PR does.
5+
6+
Fixes #(issue number)
7+
8+
## Type of Change
9+
- [ ] Bug fix (non-breaking change which fixes an issue)
10+
- [ ] New feature (non-breaking change which adds functionality)
11+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
12+
- [ ] Documentation update
13+
- [ ] Performance improvement
14+
- [ ] Code refactoring
15+
- [ ] Test improvements
16+
17+
## Changes Made
18+
-
19+
-
20+
-
21+
22+
## Testing
23+
Describe the tests you ran to verify your changes:
24+
- [ ] Unit tests pass (`pytest`)
25+
- [ ] Type checking passes (`mypy src`)
26+
- [ ] Linting passes (`ruff check src tests`)
27+
- [ ] Manual testing performed
28+
- [ ] Added new tests for new functionality
29+
30+
## Checklist
31+
- [ ] My code follows the project's code style
32+
- [ ] I have performed a self-review of my own code
33+
- [ ] I have commented my code, particularly in hard-to-understand areas
34+
- [ ] I have made corresponding changes to the documentation
35+
- [ ] My changes generate no new warnings
36+
- [ ] I have added tests that prove my fix is effective or that my feature works
37+
- [ ] New and existing unit tests pass locally with my changes
38+
- [ ] Any dependent changes have been merged and published
39+
40+
## Breaking Changes
41+
If this PR introduces breaking changes, describe them here and provide migration instructions.
42+
43+
## Screenshots (if applicable)
44+
Add screenshots to help explain your changes.
45+
46+
## Additional Notes
47+
Add any other context about the PR here.

.github/workflows/publish.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: '3.11'
18+
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install build twine
23+
24+
- name: Build package
25+
run: |
26+
python -m build
27+
28+
- name: Check package
29+
run: |
30+
twine check dist/*
31+
32+
- name: Publish to PyPI
33+
env:
34+
TWINE_USERNAME: __token__
35+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
36+
run: |
37+
twine upload dist/*

.github/workflows/test.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
pull_request:
7+
branches: [ main, develop ]
8+
9+
jobs:
10+
test:
11+
runs-on: ${{ matrix.os }}
12+
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macos-latest]
16+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install -e ".[dev]"
30+
31+
- name: Run linter
32+
run: |
33+
ruff check src tests
34+
35+
- name: Run tests
36+
run: |
37+
pytest
38+
39+
- name: Upload coverage to Codecov
40+
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
41+
uses: codecov/codecov-action@v3
42+
with:
43+
file: ./htmlcov/index.html
44+
flags: unittests
45+
name: codecov-umbrella
46+
47+
security:
48+
runs-on: ubuntu-latest
49+
50+
steps:
51+
- uses: actions/checkout@v3
52+
53+
- name: Set up Python
54+
uses: actions/setup-python@v4
55+
with:
56+
python-version: '3.11'
57+
58+
- name: Install dependencies
59+
run: |
60+
python -m pip install --upgrade pip
61+
pip install safety
62+
63+
- name: Run security audit
64+
run: |
65+
safety check

.gitignore

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
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+
pip-wheel-metadata/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
*.manifest
32+
*.spec
33+
34+
# Unit test / coverage reports
35+
htmlcov/
36+
.tox/
37+
.nox/
38+
.coverage
39+
.coverage.*
40+
.cache
41+
nosetests.xml
42+
coverage.xml
43+
*.cover
44+
*.py,cover
45+
.hypothesis/
46+
.pytest_cache/
47+
48+
# Translations
49+
*.mo
50+
*.pot
51+
52+
# Django stuff:
53+
*.log
54+
local_settings.py
55+
db.sqlite3
56+
db.sqlite3-journal
57+
58+
# Flask stuff:
59+
instance/
60+
.webassets-cache
61+
62+
# Scrapy stuff:
63+
.scrapy
64+
65+
# Sphinx documentation
66+
docs/_build/
67+
68+
# PyBuilder
69+
target/
70+
71+
# Jupyter Notebook
72+
.ipynb_checkpoints
73+
74+
# IPython
75+
profile_default/
76+
ipython_config.py
77+
78+
# pyenv
79+
.python-version
80+
81+
# pipenv
82+
Pipfile.lock
83+
84+
# PEP 582
85+
__pypackages__/
86+
87+
# Celery stuff
88+
celerybeat-schedule
89+
celerybeat.pid
90+
91+
# SageMath parsed files
92+
*.sage.py
93+
94+
# Environments
95+
.env
96+
.venv
97+
env/
98+
venv/
99+
ENV/
100+
env.bak/
101+
venv.bak/
102+
103+
# Spyder project settings
104+
.spyderproject
105+
.spyproject
106+
107+
# Rope project settings
108+
.ropeproject
109+
110+
# mkdocs documentation
111+
/site
112+
113+
# mypy
114+
.mypy_cache/
115+
.dmypy.json
116+
dmypy.json
117+
118+
# Pyre type checker
119+
.pyre/
120+
121+
# IDE
122+
.vscode/
123+
.idea/
124+
*.swp
125+
*.swo
126+
*~
127+
.DS_Store
128+
129+
# Project specific
130+
*.log
131+
.pytest_cache/

0 commit comments

Comments
 (0)