Skip to main content

langSrc

Install

pip3 install langSrc

Demo

from langSrc import LanguageDetector

lang = LanguageDetector("zh", "lang.json")
lang.register(
    "language",
    {
        "zh": "语言",
        "en": "Language",
        "jp": "言語",
        "kor": "언어",
        "fra": "Langue",
        "spa": "Idioma",
        "th": "ภาษา",
    },
)

print(lang.language) # or print(lang["language"])

# 语言

This will generate a file named lang.json:

{
  "language": {
    "zh": "语言",
    "en": "Language",
    "jp": "言語",
    "kor": "언어",
    "fra": "Langue",
    "spa": "Idioma",
    "th": "ภาษา"
  }
}

Metadata

Release files for langsrc 0.0.9

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

Source distribution (sdist)

Source distribution for langsrc 0.0.9
File Size Uploaded Provenance Actions
langsrc-0.0.9.tar.gz 2.1 kB Without provenance Details for langsrc-0.0.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langsrc 0.0.9
File Interpreter ABI Platform Actions
langsrc-0.0.9-py3-none-any.whl Python 3 none any Details for langsrc-0.0.9-py3-none-any.whl

Total release size: 4.7 kB

Release files / langsrc-0.0.9.tar.gz

Download URL langsrc-0.0.9.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
703344d37ef797f60fc7038064181aebda270570fb5cf001c62838f5b7c71baf
BLAKE2b-256 checksum
How to use checksums
309f8404e65f951dff634dd7d1d1e0784a487bb9035d89074b195b9132996729
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / langsrc-0.0.9-py3-none-any.whl

Download URL langsrc-0.0.9-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
724d282b57a7426398e1b375cbbe103bb7df772ed4dc2627582aca44c936122b
BLAKE2b-256 checksum
How to use checksums
12a21c4d15bef140918952e0cf7abf24020b374d980fa3c2d4fdd5c0861737f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Security for langsrc 0.0.9

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.

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