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.10.tar.gz (5.9 MB view details)

Uploaded Source

Built Distribution

mediawiki_langcodes-0.2.10-py3-none-any.whl (5.9 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mediawiki_langcodes-0.2.10.tar.gz
  • Upload date:
  • Size: 5.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for mediawiki_langcodes-0.2.10.tar.gz
Algorithm Hash digest
SHA256 24509bdb6e6d13659e6fd18ff8931ce5618032258c4f3261b9e2b4d434810fe4
MD5 99077938fedd80ccead09341504febc4
BLAKE2b-256 f25004cb523ea8d4bab02b5e2c0f1077adf839b0063ddc376b7deb9aa3b7def6

See more details on using hashes here.

Provenance

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

Publisher: release.yml on xxyzz/mediawiki_langcodes

Attestations:

File details

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

File metadata

File hashes

Hashes for mediawiki_langcodes-0.2.10-py3-none-any.whl
Algorithm Hash digest
SHA256 84becb09e8c750d9cce383afde57f8c9903062c9fd197d350b116d3348adf570
MD5 34f7cd5bb96edff01d343c9684b1d1fc
BLAKE2b-256 c711c06b4976c7d85b7412cb86636c243e6f819f29eeb36eb35502c580e9bd09

See more details on using hashes here.

Provenance

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

Publisher: release.yml on xxyzz/mediawiki_langcodes

Attestations:

Supported by

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