Skip to main content

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

Release files for nations-glory 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for nations-glory 1.0.0
File Interpreter ABI Platform
nations_glory-1.0.0-py3-none-any.whl Python 3 none any Details

Release files / nations_glory-1.0.0-py3-none-any.whl

Download URL nations_glory-1.0.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a05b12a986ba83e1aedbbd5eab2ae0c278a96ea6a80eed2bd8f9fd79fe77e264
BLAKE2b-256 checksum
How to use checksums
4d3c2047947870aab2d9762ccd6b18941e4bedfe2ed0f177068b5423e23dc2dd
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page