ddapi


Nameddapi JSON
Version 0.1.2 PyPI version JSON
download
home_pagehttps://github.com/ByFox213/ddapi
Summaryddapi
upload_time2024-01-22 08:04:41
maintainer
docs_urlNone
authorByFox
requires_python>=3.8
licenseMIT License Copyright (c) 2024 ByFox Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords feed reader tutorial
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ddapi is an api from the ddnet and qwik website
## Installation

```bash
  pip install ddapi
```
    
## Usage/Examples

DDnet
```python
import asyncio
from ddapi import DDnetApi, DDPlayer


async def main():
    obj = DDnetApi()
    nickname = "Cor"
    user: DDPlayer = await obj.player(nickname)
    if user is None:
        return "Player not found"
    print(f"{user.player}: {user.points.points}")
    # Cor: 31473 
    await obj.close()  # Closing client Not necessary
    assert isinstance(user, DDPlayer)


asyncio.run(main())
```

qwik

```python
import asyncio
from ddapi import Player, QwikAPI


async def main():
    obj = QwikAPI()
    nickname = "ByFox"
    user = await obj.player(nickname)
    if user is None:
        return "Player not found"
    print(f"{user.player}: {user.points.points}")
    # Cor: 31473 
    await obj.close()  # Closing client Not necessary
    assert isinstance(user, Player)


asyncio.run(main())
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ByFox213/ddapi",
    "name": "ddapi",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "feed,reader,tutorial",
    "author": "ByFox",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/90/3b/1921a38d8943c21265aa6c82a87a04672da46202b66729e21acbb9b95f24/ddapi-0.1.2.tar.gz",
    "platform": null,
    "description": "ddapi is an api from the ddnet and qwik website\r\n## Installation\r\n\r\n```bash\r\n  pip install ddapi\r\n```\r\n    \r\n## Usage/Examples\r\n\r\nDDnet\r\n```python\r\nimport asyncio\r\nfrom ddapi import DDnetApi, DDPlayer\r\n\r\n\r\nasync def main():\r\n    obj = DDnetApi()\r\n    nickname = \"Cor\"\r\n    user: DDPlayer = await obj.player(nickname)\r\n    if user is None:\r\n        return \"Player not found\"\r\n    print(f\"{user.player}: {user.points.points}\")\r\n    # Cor: 31473 \r\n    await obj.close()  # Closing client Not necessary\r\n    assert isinstance(user, DDPlayer)\r\n\r\n\r\nasyncio.run(main())\r\n```\r\n\r\nqwik\r\n\r\n```python\r\nimport asyncio\r\nfrom ddapi import Player, QwikAPI\r\n\r\n\r\nasync def main():\r\n    obj = QwikAPI()\r\n    nickname = \"ByFox\"\r\n    user = await obj.player(nickname)\r\n    if user is None:\r\n        return \"Player not found\"\r\n    print(f\"{user.player}: {user.points.points}\")\r\n    # Cor: 31473 \r\n    await obj.close()  # Closing client Not necessary\r\n    assert isinstance(user, Player)\r\n\r\n\r\nasyncio.run(main())\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 ByFox  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "ddapi",
    "version": "0.1.2",
    "project_urls": {
        "Homepage": "https://github.com/ByFox213/ddapi"
    },
    "split_keywords": [
        "feed",
        "reader",
        "tutorial"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "67c8f3c2666cf59905aff44768272f05cf28d99746f264855465c34a8905a481",
                "md5": "c7795f3f8617b92e86cadc16beda9d35",
                "sha256": "5248adda118cb78b6e8a86ca3933ba73187e6527689220f427b19ee9254b8732"
            },
            "downloads": -1,
            "filename": "ddapi-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c7795f3f8617b92e86cadc16beda9d35",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 7487,
            "upload_time": "2024-01-22T08:04:40",
            "upload_time_iso_8601": "2024-01-22T08:04:40.499710Z",
            "url": "https://files.pythonhosted.org/packages/67/c8/f3c2666cf59905aff44768272f05cf28d99746f264855465c34a8905a481/ddapi-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "903b1921a38d8943c21265aa6c82a87a04672da46202b66729e21acbb9b95f24",
                "md5": "22d500ea669e87e4a1d80110455bcbda",
                "sha256": "b195aefb312f14e717ea52ad590eb2fa18c45e13d56aa01431bd7b30cffa1e4f"
            },
            "downloads": -1,
            "filename": "ddapi-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "22d500ea669e87e4a1d80110455bcbda",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 7106,
            "upload_time": "2024-01-22T08:04:41",
            "upload_time_iso_8601": "2024-01-22T08:04:41.873784Z",
            "url": "https://files.pythonhosted.org/packages/90/3b/1921a38d8943c21265aa6c82a87a04672da46202b66729e21acbb9b95f24/ddapi-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-22 08:04:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ByFox213",
    "github_project": "ddapi",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "ddapi"
}
        
Elapsed time: 0.25284s