Skip to main content

Python package containing various utilities relevant in the field of digital humanities.

Project description

Digital Humanities Utilities

Python package containing various utilities relevant in the field of digital humanities.

$ pip install dh

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


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.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

dh_utils-0.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file dh-utils-0.1.1.tar.gz.

File metadata

  • Download URL: dh-utils-0.1.1.tar.gz
  • Upload date:
  • Size: 2.6 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

Hashes for dh-utils-0.1.1.tar.gz
Algorithm Hash digest
SHA256 67667341219af5c83300f4da8c8207a1e2bcbfb0e1c19512757c2439a5c2130d
MD5 af1b1ee65f78007d0c72390b17546070
BLAKE2b-256 39df6b9929628062fa1a3735128055c8e1983476b163808032543dbd507616c3

See more details on using hashes here.

File details

Details for the file dh_utils-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dh_utils-0.1.1-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

Hashes for dh_utils-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7dc83054a16605301e903cbf3d036a1e7e062d30749a321cccb34fdf8d8a3d8c
MD5 c59fa0b6e0c506754b69581b45fb96da
BLAKE2b-256 b6c6940062ad7e4a52ac9cce5aecab6eb8b901426f637314c028d8467fd0f071

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page