CapiTainS Nautilus provides a Flask extension to build upon MyCapytain resolver. The finale goal of the application, built upon MyCapytain, is to serve either as a Web-API provider (Currently supporting CTS, partly DTS. OAI-PMH and a Sparql endpoint are scheduled.) These API can be used to access portion of or complete texts using standards. Metadata are exposed as well.
A second goal of Nautilus is to serve as a cache wrapper for resolver, in order to speed up serving texts for user interfaces such as Nemo .
A known implementation can be found at the University of Leipzig . You can find the set-up files on Github
With Python 3 only !
git clone https://github.com/Capitains/Nautilus.git
virtualenv -p /usr/bin/python3 venv
source venv/bin/activate
python app.py
Now go to http://localhost:5000 and check out http://localhost:5000/api/cts , http://localhost:5000/api/dts/collections, http://localhost:5000/api/cts?request=GetValidReff
This small tutorial takes that you have one or more Capitains formated repositories (such as http://github.com/PerseusDL/canonical-latinLit ) in the folders /home/USERNAME/repository1 where USERNAME is your user session name.
- (Advised) Create a virtual environment and source it :
virtualenv -p /usr/bin/python3 env
,source env/bin/activate
- With development version:
- Clone the repository :
git clone https://github.com/Capitains/Nautilus.git
- Go to the directory :
cd Nautilus
- Install the source with develop option :
python setup.py develop
- Clone the repository :
- With production version (not available for now):
- Install from pip :
pip install capitains-nautilus
- Install from pip :
- You will be able now to call capitains nautilus help information through
capitains-nautilus --help
- Basic setting for testing a directory is
capitains-nautilus --debug /home/USERNAME/repository1
. This can take more than one repository at the end such ascapitains-nautilus --debug /home/USERNAME/repository1 /home/USERNAME/repository2
. You can force host and port through --host and --port parameters.
Textual resources and inventories are owned by Perseus under CC-BY Licences. See https://github.com/PerseusDL/canonical-latinLit and https://github.com/PerseusDL/canonical-farsiLit