Nationstates API wrapper for python


Keywords
nationstates, api, wrapper, python, bindings, web, api-wrapper
License
MIT
Install
pip install nationstates==3.1.4

Documentation

CircleCI PyPI Documentation Status Coverage Status

Nationstates API wrapper

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.

About

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

API

Installation

To install pynationstates simply use pip

pip install nationstates

#####Examples

Making a API request

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'

Other Libraries

  • sans for easy Python Async usage of the api