Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
ugrnm a39587085e Merge branch 'master' of svilayphiou/XPPL into master il y a 5 ans
app no grid il y a 6 ans
whoosh/Book adding annotations branch il y a 6 ans
.DS_Store interfaces updated il y a 6 ans
.gitignore default covers fix il y a 6 ans
README.md Reorganizing installation instructions il y a 5 ans
import_csv.py update upload form extra questions il y a 6 ans
init.py Import csv works! Many to many books and authors is also nice il y a 6 ans
init_db.sh GRADIENT il y a 6 ans
rebuild.py added search all functionality with flask-whooshalchemyplus il y a 6 ans
requirements.txt add requests requirement il y a 5 ans
run.py changes to annotations il y a 6 ans
test.py rqlite update il y a 6 ans
test2.py rqlite update il y a 6 ans
xpublibrary.csv test commit il y a 6 ans
xpublibrary_including_filelinks.csv default covers fix il y a 6 ans
xpublibrary_including_filelinks2.csv default covers fix il y a 6 ans
xpublibrary_old.csv some awesome stacks il y a 6 ans

README.md

XPUB Library

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

Installation

Install the required dependencies:

$ pip3 install -r requirements.txt

Initialise database

$ bash init_db.sh

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

Further install notes (bugs)

  • create the covers folder inside the uploadsfolder

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

  • For Mac users -> 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

Run the program

Initialize rqlite database on one terminal (from rqlite install directory)

$ ./rqlited ~.node

Run the script in another terminal (from XPPL directory):

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