Metadata-Version: 2.1
Name: battlefy_toolkit-Slate
Version: 1.1.2
Summary: IPL Battlefy Toolkit
Home-page: https://github.com/IPLSplatoon/Battlefy-Toolkit
Author: IPL
Author-email: security@iplabs.ink
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/IPLSplatoon/Battlefy-Toolkit/issues
Project-URL: Home, https://iplabs.ink/
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE

# 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__':
    resolver = DiscordIdResolver(BOT_TOKEN)
    info1 = resolver.resolve_discord_id(97288493029416960)
    info2 = resolver.resolve_discord_id(763492840038465537)
    print(info1.qualified_username)
    print(info2.qualified_username)
```

## Distribution
The following 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/*

