A wrapper around requests that abstracts away interacting with the HTML nationstates.net site. Focused on legality, correctness, and ease of use.
Project description
NSDotPy
A Python wrapper around requests for legally interacting with the HTML NationStates site, as well as a barebones API client. Built for legality first and foremost, as well as ease of use.
Installation
pip install nsdotpy
Simple Example
from nsdotpy import NSClient
session = NSClient("NSDotPy Example," "1.0.0", "User Nation", "Dev Nation")
if session.login("User Nation", "Password"): # logs in and checks if login was successful
session.move_to_region("Lily") # only moves if you successfully logged in
TODO:
Region Admin Controls- Dossier and reports handling
- More fleshed out API Client
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nsdotpy-1.1.0.tar.gz
(22.6 kB
view hashes)
Built Distribution
nsdotpy-1.1.0-py3-none-any.whl
(23.8 kB
view hashes)