Skip to main content

Convert MediaWiki language names and codes

Project description

MediaWiki langcodes

Convert MediaWiki language names and language codes.

Build dependencies

  • php

  • wget

Build

$ python -m venv .venv
$ source .venv/bin/activate.fish
$ python -m pip install -U pip build
$ make

Usage

from mediawiki_langcodes import code_to_name, name_to_code

code_to_name("fr")  # return "français"
code_to_name("fr", "en")  # return "French"
name_to_code("français")  # return "fr"
name_to_code("français", "fr")  # return "fr"

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

mediawiki_langcodes-0.2.18.tar.gz (6.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mediawiki_langcodes-0.2.18-py3-none-any.whl (6.3 MB view details)

Uploaded Python 3

File details

Details for the file mediawiki_langcodes-0.2.18.tar.gz.

File metadata

  • Download URL: mediawiki_langcodes-0.2.18.tar.gz
  • Upload date:
  • Size: 6.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mediawiki_langcodes-0.2.18.tar.gz
Algorithm Hash digest
SHA256 f701e5212143d8f738a80fa4006476c915d16f2e8d1a44114cea1a99aa050b15
MD5 b6a8a763052a782bde298e0ae0ff377b
BLAKE2b-256 3f434ca0fefbb87bced9416e3debe559858ca3a9d8e6259eda04eff98f232399

See more details on using hashes here.

Provenance

The following attestation bundles were made for mediawiki_langcodes-0.2.18.tar.gz:

Publisher: release.yml on xxyzz/mediawiki_langcodes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mediawiki_langcodes-0.2.18-py3-none-any.whl.

File metadata

File hashes

Hashes for mediawiki_langcodes-0.2.18-py3-none-any.whl
Algorithm Hash digest
SHA256 86450b9ecd87629b81378ded9fe85e56dca5458eb90ca7609a56c6cf8351913f
MD5 444d8b8dc942155fc76f7f56557a17da
BLAKE2b-256 60ab279d43140b6aceb59d12a6621697bbfd55d62159f87608cc83b808d19046

See more details on using hashes here.

Provenance

The following attestation bundles were made for mediawiki_langcodes-0.2.18-py3-none-any.whl:

Publisher: release.yml on xxyzz/mediawiki_langcodes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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