pons.py
An API wrapper for the PONS dictionary written in PythonInstallation
$ pip install pons.py
Usage
from pons import Client
pons = Client("YOUR_SECRET") # see PONS API reference
# get dictionaries
# params: language (de|el|en|es|fr|it|pl|pt|ru|sl|tr|zh)
dictionaries = pons.get_dictionaries("en") # returns a list of Dictionary objects
# get translations
# required params: term, dictionary, source language
# optional params: output language, fuzzy (bool), references (bool)
entries = pons.query("term", "deen", "en")["en"] # returns a list of EntryHit objects
entries[0].translations # returns a list of translations (strings)
References
Release files for pons.py 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pons.py-1.1.1.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pons.py-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / pons.py-1.1.1.tar.gz
| Download URL | pons.py-1.1.1.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c88c7a3e11aa261d0e9aae67bdd0f95e62c1b761dd4510f02fc6a95317b5a823
|
|
BLAKE2b-256 checksum How to use checksums |
39f092dbf51abf6ee1070ad8e0efbb99f62e8ba7345164f44acbe937aacb83ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / pons.py-1.1.1-py3-none-any.whl
| Download URL | pons.py-1.1.1-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
166ff68ad99e54b3f363181044acf348d6684731fc538dc86302f4312840fee6
|
|
BLAKE2b-256 checksum How to use checksums |
edf1ab9f269cba61fb1682c7cf6fb0e61766d1a092df37dfcc7e10fe4ab6103a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|