|
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 | collections_tojson (collection) |
Variables | |
| FastAPI | app = FastAPI() |
| Jinja2Templates | templates = Jinja2Templates(directory="src/frontend/templates") |
| 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.
| FastAPIServer.allow_credentials |
| FastAPIServer.allow_headers |
| FastAPIServer.allow_methods |
| FastAPIServer.allow_origins |
| FastAPI FastAPIServer.app = FastAPI() |
| list FastAPIServer.origins |
| Jinja2Templates FastAPIServer.templates = Jinja2Templates(directory="src/frontend/templates") |