Languages package for YouVersion usage.
Project description
yv-languages
Requirements
This project recommends Python 3.11 or higher.
Installation
You need to connect to our private PyPi packages to install this library. See how in our API Getting Started docs.
Then:
pip install yv-languages
Or if you are working in a microservice with Maker setup,
add yv-languages to your requirements.in file and run:
make deps-compile && make deps-install
Usage
You can validate & make any language tag string canonical like:
import yv_languages
bcp = yv_languages.canonical("eng")
print(str(bcp)) # "en"
Development
This project was written and tested with Python 3.11.
We recommend using pyenv & pyenv-virtualenv which you can find instructions on installing in our Getting Started documentation.
setup the project env
make venv
create a .envrc file using this sample
export PYTHONPATH=`pwd`
Running tests
make test
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yv-languages-1.0.2.tar.gz.
File metadata
- Download URL: yv-languages-1.0.2.tar.gz
- Upload date:
- Size: 38.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a80c4fd368173fbdfaec5265e02d8361e01f1a654384700af6544cfbc8632c6d
|
|
| MD5 |
80ae848d9b641662e4ca36bc0c6ebffa
|
|
| BLAKE2b-256 |
1db713416a713806b803119960db80406c21d2345b20d96f4d426e005fcbdf20
|
File details
Details for the file yv_languages-1.0.2-py3-none-any.whl.
File metadata
- Download URL: yv_languages-1.0.2-py3-none-any.whl
- Upload date:
- Size: 35.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6a7dd5c754afe44e40d0987f2f0aae11b161b8ab60901d6475482e9634c546e
|
|
| MD5 |
c813d1a0d6cd81b72456fc8ff58ffe78
|
|
| BLAKE2b-256 |
254697cf39a547fd3dc1ab516cc74ec65afea381caab99fc7af9569471b3eddb
|