An API wrapper for the PONS dictionary
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pons.py-1.1.1.tar.gz
(4.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pons.py-1.1.1.tar.gz.
File metadata
- Download URL: pons.py-1.1.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c88c7a3e11aa261d0e9aae67bdd0f95e62c1b761dd4510f02fc6a95317b5a823
|
|
| MD5 |
8af2768457cf0e798a8017ce160349d7
|
|
| BLAKE2b-256 |
39f092dbf51abf6ee1070ad8e0efbb99f62e8ba7345164f44acbe937aacb83ee
|
File details
Details for the file pons.py-1.1.1-py3-none-any.whl.
File metadata
- Download URL: pons.py-1.1.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
166ff68ad99e54b3f363181044acf348d6684731fc538dc86302f4312840fee6
|
|
| MD5 |
deb8fcdd0f2deeb21121a6ba921184ef
|
|
| BLAKE2b-256 |
edf1ab9f269cba61fb1682c7cf6fb0e61766d1a092df37dfcc7e10fe4ab6103a
|