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.23.tar.gz (6.9 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.23-py3-none-any.whl (6.9 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mediawiki_langcodes-0.2.23.tar.gz
Algorithm Hash digest
SHA256 5f8c96ca410806b74f9d8425cc9f7df65608d2fdcf2943a34c7eda1b2371d67f
MD5 5060401679a27d5545bdb884b1a8c6de
BLAKE2b-256 d456a8fbea2ef18032277911367c9f45b3f04d70639682af4b751aea972bfc52

See more details on using hashes here.

Provenance

The following attestation bundles were made for mediawiki_langcodes-0.2.23.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.23-py3-none-any.whl.

File metadata

File hashes

Hashes for mediawiki_langcodes-0.2.23-py3-none-any.whl
Algorithm Hash digest
SHA256 324eb91755c4b66336a9e3e4c1987ae599d3e645be67b8d15e11fab368eeef6f
MD5 f44270cfabfbcc144fc75cf044f8d391
BLAKE2b-256 8028a0cd371d0f24f916c8fded54f7593925393bba0ae2e5c68833dbe0b6a3e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for mediawiki_langcodes-0.2.23-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