Skip to main content

Tracker Network Wrapper In Python.

Project description

ggpython

Tracker Network Wrapper In Python.

AppVeyor badge

Contents

Description

TrackerNetwork 非公式API。
Discord bot 用に作成しているものをPythonライブラリとして管理している。

Among its features... :

  • ゲームの情報を取得する機能
    • Valorant (Match, PlayableCharacter, Map, Weapon, Custom, Award, and its Summary)
  • 文字列整形機能
    • for console standard output.
    • for Discord text chat output.
  • スクレイピング用のChromiumエンジンWrapper

For more information, refer to the Documentation or Sample.

Installation

You can Download the latest installable version of ggpython for Windows (zip format).

The simplest way to install the latest version from PyPI is by using:

pip install --upgrade ggpython

If you want to install this for development purposes,
you can install directly from the GitHub repository:

git clone https://github.com/nakashimas/ggpython.git
cd ggpython
pip install .

also following:

pip install git+https://github.com/nakashimas/ggpython

Usage

Valorantのマッチリザルトを取得できる。(最大20件)

from ggpython import GGTrackerAPI, GAME

with GGTrackerAPI(GAME.VALORANT) as gg:
    res = gg.get_match_result("Username", "#tag", mode = "unrated")

Discord Bot用に出力結果を整形できる。(調整中)

サンプル:

print(convert_valorant_match_to_discord(res))
# -> to paste discord plane text

結果:

Discordサーバに絵文字を登録しておく必要がある

Documentation

Document is available from there.

License

This project is licensed under the terms of the MIT.

このプロジェクトは MIT ライセンスに基づいて管理されています。

Requirements

  • selenium
  • chromedriver_binary
  • chromedriver_autoinstaller

You find requirements at also requirements.txt.

Release signature

  • ggpython-0.0.1-py3-none-any.whl
  • ggpython-0.0.1.tar.gz

Development

We would love to have you as part of the community. If you find a bug / new-feature, feel free to write a new Issue with a respective title and description on this repository.

If you need help with an Issue or Development, please refer to the guidelines or ask me.

Author

ggpython authors.

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

ggpython-0.0.1.tar.gz (14.1 kB view hashes)

Uploaded Source

Built Distribution

ggpython-0.0.1-py3-none-any.whl (18.4 kB view hashes)

Uploaded Python 3

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