Giter VIP home page Giter VIP logo

t5apy's Introduction

t5apy

Request public map data from Travian 5 API more convenient with t5apy.
This [official thread] explain on how to use Travian 5 API.

Build Status codecov MIT license

Installation

it's recommended to use virtualenv.

  1. git clone this repo
    (venv)$ git clone https://github.com/didadadida93/t5apy.git
  2. change directory to t5apy.
    (venv)$ cd t5apy
  3. install it
    (venv)$ pip install .

Usage

Based on [official thread] first we need API key.
After that we can request public map data.

>>> import t5apy
>>>
>>> api_key = t5apy.request_api_key(
...     email='[email protected]',
...     site_name='your-tools',
...     site_url='https://example.com',
...     public='false',
...     gameworld='com1'
... )
>>>
>>> # once we get api key, we can request public map data
... map_data = t5apy.request_map_data(
...     private_api_key=api_key['privateApiKey'],
...     gameworld='com1'
... )
>>> map_data.keys()
dict_keys(['gameworld', 'players', 'kingdoms', 'map'])
>>>

t5apy's People

Contributors

namakurohman93 avatar

Watchers

James Cloos avatar  avatar

Forkers

blodyx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.