Skip to main content
Documentation Status https://travis-ci.org/MacHu-GWU/loc-project.svg?branch=master https://codecov.io/gh/MacHu-GWU/loc-project/branch/master/graph/badge.svg https://img.shields.io/pypi/v/loc.svg https://img.shields.io/pypi/l/loc.svg https://img.shields.io/pypi/pyversions/loc.svg https://img.shields.io/badge/STAR_Me_on_GitHub!--None.svg?style=social
https://img.shields.io/badge/Link-Document-blue.svg https://img.shields.io/badge/Link-API-blue.svg https://img.shields.io/badge/Link-Source_Code-blue.svg https://img.shields.io/badge/Link-Install-blue.svg https://img.shields.io/badge/Link-GitHub-blue.svg https://img.shields.io/badge/Link-Submit_Issue-blue.svg https://img.shields.io/badge/Link-Request_Feature-blue.svg https://img.shields.io/badge/Link-Download-blue.svg

Welcome to loc Documentation

loc is a library that simplify the software localization.

Usage:

>>> from loc import LocDict
>>> data = [
        {"en-US": "Yes", "zh-CN": "是"},
        {"en-US": "No", "zh-CN": "否"},
    ]

>>> ld = LocDict(data=data)
>>> ld.trans_to("Yes", dst_loc="zh-CN")
是

Install

loc is released on PyPI, so all you need is:

$ pip install loc

To upgrade to latest version:

$ pip install --upgrade loc

Metadata

Release files for loc 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for loc 0.0.2
File Size Uploaded Provenance Actions
loc-0.0.2.tar.gz 12.2 kB Without provenance Details for loc-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for loc 0.0.2
File Interpreter ABI Platform Actions
loc-0.0.2-py2.py3-none-any.whl Python 2, Python 3 none any Details for loc-0.0.2-py2.py3-none-any.whl

Total release size: 32.6 kB

Release files / loc-0.0.2.tar.gz

Download URL loc-0.0.2.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6c49a01faeea17ed58d93f4bb8e077fb710da87dc76a3f2f771891418c52ea32
BLAKE2b-256 checksum
How to use checksums
14df9ee3c947426c91fc86131ed2702cc187520c6c6af2b74788aed6d3940905
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.13

Release files / loc-0.0.2-py2.py3-none-any.whl

Download URL loc-0.0.2-py2.py3-none-any.whl
Size 20.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ffe4a00ff2e178f3bc46c34bf8f9cba7fa85342ffa28d63dd8dee517fc049094
BLAKE2b-256 checksum
How to use checksums
1f8ce0dd00fe49b5a65c9c1848e0fa3a2b3a5e19a850b96340c7981e073bd2f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.13

Security for loc 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

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