Skip to main content

Browse TLG indices data and indices

Project description

About

This Python package facilitates the browsing of the indices of the old TLG CD-ROMs. It expects that texts have been processed by the tlgu package (tlgu homepage, rehosted code), which offers a variety of ways to convert the Beta Code of the original files into Unicode text files.

Install

Install from PyPI with:

pip install tlg-indices

Disclaimer

This repository makes no claim to ownership of the contents of the original TLG CD-ROM, which are owned by the University of California, Irvine. It is an independent effort to facilitate study of texts and does not represent or imply endorsement by the University of California, Irvine or the TLG project.

Usage overview

The main entry point is the utility functions in src/tlg_indices/utils.py, which expose prebuilt indices and convenience lookups. The quickest way to see how to call these helpers is in examples.py, which demonstrates:

  • Reading index data (epithets, geographies, dates, and author/work mappings).
  • Looking up authors by epithet or geography, and reversing those lookups.
  • Looking up works by author and retrieving a single work title.
  • Sorting and querying date ranges using ParsedDate and get_dates_in_range().

For a runnable walkthrough, open examples.py and follow the patterns there.

Packaging

% uv build --no-sources
% uv publish --token "pypi-xxxxxxxxxxxxxxxx"

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

tlg_indices-1.0.0.tar.gz (323.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tlg_indices-1.0.0-py3-none-any.whl (331.8 kB view details)

Uploaded Python 3

File details

Details for the file tlg_indices-1.0.0.tar.gz.

File metadata

  • Download URL: tlg_indices-1.0.0.tar.gz
  • Upload date:
  • Size: 323.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.2

File hashes

Hashes for tlg_indices-1.0.0.tar.gz
Algorithm Hash digest
SHA256 273b84f66a8d42c850f188c09b6e92981466a4e1040410fe381de7e56730994c
MD5 13a5451fb261a40579be81fc03a95125
BLAKE2b-256 390a517faff87bea196f5aebd4f88740be7029007ec51d955c0a1e27e97b0df0

See more details on using hashes here.

File details

Details for the file tlg_indices-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tlg_indices-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e3488d703e37b4e9f2de010af3bda5daf756efb48c8623675fff1c39910cc0c
MD5 a809440d85b37f9fc448d9a5f59c771e
BLAKE2b-256 75d8e0a73e456e334c817aa674ee6a6d902e7f8dc60084e5e4d0aa7e7f5c13a1

See more details on using hashes here.

Supported by

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