Skip to main content

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.session 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

Docs

https://sw33ze.github.io/NSDotPy/src/session.html#NSSession

Project details


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.1.tar.gz (22.3 kB view hashes)

Uploaded Source

Built Distribution

nsdotpy-1.1.1-py3-none-any.whl (23.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page