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.5.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.5-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yv_languages-1.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 051e85861459cae04c687d7afb40895eae08b6e27d8e88c32308508b0832282f
MD5 ae55ddbac1ab8d0b289229da3df9b7d4
BLAKE2b-256 22e9adc2c9a370d8354ab7b4dd0c02b0da525d9c7f6d54b65b56faa3a956ff90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yv_languages-1.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 367e446defbf2e8933417aa02585ece9a6c0f8fee37a57ab11c9693025545c54
MD5 e63cbfd052be726fadc99be514cbd8fe
BLAKE2b-256 312addf42301f78667377a5e9f8f177933f09b9e806e561f02ad83783b4a07ca

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