Skip to main content

A python library that collects information from nationsglory.fr, just for you.

Project description

NationsGlory.py MIT License

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

python3.9.0 requests==2.22.0 html-to-json==1.0.1

License

MIT

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

nations_glory-1.0.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file nations_glory-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: nations_glory-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for nations_glory-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a05b12a986ba83e1aedbbd5eab2ae0c278a96ea6a80eed2bd8f9fd79fe77e264
MD5 be02941b091192ed37dd7fd60bd330b3
BLAKE2b-256 4d3c2047947870aab2d9762ccd6b18941e4bedfe2ed0f177068b5423e23dc2dd

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