Add user facing API
This commit is contained in:
parent
026185cf74
commit
d84011bf10
11
calibrestekje/api.py
Normal file
11
calibrestekje/api.py
Normal file
@ -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))
|
Reference in New Issue
Block a user