Skip to main content

pons.py

An API wrapper for the PONS dictionary written in Python

Installation

$ 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

Metadata

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)

Source distribution for pons.py 1.1.1
File Size Uploaded Provenance Actions
pons.py-1.1.1.tar.gz 4.2 kB Without provenance Details for pons.py-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pons.py 1.1.1
File Interpreter ABI Platform Actions
pons.py-1.1.1-py3-none-any.whl Python 3 none any Details for pons.py-1.1.1-py3-none-any.whl

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

Security for pons.py 1.1.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page