A python library that collects information from nationsglory.fr, just for you.
Project description
NationsGlory.py ![MIT License](https://pypi-camo.freetls.fastly.net/c142cd8a3c7511e76ea2b7d430a765eaeb69393b/68747470733a2f2f696d672e736869656c64732e696f2f61706d2f6c2f61746f6d69632d64657369676e2d75692e7376673f)
A python library that retrieves information from nationsglory.fr, just for you!
Authors
Features
- GET player informations
- GET country informations
Installation
Install nations-glory with pip
pip install nations-glory
Usage/Examples
from nations_glory import Servers
from nations_glory.players import Player
from nations_glory.countries import Country
player = Player('Just_Steel', Servers.PINK)
print("\nPlayer:", player.name)
print("Country:", player.country.name)
print("Power:", player.power)
print("Time Played:", str(player.time_played) + 'ms')
country = Country('EmpireBulgare', Servers.PINK)
# country = player.country.fetch()
print("\nCountry:", country.name)
print("Leader:", country.leader)
print("Claims", country.claims)
print("Power:", player.power)
# OUTPUT:
#
# Player: Just_Steel
# Country: EmpireBulgare
# Power: 61
# Time Played: 7334691000ms
#
# Country: EmpireBulgare
# Leader: Firzonyx
# Claims 521
# Power: 61
Dependencies
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for nations_glory-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a05b12a986ba83e1aedbbd5eab2ae0c278a96ea6a80eed2bd8f9fd79fe77e264 |
|
MD5 | be02941b091192ed37dd7fd60bd330b3 |
|
BLAKE2b-256 | 4d3c2047947870aab2d9762ccd6b18941e4bedfe2ed0f177068b5423e23dc2dd |