|
pyShelf Open Source Ebook Server 0.8.0
FOSS E-Book Server, https://pyshelf.com
|
Classes | |
| class | FastAPIServer |
Functions | |
| str | base64decode (string) |
| str | summarize (string) |
| str | convertDateTime (datetime timestamp) |
| dumps | books_tojson (obj) |
| dumps | book_tojson (book) |
| dumps | tojson (obj) |
| dumps | collections_tojson (collection) |
Variables | |
| app = FastAPI() | |
| STATIC_DIR | |
| TEMPLATES_DIR | |
| templates = Jinja2Templates(directory=str(TEMPLATES_DIR)) | |
| list | origins |
| allow_origins | |
| allow_credentials | |
| allow_methods | |
| allow_headers | |
pyShelf's main frontend library.
| str FastAPIServer.base64decode | ( | string | ) |
Decode a base64 string.
| dumps FastAPIServer.book_tojson | ( | book | ) |
Convert a book object to a json.
| dumps FastAPIServer.books_tojson | ( | obj | ) |
Convert an object to a dictionary.
| dumps FastAPIServer.collections_tojson | ( | collection | ) |
Convert a collections object to json.
| str FastAPIServer.convertDateTime | ( | datetime | timestamp | ) |
Convert a datetime object to a string.
| str FastAPIServer.summarize | ( | string | ) |
Summarize a string.
| dumps FastAPIServer.tojson | ( | obj | ) |
| FastAPIServer.allow_credentials |
| FastAPIServer.allow_headers |
| FastAPIServer.allow_methods |
| FastAPIServer.allow_origins |
| FastAPIServer.app = FastAPI() |
| list FastAPIServer.origins |
| FastAPIServer.STATIC_DIR |
| FastAPIServer.templates = Jinja2Templates(directory=str(TEMPLATES_DIR)) |
| FastAPIServer.TEMPLATES_DIR |