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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pnwapi-0.1.3.tar.gz.
File metadata
- Download URL: pnwapi-0.1.3.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.8.10 Linux/5.15.0-1022-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0e1d6085f9f98c4a1714f79d2e5ad0855b856b559d76689d1a6621f6790c729
|
|
| MD5 |
fe8531c85ccd43a0b96a95cb3aa3cd18
|
|
| BLAKE2b-256 |
bec2460fba2e70a7ed27714ca6dbe437ae3f4332ba07e112390953cee7f607ce
|
File details
Details for the file pnwapi-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pnwapi-0.1.3-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.8.10 Linux/5.15.0-1022-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
901a324a6b9842f296e3731e49d64e417ae0158669c48fbcd2cd0f3bd6794d07
|
|
| MD5 |
2215b35310f4589f273c0e625b63cf48
|
|
| BLAKE2b-256 |
a10bf0736a47f69775c1ad3d859cfd358eec2079904c15437f56e8ceb83f4763
|