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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mediawiki_langcodes-0.2.11.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.11.tar.gz
Algorithm Hash digest
SHA256 2d944cd71004ab22686f3964b7aa476cb1bb476ddb807ba3eb99d4dd75215d9e
MD5 4553b077fdde4c70ddf2bc00c1a5e139
BLAKE2b-256 3d53375ada02be39a13fd6f649dbb00de7b400357e7e5eb9abb3d9925629dfc8

See more details on using hashes here.

Provenance

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

Publisher: release.yml on xxyzz/mediawiki_langcodes

Attestations:

File details

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

File metadata

File hashes

Hashes for mediawiki_langcodes-0.2.11-py3-none-any.whl
Algorithm Hash digest
SHA256 f646ca2cdaebb42c5488a4504d62badaa04f886d62f0786b703233c99dbcd341
MD5 b9ba6e317bb4433d31d49293565eaf91
BLAKE2b-256 3798fdde19ff71a645bd56d74772632b80c9a4b06f3c18ef214405c231b84df3

See more details on using hashes here.

Provenance

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