Varia library working group XPPL. https://gitea.xpub.nl/XPUB/XPPL
Go to file
2018-06-13 23:09:43 +02:00
app changed datetime.utcnow() to datetime.now() to give local time 2018-06-13 23:09:43 +02:00
whoosh/Book adding annotations branch 2018-06-13 15:12:03 +02:00
.DS_Store default covers fix 2018-06-13 20:29:25 +02:00
.gitignore default covers fix 2018-06-13 20:29:25 +02:00
import_csv.py update upload form extra questions 2018-06-11 17:24:30 +02:00
init_db.sh GRADIENT 2018-06-11 19:20:59 +02:00
init.py Import csv works! Many to many books and authors is also nice 2018-05-23 17:02:06 +02:00
README.md updated README 2018-06-06 18:20:41 +02:00
rebuild.py added search all functionality with flask-whooshalchemyplus 2018-06-03 15:23:10 +02:00
requirements.txt fixed conflixt in pip requirements.txt 2018-06-13 13:57:25 +02:00
run.py changes to annotations 2018-06-12 19:55:56 +02:00
test2.py rqlite update 2018-06-01 20:26:37 +02:00
test.py rqlite update 2018-06-01 20:26:37 +02:00
xpublibrary_including_filelinks2.csv default covers fix 2018-06-13 20:29:25 +02:00
xpublibrary_including_filelinks.csv default covers fix 2018-06-13 20:29:25 +02:00
xpublibrary_old.csv some awesome stacks 2018-05-31 18:04:05 +02:00
xpublibrary.csv test commit 2018-06-03 23:45:24 +02:00

XPUB Library

Library running on Flask and SQLight (maybe to be replaced with a python shelve)

requirements.txt $ pip3 install -r requirements.txt

initialise database $ bash init_db.sh

run script python3 run.py

API

has currently 2 entrypoints:

/api/books GETs all the books in the database

/api/book/id GETs a specific book by its id

Installation

Further installnotes (bugs)

  • create the covers folder inside the uploadsfolder

  • don't forget to chmod the uploads and coverfolder ;-)

  • For Macusers -> brew install imagemagick@6 in order to install wand

For those on mac and using homebrew, it seems like Wand doesn't support imagemagick 7 yet as mentioned in other answers. There's a new brew formula for Imagemagick 6 which can be used to install the older version in the meanwhile: brew install imagemagick@6 Create a symlink to this newly installed dylib file as mentioned in other answer to get things working. ln -s /usr/local/Cellar/imagemagick@6/<your specific 6 version>/lib/libMagickWand-6.Q16.dylib /usr/local/lib/libMagickWand.dylib

install pyrqlite

git clone https://github.com/rqlite/pyrqlite.git pip install ./pyrqlite

install sqlalchemy-rqlite

git clone https://github.com/rqlite/sqlalchemy-rqlite.git cd sqlalchemy-rqlite sudo python3 ./setup.py install