/ipaˈnẽmɐ/
ipanema provides an API in various programming languages to access the Wiktionary language database and other language-related data.
Python
$ python
>>> from ipanema import query_language
>>> query_language('ca')
{'code': 'ca', 'canonical_name': 'Catalan', 'family': {'code': 'roa-ocr', 'canonical_name': 'Occitano-Romance', 'wikidata_item': 'Q599958', 'parent_family': 'Gallo-Romance', 'proto_language_code': None}, 'ancestor': 'Old Catalan', 'parent': 'None', 'wikidata_item': 'Q7026'}
>>> query_language('Deutsch')
{'code': 'de', 'canonical_name': 'German', 'family': {'code': 'gmw-hgm', 'canonical_name': 'High German', 'wikidata_item': 'Q52040', 'parent_family': 'West Germanic', 'proto_language_code': 'goh'}, 'ancestor': 'Early New High German', 'parent': 'None', 'wikidata_item': 'Q188'}
>>> from ipanema import query_family
>>> query_family('Indo-European')
{'code': 'ine', 'canonical_name': 'Indo-European', 'wikidata_item': 'Q19860', 'parent_family': 'None', 'proto_language_code': 'ine-pro'}
Java
import ipanema.language.model.Language;
import ipanema.language.model.LanguageData;
Optional<Language> ca = LanguageData.load().getLanguage("ca");
Swift
import Ipanema
let ca = try! Polyglot.sharedInstance.languageData("ca")
JSON
$ jq '.ca' data/lang_data.json
{
"ancestors": "roa-oca",
"canonicalName": "Catalan",
"family": "roa-ocr",
"scripts": "Latn",
"sort_key": {
"remove_diacritics": "̧̀́̈·"
},
"standard_chars": "AaÀàBbCcÇçDdEeÉéÈèFfGgHhIiÍíÏïJjLlMmNnOoÓóÒòPpQqRrSsTtUuÚúÜüVvXxYyZz· ',-‐‑‒–—…∅",
"type": "regular",
"wikidata_item": "Q7026"
}
SQLite
$ sqlite data/languages.sqlite
sqlite> select * from languages where code = 'ca';
ca|Catalan||roa-oca|roa-ocr|regular|Q7026
Language data
Data sources:
Extraction
The actual language data is stored in a submodule (ipanema-data). To update/regenerate the data manually:
$ apt-get install jq lua5.1 liblua5.1-dev luarocks # linux
$ brew install jq lua@5.1 luarocks # osx
$ make clean # delete stored data
$ make
Language codes
The Wiktionary language code is defined as follows:
- If the language has a two-letter code in the ISO 639-1 standard, then that code is used.
- If the language has a three-letter code in the ISO 639-3 standard, then that code is used.
- If the language has a three-letter code in the ISO 639-2 standard, then that code is used. (rare)
- Any language which does not have an ISO code, but which is to be included in Wiktionary, has a new Wiktionary-specific "exceptional" code devised for it.
License
The language data extracted from Wiktionary is subject to the Creative Commons license, CC BY-SA 4.0. The data has been transformed (into a machine-readable format), but not modified. The project itself is licensed as MIT, see LICENSE.
Metadata
Release files for ipanema 202610.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ipanema-202610.10-py3-none-any.whl | Python 3 | none | any | Details for ipanema-202610.10-py3-none-any.whl |
Release files / ipanema-202610.10-py3-none-any.whl
| Download URL | ipanema-202610.10-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c995ddd8fa8e9ed035f9cca5d0e9562f1fe2957704edb8c4628f95ca882f071
|
|
BLAKE2b-256 checksum How to use checksums |
7a1460dd269121b1f8dc24383128106e7aedfcd9fe1cd32c7183e4efa6708f70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for ipanema 202610.10
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.