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

More methods:

client.search("ak", datasets=["weapons", "ammo"], fuzzy=True, limit=5)
client.export("weapons", search="ak", limit=25)   # bounded export, max 500 records
client.item_context("advanced-tracking-tag")      # item + vendors + references, or None
client.armor()                                    # smart routes: armor(), weapon_parts(), helmet_mods()
client.metadata("weapons"), client.schema("weapons")
client.version(), client.changes(), client.health(), client.ready()

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

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.2.0
File Size Uploaded Provenance
gzw_data-0.2.0.tar.gz 8.1 kB With provenance Details

Built distribution (wheel)

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

Total release size: 14.8 kB

Release files / gzw_data-0.2.0.tar.gz

Download URL gzw_data-0.2.0.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
29eb35e743876d191b57304f5532fee445f610a266d0eec99fd29bd2fdc15bec
BLAKE2b-256 checksum
How to use checksums
596a302ad2cf639d68487f2fe62704459c7e5e64b4b58e5804d5249b84bd766d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 22, 2026.

Transparency log

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

Download URL gzw_data-0.2.0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5e897216098c032935f958629b5dcfd1c81f2ce610c74d58e1af39d0610288f
BLAKE2b-256 checksum
How to use checksums
e1649d16bd2f1b23cb4eb0d42cadfda45b4d8c5afed177bbf2db5bd1e9012346
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 22, 2026.

Transparency log

Security for gzw-data 0.2.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gzw_data-0.2.0.tar.gz

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 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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