You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
svilayphiou 355e4203f8 Added pip requirements from git repos 6 years ago
app no grid 7 years ago
whoosh/Book adding annotations branch 7 years ago
.DS_Store interfaces updated 7 years ago
.gitignore default covers fix 7 years ago
README.md added rqlite install instructions 7 years ago
import_csv.py update upload form extra questions 7 years ago
init.py Import csv works! Many to many books and authors is also nice 7 years ago
init_db.sh GRADIENT 7 years ago
rebuild.py added search all functionality with flask-whooshalchemyplus 7 years ago
requirements.txt Added pip requirements from git repos 6 years ago
run.py changes to annotations 7 years ago
test.py rqlite update 7 years ago
test2.py rqlite update 7 years ago
xpublibrary.csv test commit 7 years ago
xpublibrary_including_filelinks.csv default covers fix 7 years ago
xpublibrary_including_filelinks2.csv default covers fix 7 years ago
xpublibrary_old.csv some awesome stacks 7 years ago

README.md

XPUB Library

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

requirements.txt $ pip3 install -r requirements.txt

install rqlite install pyrqlite install sqlalchemy-rqlite

initialize rqlite database $ ./rqlited ~.node

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 rqlite

Linux

To download and start rqlite on Linux, execute the following in a shell.

curl -L https://github.com/rqlite/rqlite/releases/download/v4.3.0/rqlite-v4.3.0-linux-amd64.tar.gz -o rqlite-v4.3.0-linux-amd64.tar.gz tar xvfz rqlite-v4.3.0-linux-amd64.tar.gz cd rqlite-v4.3.0-linux-amd64 ./rqlited ~/node.1

OSX

To download and start rqlite on OSX, execute the following in a shell.

curl -L https://github.com/rqlite/rqlite/releases/download/v4.3.0/rqlite-v4.3.0-darwin-amd64.tar.gz -o rqlite-v4.3.0-darwin-amd64.tar.gz tar xvfz rqlite-v4.3.0-darwin-amd64.tar.gz cd rqlite-v4.3.0-darwin-amd64 ./rqlited ~/node.1

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