Skip to main content

gzw-data (Python)

PyPI Python versions CI License

Dependency-free Python client for the free Gray Zone Warfare data API. Fan-made and not affiliated with the game's developer.

pip install gzw-data
from gzw_data import GzwDataClient

client = GzwDataClient()                       # no API key needed
print(client.datasets())                       # {'ammo': 79, 'weapons': 44, ...}
print(client.get("weapons", "ak-12")["name"])  # AK-12
for ammo in client.iterate("ammo", search="5.56"):
    print(ammo["name"])
print(list(client.search("AK")))               # dataset names that matched

Errors raise GzwApiError (.status, .code, .url, .retry_after). Rate-limit (honouring Retry-After) and 5xx responses are retried with backoff.

Game data comes from the community wiki and has its own terms: see the data license. Code is MIT.

Development

python -m unittest discover -s tests

Releases are automatic: bump the version and push to main. See RELEASING.md.

Metadata

Release files for gzw-data 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gzw-data 0.1.2
File Size Uploaded
gzw_data-0.1.2.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gzw-data 0.1.2
File Interpreter ABI Platform
gzw_data-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 11.3 kB

Release files / gzw_data-0.1.2.tar.gz

Download URL gzw_data-0.1.2.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
03da99cb48ed17237c9a72e0583e8b9dbaccaecbc78b110a236a462626fdeb53
BLAKE2b-256 checksum
How to use checksums
d4825fd1b828cde8a8ec95e49437365ba40573bc6b049cbccc0decf81e756c30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / gzw_data-0.1.2-py3-none-any.whl

Download URL gzw_data-0.1.2-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bee754033ae878b2599e4d6a50f444d074122ec7b0b666a7dda016d46124fb36
BLAKE2b-256 checksum
How to use checksums
6cf852e8e363fe5cb11633bdf63879a2f7a98f7707ba027aa8235c277ec265a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.3

2 release files

This release

0.1.2 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page