This repository has been archived on 2024-07-28. You can view files and clone it, but cannot push or open issues or pull requests.
Files
calibrestekje/calibrestekje/api.py
2020-02-28 11:32:58 +00:00

12 lines
281 B
Python

"""User facing API."""
from sqlalchemy import create_engine
from sqlalchemy.orm import Session
from calibrestekje.bindings import * # noqa
def init_session(url: str):
"""Initialise a SQLAlchemy session against a Calibre database."""
return Session(create_engine(url))