league-connection


Nameleague-connection JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/sandbox-pokhara/league-connection
SummaryPython package to communicate to riot client and league client
upload_time2022-03-27 07:20:19
maintainer
docs_urlNone
authorPradish Bijukchhe
requires_python>=3.6
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # league-connection

league-connection is a python package to communicate to riot client and league client.

## Installation

```
pip install league-connection
```

## Examples

### Logging in (Riot Client)

```
>>> import os
>>> from league_connection import LeagueConnection
>>> lockfile = os.path.expanduser('~\\AppData\\Local\\Riot Games\\Riot Client\\Config\\lockfile')
>>> connection = LeagueConnection(lockfile, timeout=10)
>>> data = {'username': 'yourusername', 'password': 'yourpassword', 'persistLogin': False}
>>> res = connection.put('/rso-auth/v1/session/credentials', json=data)
>>> res.status_code
201
```

### Change summoner icon (League Client)

```
>>> from league_connection import LeagueConnection
>>> lockfile = 'C:\\Riot Games\\League of Legends\\lockfile'
>>> connection = LeagueConnection(lockfile, timeout=10)
>>> data = {'profileIconId': 1}
>>> res = connection.put('/lol-summoner/v1/current-summoner/icon', json=data)
>>> res.status_code
201
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sandbox-pokhara/league-connection",
    "name": "league-connection",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "Pradish Bijukchhe",
    "author_email": "pradishbijukchhe@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/56/88/a92d0e98b76773bcb62a61ad711aa7ecae47e59d978cad1529667b32c73b/league-connection-1.0.1.tar.gz",
    "platform": null,
    "description": "# league-connection\n\nleague-connection is a python package to communicate to riot client and league client.\n\n## Installation\n\n```\npip install league-connection\n```\n\n## Examples\n\n### Logging in (Riot Client)\n\n```\n>>> import os\n>>> from league_connection import LeagueConnection\n>>> lockfile = os.path.expanduser('~\\\\AppData\\\\Local\\\\Riot Games\\\\Riot Client\\\\Config\\\\lockfile')\n>>> connection = LeagueConnection(lockfile, timeout=10)\n>>> data = {'username': 'yourusername', 'password': 'yourpassword', 'persistLogin': False}\n>>> res = connection.put('/rso-auth/v1/session/credentials', json=data)\n>>> res.status_code\n201\n```\n\n### Change summoner icon (League Client)\n\n```\n>>> from league_connection import LeagueConnection\n>>> lockfile = 'C:\\\\Riot Games\\\\League of Legends\\\\lockfile'\n>>> connection = LeagueConnection(lockfile, timeout=10)\n>>> data = {'profileIconId': 1}\n>>> res = connection.put('/lol-summoner/v1/current-summoner/icon', json=data)\n>>> res.status_code\n201\n```\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Python package to communicate to riot client and league client",
    "version": "1.0.1",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a2d33ca1f588252f96926f15b564248387a258a32bede93712007dfaf63f09b2",
                "md5": "32ef6f325195ccad5c52fe0aed44c4d8",
                "sha256": "1e21f5e60f4a534efaf564d984b16ad63c745b85731c31cc66204a166790dddd"
            },
            "downloads": -1,
            "filename": "league_connection-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "32ef6f325195ccad5c52fe0aed44c4d8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 4046,
            "upload_time": "2022-03-27T07:20:17",
            "upload_time_iso_8601": "2022-03-27T07:20:17.245563Z",
            "url": "https://files.pythonhosted.org/packages/a2/d3/3ca1f588252f96926f15b564248387a258a32bede93712007dfaf63f09b2/league_connection-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5688a92d0e98b76773bcb62a61ad711aa7ecae47e59d978cad1529667b32c73b",
                "md5": "b15246c7408da63976296c3a5bf3a248",
                "sha256": "eee8edd679ab7cbe69b5f7b43399030e45584ce1c9c8fc49b96b644eabeefeab"
            },
            "downloads": -1,
            "filename": "league-connection-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b15246c7408da63976296c3a5bf3a248",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3302,
            "upload_time": "2022-03-27T07:20:19",
            "upload_time_iso_8601": "2022-03-27T07:20:19.068910Z",
            "url": "https://files.pythonhosted.org/packages/56/88/a92d0e98b76773bcb62a61ad711aa7ecae47e59d978cad1529667b32c73b/league-connection-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-03-27 07:20:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "sandbox-pokhara",
    "github_project": "league-connection",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "league-connection"
}
        
Elapsed time: 0.05236s