Skip to main content

Languages package for YouVersion usage.

Project description

yv-languages

Requirements

This project recommends Python 3.11 or higher.

Installation

pip install yv-languages

Usage

You can make any language tag string canonical like:

import yv_languages

bcp = yv_languages.canonical("eng")

print(str(bcp))  # "en"

or with validation:

import yv_languages

bcp = yv_languages.canonical("eng", should_validate=True)

print(str(bcp))  # "en"

Development

This project was written and tested with Python 3.11.

Running tests

pytest tests/

Before committing any code

We have a pre-commit hook which should be setup. You can symlink it to run before each commit by changing directory to the repo and running

make githooks

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

yv_languages-1.0.6.tar.gz (37.9 kB view details)

Uploaded Source

Built Distribution

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

yv_languages-1.0.6-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file yv_languages-1.0.6.tar.gz.

File metadata

  • Download URL: yv_languages-1.0.6.tar.gz
  • Upload date:
  • Size: 37.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.10

File hashes

Hashes for yv_languages-1.0.6.tar.gz
Algorithm Hash digest
SHA256 a757cd82a0610c5ed28bf9990231a3704518f2e121091ed01c1d2c07949c8791
MD5 1328cc1fb270ebde92f09884c9c54ab2
BLAKE2b-256 f7dfdc9fb9a9637735ea9bfd8234fe8f6e77cd8c7aec147ccbb66c8346d9a08a

See more details on using hashes here.

File details

Details for the file yv_languages-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: yv_languages-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.10

File hashes

Hashes for yv_languages-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 40ad18ed93870c6a05b7d8018c912bf39547055a305347d5d41912df3d2733d2
MD5 8229a102995490d8500d5d4e8afcaa98
BLAKE2b-256 21341b223f5b6b14c6cd7043a821166557b58748c117e3af7b717ade2411e1f6

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