django app for interacting with the Transkribus-API
Project description
A django app for interacting with the [Transkribus-API](https://transkribus.eu/wiki/index.php/REST_Interface) to search and read documents hosted and processed by [Transkribus](https://transkribus.eu/Transkribus/)
Installation
pip install acdh-django-transkribus
Use:
Add your user name and password and the ID of the collection you’d like to expose by the current application’s settings file like shown below:
TRANSKRIBUS = {
"user": "mytranskribususer@whatever.com",
"pw": "mytranskribuspassword",
"col_id": "43497"
}
For custom translations you’d need to add following dict to your settings:
TRANSKRIBUS_TRANSLATIONS = {
'search_form': {
'prefil': 'search in all documents',
'button': 'Go!'
},
'search_header': {
'header': 'Fulltext Search'
},
'hits': {
'facet_header': 'refine your search',
'facet_doc_title': 'Document',
'result_header': 'Results',
'kwic_header': 'KWIC',
'result_col': 'Collection',
'result_doc': 'Document',
'result_page': 'Page',
'result_link': 'go to document'
},
'page': {
'img_col': 'IMG',
'text_col': 'TEXT'
},
'docs': {
'title_col': 'Title',
'page_nr_col': 'Nr. of pages',
'preview_col': 'Preview',
'doc_singular': 'Document',
'doc_plural': 'Documents',
'page_singular': 'Page',
'page_plural': 'Pages'
}
}
History
0.3.0 (2019-10-24)
more translations
transkribus-css classes added to templates
added TrpBaseModel
0.2.0 (2019-10-09)
Added settings param for custom translations
0.1.0 (2019-10-02)
First release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for acdh-django-transkribus-0.3.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd801abdfbae94c014704c0faf0ab4cb2f9cb8ec41691e1dfe872401240bf397 |
|
MD5 | abaf508c24d2f743af3c598fabb3b667 |
|
BLAKE2b-256 | 6e22110efafbe63a672c5e78e70cb60c35f09ef51303b17b7f491f594b060b12 |
Hashes for acdh_django_transkribus-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9225ae13d62f4a7e26b46f775fa1f64b1e512203ac587546a0320a200f044066 |
|
MD5 | 3690d434fb7df2a2d403aedeff47f427 |
|
BLAKE2b-256 | 65bdd385540cfeb0caf11792003b8a8afb7fe4cf397ca6e2c08769cb27d397c9 |