Skip to main content

OSIS Book Tools

This packages contains tools for converting between OSIS abbreviations (both IDs and paratext abbreviations) for books in the canonical Old and New Testaments and localized book names.

The core of this is a sqlite database which does all the mappings, and ensures basic data integrity. Data is currently loaded once during module init. After that, all operations are in-memory.

This abbreviations were compiled from https://wiki.crosswire.org/OSIS_Book_Abbreviations (fetched 2019-03-25).

Usage Examples

Reference a book via enumeration value

OSISBook.Gen    # Genesis
OSISBook._1Sam  # 1 Samuel (note the leading underscore to make the identifier valid)

Construct a book from a paratext value

OSISBook.from_paratext("GEN")

Get the paratext abbreviation for a book

OSISBook.Gen.paratext_abbreviation

Get the localized name of a book

This function expects the shortest possible ISO 639 code available for the language. English is guaranteed to be available, so use this as a fallback.

OSISBook.Gen.localized_name("en")

Get the localized chapter descriptor for a book

This function returns the chapter descriptor, which may be slightly different from the name. Use this when constructing a reference string. For example, you write Psalm 23, not Psalms 23. This is the difference between localized_name and chapter_descriptor.

Like localized_name, this function expects the shortest possible ISO 639 code available for the language. English is guaranteed to be available, so use this as a fallback. If a localized name exists, a chapter descriptor must also exist.

OSISBook.Gen.chapter_descriptor("en")

Metadata

Release files for osis-book-tools 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for osis-book-tools 1.0.1
File Size Uploaded Provenance Actions
osis_book_tools-1.0.1.tar.gz 8.0 kB Without provenance Details for osis_book_tools-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for osis-book-tools 1.0.1
File Interpreter ABI Platform Actions
osis_book_tools-1.0.1-py3-none-any.whl Python 3 none any Details for osis_book_tools-1.0.1-py3-none-any.whl

Total release size: 15.2 kB

Release files / osis_book_tools-1.0.1.tar.gz

Download URL osis_book_tools-1.0.1.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
59cb8f6f1c61c749ee376a48335fe08cc0112aa714982eea2ccbe580f0ff68ee
BLAKE2b-256 checksum
How to use checksums
52d353dd985aeb1d92fcdd8d06d06c8cf277483c2343f1fc1a70b3a775ee67d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Release files / osis_book_tools-1.0.1-py3-none-any.whl

Download URL osis_book_tools-1.0.1-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ebe5df6910ac8238ab5443a08a761bff034b034a96de9df2ad6a77446614f40
BLAKE2b-256 checksum
How to use checksums
19255799adfa561b26a7d649968958a15256b4d75fad2ad00a664cf6282109d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Security for osis-book-tools 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page