Skip to main content

IPL Battlefy Toolkit

Project description

Battlefy-Toolkit

A toolkit to download Battlefy data made by Inkling Research Labs (IPL). Code on Github.

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.
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, 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/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

battlefy_toolkit-Slate-1.3.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

battlefy_toolkit_Slate-1.3.0-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file battlefy_toolkit-Slate-1.3.0.tar.gz.

File metadata

File hashes

Hashes for battlefy_toolkit-Slate-1.3.0.tar.gz
Algorithm Hash digest
SHA256 31085573eb1302f2f221d6f3b563d9169546b65e65ef7abc5bf97dc1b96bd016
MD5 130487752b3c9cf9a5f77d03fa4dbbcc
BLAKE2b-256 3c71a1993e98d3a6d71e3df9667486f9bb8a37f8083e4c53ae53e2647d5136cc

See more details on using hashes here.

File details

Details for the file battlefy_toolkit_Slate-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for battlefy_toolkit_Slate-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2bc74bf3050c749e167a2d70bffa92e1bc1a8b0c5af23d54d8654ed1e79bef4
MD5 cc75ca8abca390d2ba61ef2b67262c86
BLAKE2b-256 0c808e1447ddcddfd5c1f2d7448242cec68c76b1bda621908b8d5b62ca5e094e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page