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
1.0.0 (2020-03-20)
load staticfiles -> load static to be Django > 3.x compatible
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-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c591ba8703bb18a2d4645420f675ddde9273c2bd0f17ea9878d4999fee29232f |
|
MD5 | 41e85bed172959e0d71e246c90c2f8e1 |
|
BLAKE2b-256 | 42c32361912332a89f29422bc9dc8a6007c3c6cf614ba34663e579ef500c3d95 |
Hashes for acdh_django_transkribus-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbf239cf5fec61b678b31017700e069a97924fef306d03a989dae05020f442e8 |
|
MD5 | 3a7e03423599c99e90c674dda8cd36b2 |
|
BLAKE2b-256 | 45fe36f28355a4410444f6c14088f6e9af2bc5f6b3470c8022e8ea02240ac225 |