Python package containing various utilities relevant in the field of digital humanities.
Project description
Digital Humanities Utilities
Python 3.6+ package containing various utilities relevant in the field of digital humanities.
$ pip install dh-utils
Some examples
Tag languages in a given string based on its script:
>>> from dh_utils import tei as t
>>> t.tag('Hebr', 'A line contaning the following inline hebrew אם שאותם הענינים יצאו חוץ מדעתו text')
'A line contaning the following hebrew <foreign xml:lang="he-Hebr">אם שאותם הענינים יצאו חוץ מדעתו</foreign> text'
Decompose any unicode string:
>>> from dh_utils import unicode as u
>>> u.decompose('λόγος')
λ U+03bb GREEK SMALL LETTER LAMDA
ο U+03bf GREEK SMALL LETTER OMICRON
́ U+0301 COMBINING ACUTE ACCENT
γ U+03b3 GREEK SMALL LETTER GAMMA
ο U+03bf GREEK SMALL LETTER OMICRON
ς U+03c2 GREEK SMALL LETTER FINAL SIGMA
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
dh-utils-0.1.3.tar.gz
(2.5 kB
view details)
Built Distribution
File details
Details for the file dh-utils-0.1.3.tar.gz
.
File metadata
- Download URL: dh-utils-0.1.3.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21c2d044d9a3598bad7879dcce44263ea5727f4f05c944bd646dc34b239bedff |
|
MD5 | d7e49ce6d665ebed153d15abd64a325c |
|
BLAKE2b-256 | 24bd41db06b40e3f078b4681e883c594af3e2fdbb05a85e35756ef8812e4f88b |
File details
Details for the file dh_utils-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: dh_utils-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d24dcd5dcb1af45fb74f36679c4c22f56e5483676c554a028806e230945fe8d |
|
MD5 | f19597cbc4d0d48f62832dc89d4b4f80 |
|
BLAKE2b-256 | 0337cbfde68ccfe256c88690ab34a010839c28a2fc414dd5a29da3f7b3f9b7d7 |