clashofclans-api


Nameclashofclans-api JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/Acul747/ClashofClans-API
SummaryA Clash of Clans API
upload_time2023-02-06 10:17:02
maintainer
docs_urlNone
authorLuca Koch
requires_python>=3.11
licenseMIT License
keywords coc clash clashofclans
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ClashofClans-API
================

.. image:: https://img.shields.io/pypi/v/clashofclans-api.svg
    :target: https://pypi.org/project/clashofclans-api/
    :alt: PyPi

.. image:: https://img.shields.io/pypi/pyversions/clashofclans-api.svg
    :target: https://pypi.org/project/clashofclans-api/
    :alt: Supported Versions

.. image:: https://img.shields.io/github/license/acul747/clashofclans-api.svg
    :target: https://pypi.org/project/clashofclans-api/
    :alt: MIT License

ClashofClans-API is an easy to use API for the mobile game ClashofClans

Installing
----------

Install and update using `pip`_:

.. code-block:: text

    $ pip install clashofclans-api

.. _pip: https://pip.pypa.io/en/stable/getting-started/

Create an API token
-------------------
An API token is required to execute the script. You can create one `here`_.

A Simple Example
----------------

.. _here: https://developer.clashofclans.com/#/new-key
.. code-block:: python

    from ClashofClans import ClashofClans

    coc = ClashofClans("your API token")

    response = coc.players.get_player_info("e.g. #9Q8QYQ20Q or 9Q8QYQ20Q")

    print(response)

.. code-block:: text

    $ python3 file.py
        (200, <Response [200]>, {'tag': '#9Q8QYQ20Q', 'name': 'Orange', 'townHallLevel': 15, 'townHallWeaponLevel': 4, 'expLevel': 244, ...
.. _Supercell’s Fan Content Policy: https://supercell.com/en/fan-content-policy/.

Disclaimer
----------
This content is not affiliated with, endorsed, sponsored, or specifically approved by Supercell and Supercell is not responsible for it.
For more information see `Supercell’s Fan Content Policy`_.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Acul747/ClashofClans-API",
    "name": "clashofclans-api",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": "",
    "keywords": "coc,clash,clashofclans",
    "author": "Luca Koch",
    "author_email": "luca.koch@aon.at",
    "download_url": "https://files.pythonhosted.org/packages/be/66/09e1b12aa1f25efeb719edf8eb394f6bd2a4350615579fb7d60d4b28dad9/clashofclans-api-1.0.1.tar.gz",
    "platform": null,
    "description": "ClashofClans-API\n================\n\n.. image:: https://img.shields.io/pypi/v/clashofclans-api.svg\n    :target: https://pypi.org/project/clashofclans-api/\n    :alt: PyPi\n\n.. image:: https://img.shields.io/pypi/pyversions/clashofclans-api.svg\n    :target: https://pypi.org/project/clashofclans-api/\n    :alt: Supported Versions\n\n.. image:: https://img.shields.io/github/license/acul747/clashofclans-api.svg\n    :target: https://pypi.org/project/clashofclans-api/\n    :alt: MIT License\n\nClashofClans-API is an easy to use API for the mobile game ClashofClans\n\nInstalling\n----------\n\nInstall and update using `pip`_:\n\n.. code-block:: text\n\n    $ pip install clashofclans-api\n\n.. _pip: https://pip.pypa.io/en/stable/getting-started/\n\nCreate an API token\n-------------------\nAn API token is required to execute the script. You can create one `here`_.\n\nA Simple Example\n----------------\n\n.. _here: https://developer.clashofclans.com/#/new-key\n.. code-block:: python\n\n    from ClashofClans import ClashofClans\n\n    coc = ClashofClans(\"your API token\")\n\n    response = coc.players.get_player_info(\"e.g. #9Q8QYQ20Q or 9Q8QYQ20Q\")\n\n    print(response)\n\n.. code-block:: text\n\n    $ python3 file.py\n        (200, <Response [200]>, {'tag': '#9Q8QYQ20Q', 'name': 'Orange', 'townHallLevel': 15, 'townHallWeaponLevel': 4, 'expLevel': 244, ...\n.. _Supercell\u2019s Fan Content Policy: https://supercell.com/en/fan-content-policy/.\n\nDisclaimer\n----------\nThis content is not affiliated with, endorsed, sponsored, or specifically approved by Supercell and Supercell is not responsible for it.\nFor more information see `Supercell\u2019s Fan Content Policy`_.\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "A Clash of Clans API",
    "version": "1.0.1",
    "split_keywords": [
        "coc",
        "clash",
        "clashofclans"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c67378e06b4777ee2f80356c32a46bd5c659ec68d8a280dd54d843eeb221fd04",
                "md5": "5555b8f5d26c2c560a088f5dc4c7ac6e",
                "sha256": "05b2cbcb210662081cc90d05248cac9ecfb0bdbae20dc1d1008e1fef8a18c58f"
            },
            "downloads": -1,
            "filename": "clashofclans_api-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5555b8f5d26c2c560a088f5dc4c7ac6e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 5684,
            "upload_time": "2023-02-06T10:17:00",
            "upload_time_iso_8601": "2023-02-06T10:17:00.948844Z",
            "url": "https://files.pythonhosted.org/packages/c6/73/78e06b4777ee2f80356c32a46bd5c659ec68d8a280dd54d843eeb221fd04/clashofclans_api-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "be6609e1b12aa1f25efeb719edf8eb394f6bd2a4350615579fb7d60d4b28dad9",
                "md5": "71098d5675c3b14dd1373f524e19d7e8",
                "sha256": "b6f4eecc3e76ebef7d7a118c96b5c34bf365861b42174192c341a13e7e709fb9"
            },
            "downloads": -1,
            "filename": "clashofclans-api-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "71098d5675c3b14dd1373f524e19d7e8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 5258,
            "upload_time": "2023-02-06T10:17:02",
            "upload_time_iso_8601": "2023-02-06T10:17:02.583009Z",
            "url": "https://files.pythonhosted.org/packages/be/66/09e1b12aa1f25efeb719edf8eb394f6bd2a4350615579fb7d60d4b28dad9/clashofclans-api-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-06 10:17:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "Acul747",
    "github_project": "ClashofClans-API",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "clashofclans-api"
}
        
Elapsed time: 0.09331s