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()
client.endpoints(), client.spec(), client.images()

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.3.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.3.0
File Size Uploaded Provenance Actions
gzw_data-0.3.0.tar.gz 8.5 kB With provenance Details for gzw_data-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 15.2 kB

Release files / gzw_data-0.3.0.tar.gz

Download URL gzw_data-0.3.0.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a3ef213fefa3a70cebbaa0c162be1361e6068da7036714ded5a87565183eeca6
BLAKE2b-256 checksum
How to use checksums
0962674ef3614f15cf948ae7ff2b86c8662a5fbf3f571d7448c4c9c708d81e56
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 27, 2026.

Transparency log

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

Download URL gzw_data-0.3.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
feeae056fd716df0e0cb64042a13304395a0993f6d0ea301cbfe98dda62421ef
BLAKE2b-256 checksum
How to use checksums
7d25dc0a2c8f5d7e526a959fe02acd8c33d651111b46c73fa25c34944684f813
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 27, 2026.

Transparency log

Security for gzw-data 0.3.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gzw_data-0.3.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 27, 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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