This is a high level and simple to use API wrapper for nationstates. Meant to be beginner friendly, it does all of the tedious work in dealing the API for you providing a simple interface to do whatever you want in the api.
Pynationstates is a simple to use to api wrapper for the nationstates api. It was designed to beginner friendly and handle all of the api for you. it includes a built in rate limiter and
To install pynationstates simply use pip
pip install nationstates
#####Examples
Lets start with a simple example. The number of nations in the world currently.
The code
import nationstates
api = nationstates.Nationstates("My Awesome Application")
world = api.world()
data = world.numnations
print(data)
Output
'184284'
- sans for easy Python Async usage of the api