diff --git a/calibrestekje/api.py b/calibrestekje/api.py new file mode 100644 index 0000000..3c19e95 --- /dev/null +++ b/calibrestekje/api.py @@ -0,0 +1,11 @@ +"""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))