Skip to main content

No project description provided

Project description

Use pip install i-texts

Requires:

  • or $TEXTS_PATH
  • or $LOCALE and $LOCALES_PATH (default: ./locales).

Loads texts from:

  • or $TEXTS_PATH
  • or {$LOCALES_PATH}/{$LOCALE}.yml"

Example

from i_texts import texts

assert texts.dict == {1: "1", "a": "a", "words": "a b c", "ru": "русский"}
assert texts[1] == "1"
assert texts["a"] == "a"
assert texts.get_words("words") == ["a", "b", "c"]

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

i-texts-0.2.0.tar.gz (1.7 kB view hashes)

Uploaded Source

Built Distribution

i_texts-0.2.0-py3-none-any.whl (2.2 kB view hashes)

Uploaded Python 3

Supported by

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