Skip to content
Texts API and Textual Resources Utility Library for Python 3
Branch: dev
Clone or download
Latest commit 3fba986 Jul 1, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
benchmark Refactorization : renaming some of the classes (#127) Apr 24, 2017
doc Doc to use each class better Sep 12, 2018
notebooks (DTS Resolver) Working. Like completely. Yeah. It's good. Oct 23, 2018
tests Merge branch 'master' into dev Jul 1, 2019
.gitignore (DTS Resolver)(Document) Completely implemented. Need to fix readable… Oct 22, 2018
.travis.yml (Travis) Removed 3.7 because it does not work Aug 28, 2018 Change logs Jul 1, 2019
LICENSE.txt MyCapytains and its derivative are moving to MPL 2.0 for its license (#… Jan 15, 2018 Probably working Jul 9, 2015
README.rst Remove old badges May 16, 2018 2.0.6 Nov 20, 2017
requirements.txt (Resolver Prototype) Added Typing and Changed getReffs to output Base… Aug 30, 2018

README.rst License: MPL 2.0

MyCapytain is a python library which provides a large set of methods to interact with Text Services API such as the Canonical Text Services, the Distributed Text Services. It also provides a programming interface to exploit local textual resources developed according to the Capitains Guidelines.

Simple Example of what it does

The following code and example is badly displayed at the moment on Github. We recommend you to go to

On Leipzig DH Chair's Canonical Text Services API, we can find the Epigrammata of Martial. This texts are identified by the identifier "urn:cts:latinLit:phi1294.phi002.perseus-lat2". We want to have some information about this text so we are gonna ask the API to give its metadata to us :

This query will return the following information :

<class 'MyCapytain.resources.collections.cts.Text'> ['book', 'poem', 'line']

And we will get

Hesterna factum narratur, Postume, cena

If you want to play more with this, like having a list of what can be found in book three, you could go and do

Which would be equal to :

['3.1', '3.2', '3.3', '3.4', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', ...]

Now, it's your time to work with the resource ! See the CapiTainS Classes page on ReadTheDocs to have a general introduction to MyCapytain objects !

Installation and Requirements

The best way to install MyCapytain is to use pip. MyCapytain tries to support Python over 3.4.

The work needed for supporting Python 2.7 is mostly done, however, since 2.0.0, we are giving up on ensuring that MyCapytain will be compatible with Python < 3 while accepting PR which would help doing so.

pip install MyCapytain

If you prefer to use, you should clone and use the following

git clone
cd MyCapytain
python install
You can’t perform that action at this time.