Skip to main content

Guild Wars 2 API client for Python.

Installation

pip install gw2

It is recommended to use a virtual environment.

Usage

import gw2

client = gw2.Client()

client.get('achievements/daily')

client.get('achievements', ids=[1, 2])  # pass query parameters as keyword arguments

client.auth('YOUR-API-KEY')  # set api key for authenticated endpoints

client.get('account')

To handle error responses:

try:
    client.get('...')
except gw2.HTTPError as e:
    print(e.response.status_code, e.response.json())

License

MIT

Metadata

Release files for gw2 0.0.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 gw2 0.0.2
File Size Uploaded Provenance Actions
gw2-0.0.2.tar.gz 2.3 kB Without provenance Details for gw2-0.0.2.tar.gz

Release files / gw2-0.0.2.tar.gz

Download URL gw2-0.0.2.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
365bd402102af3b72572db0b117c290955fcff30067bbd486ebe8680ab3a697d
BLAKE2b-256 checksum
How to use checksums
777ca155e4047b3361765a1c56c104c1593cebe9302ee5fe0f6390ef2b441a1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.20.0 CPython/3.6.4

Security for gw2 0.0.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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