pons.py


Namepons.py JSON
Version 1.1.1 PyPI version JSON
download
home_pagehttps://github.com/Dorukyum/pons.py
SummaryAn API wrapper for the PONS dictionary
upload_time2024-01-13 09:18:45
maintainer
docs_urlNone
authorDorukyum
requires_python
licenseMIT
keywords api dictionary
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
  <h1>pons.py</h1>
  An API wrapper for the PONS dictionary written in Python
</div>

## Installation
```sh
$ pip install pons.py
```

## Usage
```py
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
- [PONS API Reference](https://en.pons.com/p/online-dictionary/developers/api)
- [API Documentation](https://en.pons.com/p/files/uploads/pons/api/api-documentation.pdf)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Dorukyum/pons.py",
    "name": "pons.py",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "API,dictionary",
    "author": "Dorukyum",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/39/f0/92dbf51abf6ee1070ad8e0efbb99f62e8ba7345164f44acbe937aacb83ee/pons.py-1.1.1.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n  <h1>pons.py</h1>\n  An API wrapper for the PONS dictionary written in Python\n</div>\n\n## Installation\n```sh\n$ pip install pons.py\n```\n\n## Usage\n```py\nfrom pons import Client\n\npons = Client(\"YOUR_SECRET\")  # see PONS API reference\n\n# get dictionaries\n# params: language (de|el|en|es|fr|it|pl|pt|ru|sl|tr|zh)\ndictionaries = pons.get_dictionaries(\"en\")        # returns a list of Dictionary objects\n\n# get translations\n# required params: term, dictionary, source language\n# optional params: output language, fuzzy (bool), references (bool)\nentries = pons.query(\"term\", \"deen\", \"en\")[\"en\"]  # returns a list of EntryHit objects\nentries[0].translations                           # returns a list of translations (strings)\n```\n\n## References\n- [PONS API Reference](https://en.pons.com/p/online-dictionary/developers/api)\n- [API Documentation](https://en.pons.com/p/files/uploads/pons/api/api-documentation.pdf)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "An API wrapper for the PONS dictionary",
    "version": "1.1.1",
    "project_urls": {
        "Homepage": "https://github.com/Dorukyum/pons.py",
        "Source": "https://github.com/Dorukyum/pons.py"
    },
    "split_keywords": [
        "api",
        "dictionary"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "edf1ab9f269cba61fb1682c7cf6fb0e61766d1a092df37dfcc7e10fe4ab6103a",
                "md5": "deb8fcdd0f2deeb21121a6ba921184ef",
                "sha256": "166ff68ad99e54b3f363181044acf348d6684731fc538dc86302f4312840fee6"
            },
            "downloads": -1,
            "filename": "pons.py-1.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "deb8fcdd0f2deeb21121a6ba921184ef",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4908,
            "upload_time": "2024-01-13T09:18:43",
            "upload_time_iso_8601": "2024-01-13T09:18:43.478177Z",
            "url": "https://files.pythonhosted.org/packages/ed/f1/ab9f269cba61fb1682c7cf6fb0e61766d1a092df37dfcc7e10fe4ab6103a/pons.py-1.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "39f092dbf51abf6ee1070ad8e0efbb99f62e8ba7345164f44acbe937aacb83ee",
                "md5": "8af2768457cf0e798a8017ce160349d7",
                "sha256": "c88c7a3e11aa261d0e9aae67bdd0f95e62c1b761dd4510f02fc6a95317b5a823"
            },
            "downloads": -1,
            "filename": "pons.py-1.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "8af2768457cf0e798a8017ce160349d7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4243,
            "upload_time": "2024-01-13T09:18:45",
            "upload_time_iso_8601": "2024-01-13T09:18:45.115276Z",
            "url": "https://files.pythonhosted.org/packages/39/f0/92dbf51abf6ee1070ad8e0efbb99f62e8ba7345164f44acbe937aacb83ee/pons.py-1.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-13 09:18:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Dorukyum",
    "github_project": "pons.py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pons.py"
}
        
Elapsed time: 2.16637s