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

Metadata

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 Actions
nations_glory-1.0.0-py3-none-any.whl Python 3 none any Details for nations_glory-1.0.0-py3-none-any.whl

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

Security for nations-glory 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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