Skip to main content

No project description provided

Project description

pnwapi

Pnwapi is a Python library for accessing the Politics and War API. It uses a simple, object-oriented approach to accessing the API, caching data, and handling errors. Pnwapi is designed around the concept of keeping a local copy of important data in a database, allowing for faster access, less reliance on the API and more advanced queries.

Installation

Python 3.10 or higher is required. Pnwapi is available on PyPI and can be installed with pip:

pip install pnwapi

Usage

import pnwapi

pnw = pnwapi.init("YOUR_API_KEY", "YOUR_BOT_KEY", "DB_CONNECTION_STRING")

Documentation

Documentation can be found at pnwapi.readthedocs.io.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

pnwapi-0.1.3.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

pnwapi-0.1.3-py3-none-any.whl (9.2 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