# Cursor rules
## Sql Alchemy rules
- When using SqlAlchemy sessions, make sure to import from app.models.database.database import Base, Session, SessionLocal and format sessions as with SessionLocal() as session:
- When creating new models, make sure to inherit from Base, and include a __tablename__ attribute as well as an autoincrementing integer primary key.
## Python Style
- When writing functions, make sure to include type hints for all parameters and return types.
- When writing functions, make sure to include docstrings that describe what the function does, what parameters it takes, and what it returns.
- When calling functions, make sure to prefer keyword arguments over positional arguments when possible.
## Logging
- When creating a logger, make sure to use the __name__ attribute of the module as the logger name.css
dockerfile
html
mako
python
shell
typescript
First Time Repository
Integrated Server for AI Assistants, using Anthropic, Open AI Llama, etc. models.
Python
Languages:
CSS: 4.9KB
Dockerfile: 1.3KB
HTML: 1.7KB
Mako: 0.6KB
Python: 136.0KB
Shell: 0.6KB
TypeScript: 14.7KB
Created: 3/18/2023
Updated: 1/6/2025
All Repositories (1)
Integrated Server for AI Assistants, using Anthropic, Open AI Llama, etc. models.