# Battlefy-Toolkit
A toolkit to download Battlefy data made by Inkling Research Labs (IPL).
Code on [Github](https://github.com/IPLSplatoon/Battlefy-Toolkit).
Import prefix is `battlefy_toolkit`.
## Requirements
- Python 3.9+
## DiscordIdResolver
- Can translate a Discord Id to information.
- If multiple requests are to be made, a single DiscordIdResolver should be created and resolve_discord_id called multiply.
```python
if __name__ == '__main__':
from battlefy_toolkit.resolvers.DiscordIdResolver import DiscordIdResolver
resolver = DiscordIdResolver(f"your.bot.token")
info1 = resolver.resolve_discord_id(97288493029416960)
info2 = resolver.resolve_discord_id(763492840038465537)
print(info1.qualified_username)
print(info2.qualified_username)
```
## Distribution
1. Update the version info in [setup.py](setup.py), then,
2. Commands should be entered into the venv console:
Windows:
rmdir /S build
rmdir /S dist
py -m pip install --upgrade build
py -m build
py -m pip install --upgrade twine
py -m twine upload dist/*
Linux:
rm -r build
rm -r dist
python3 -m pip install --upgrade build
python3 -m build
python3 -m pip install --upgrade twine
python3 -m twine upload dist/*
Raw data
{
"_id": null,
"home_page": "https://github.com/IPLSplatoon/Battlefy-Toolkit",
"name": "battlefy-toolkit-Slate",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9, <4",
"maintainer_email": "",
"keywords": "ipl,inkling performance labs,battlefy,splatoon,slate",
"author": "IPL/Slate",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/3c/71/a1993e98d3a6d71e3df9667486f9bb8a37f8083e4c53ae53e2647d5136cc/battlefy_toolkit-Slate-1.3.0.tar.gz",
"platform": null,
"description": "# Battlefy-Toolkit\r\nA toolkit to download Battlefy data made by Inkling Research Labs (IPL).\r\nCode on [Github](https://github.com/IPLSplatoon/Battlefy-Toolkit).\r\n\r\nImport prefix is `battlefy_toolkit`.\r\n\r\n## Requirements\r\n- Python 3.9+\r\n\r\n## DiscordIdResolver\r\n- Can translate a Discord Id to information.\r\n- If multiple requests are to be made, a single DiscordIdResolver should be created and resolve_discord_id called multiply. \r\n```python\r\nif __name__ == '__main__':\r\n from battlefy_toolkit.resolvers.DiscordIdResolver import DiscordIdResolver\r\n resolver = DiscordIdResolver(f\"your.bot.token\")\r\n info1 = resolver.resolve_discord_id(97288493029416960)\r\n info2 = resolver.resolve_discord_id(763492840038465537)\r\n print(info1.qualified_username)\r\n print(info2.qualified_username)\r\n```\r\n\r\n## Distribution\r\n1. Update the version info in [setup.py](setup.py), then,\r\n2. Commands should be entered into the venv console:\r\n\r\nWindows:\r\n\r\n rmdir /S build\r\n rmdir /S dist\r\n py -m pip install --upgrade build\r\n py -m build\r\n py -m pip install --upgrade twine\r\n py -m twine upload dist/*\r\n\r\nLinux:\r\n\r\n rm -r build\r\n rm -r dist\r\n python3 -m pip install --upgrade build\r\n python3 -m build\r\n python3 -m pip install --upgrade twine\r\n python3 -m twine upload dist/*\r\n",
"bugtrack_url": null,
"license": "",
"summary": "IPL Battlefy Toolkit",
"version": "1.3.0",
"split_keywords": [
"ipl",
"inkling performance labs",
"battlefy",
"splatoon",
"slate"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0c808e1447ddcddfd5c1f2d7448242cec68c76b1bda621908b8d5b62ca5e094e",
"md5": "cc75ca8abca390d2ba61ef2b67262c86",
"sha256": "d2bc74bf3050c749e167a2d70bffa92e1bc1a8b0c5af23d54d8654ed1e79bef4"
},
"downloads": -1,
"filename": "battlefy_toolkit_Slate-1.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cc75ca8abca390d2ba61ef2b67262c86",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9, <4",
"size": 19982,
"upload_time": "2023-02-05T00:45:08",
"upload_time_iso_8601": "2023-02-05T00:45:08.305893Z",
"url": "https://files.pythonhosted.org/packages/0c/80/8e1447ddcddfd5c1f2d7448242cec68c76b1bda621908b8d5b62ca5e094e/battlefy_toolkit_Slate-1.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3c71a1993e98d3a6d71e3df9667486f9bb8a37f8083e4c53ae53e2647d5136cc",
"md5": "130487752b3c9cf9a5f77d03fa4dbbcc",
"sha256": "31085573eb1302f2f221d6f3b563d9169546b65e65ef7abc5bf97dc1b96bd016"
},
"downloads": -1,
"filename": "battlefy_toolkit-Slate-1.3.0.tar.gz",
"has_sig": false,
"md5_digest": "130487752b3c9cf9a5f77d03fa4dbbcc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9, <4",
"size": 15511,
"upload_time": "2023-02-05T00:45:10",
"upload_time_iso_8601": "2023-02-05T00:45:10.244723Z",
"url": "https://files.pythonhosted.org/packages/3c/71/a1993e98d3a6d71e3df9667486f9bb8a37f8083e4c53ae53e2647d5136cc/battlefy_toolkit-Slate-1.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-05 00:45:10",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "IPLSplatoon",
"github_project": "Battlefy-Toolkit",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "requests",
"specs": [
[
"~=",
"2.23.0"
]
]
},
{
"name": "python-dateutil",
"specs": [
[
"~=",
"2.8.1"
]
]
}
],
"lcname": "battlefy-toolkit-slate"
}