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
gw2-0.0.2.tar.gz 2.3 kB Details

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

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

0.0.1

1 release file

0.0.0

1 release file

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