Skip to main content

Requirements

  • Python 3.6+

Installation & Upgrade

pip install basalam.backbone-translation

Usage

from backbone_translation.translator import Translator

translator = Translator({
    "messages.greeting" : "Bonjour {name}"
})

# OR translator = Translator.from_json_file("path_to_json_file")

translator.translate("messages.greeting", name="Mojtabaa")
# Bonjour Mojtabaa

Testing

# install pytest
pip install pytest

# run tests
python -m pytest

Changelog

  • 0.0.2 added from_json_file method
  • 0.0.3 Now build and push are done using gitlab-ci
  • 0.0.4 new exists(phrase: str) -> bool method
  • 0.1.0 added utf-8 encoding thanks to alimohammayali@gmail.com

Metadata

Release files for basalam.backbone-translation 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 basalam.backbone-translation 1.0.1
File Size Uploaded
basalam_backbone_translation-1.0.1.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for basalam.backbone-translation 1.0.1
File Interpreter ABI Platform
basalam.backbone_translation-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / basalam_backbone_translation-1.0.1.tar.gz

Download URL basalam_backbone_translation-1.0.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1dab2464fa1f2488c4cc6669b552e8a1115a3bec2ea7ebfa2d34be253256a48b
BLAKE2b-256 checksum
How to use checksums
ac5f2f5d4a33fef37cb960ab67f9c2bbd7c3294c612908f7c802d191d79e60d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Release files / basalam.backbone_translation-1.0.1-py3-none-any.whl

Download URL basalam.backbone_translation-1.0.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df2f5ae34421b24eebc1b4a631e9c2cd4460a833f847fe6a49f51ce10dcf6fc4
BLAKE2b-256 checksum
How to use checksums
5ab4f08f3ad86f7308e196013f44c776b538a6fb863ab80271342b0d82ee869c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

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