semvec/pypi-packages huggingface dataset:
sa-repository 1.1.1
Repository pattern for SQLAlchemy models
License: MIT
Requires Python: <4.0,>=3.10
Keywords: sqlalchemy, repository-pattern, orm, repository

# SQLAlchemy Repository for models
![tests workflow](https://github.com/Gasper3/sa-repository/actions/workflows/actions.yml/badge.svg)

This project contains simple Repository pattern for SQLAlchemy models.  
All you need to do is:
1. Install this package `python -m pip install sa-repository`
2. Use it in your project
    ```python
    from sa_repository import BaseRepository
    from models import YourSAModel
    
    class SomeModelRepository(BaseRepository[YourSAModel]):
        pass
    ```

Base class contains some general methods to simplify your work with sqlalchemy models e.x
```python
var = SomeModelRepository(session).get(YourSAModel.attr == 'some_value')
```

If you don't want to create new repository classes, you can use `get_repository_from_model` method
```python
repository = BaseRepository.get_repository_from_model(db_session, SomeModel)
```
uaimodal 1.0.6.14
uaimodal
License: MIT

# UAI Modal

Helper functions to build faster [modal ](https://modal.com)servers.

# Web Docs
Documentation can be found here:
[https://vltmedia.github.io/uaimodal/](https://vltmedia.github.io/uaimodal)

## License

This project is licensed under the MIT License.

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

## Contact

For any questions or issues, please contact the maintainer at `support@uaimodal.io`.