Skip to main content

Guild Wars 2 API Python Wrapper

Build Status Latest Version Supported Python versions

Installation

  • Pre-requisites: Python >= 3.6
  • Install the package from PyPi directly:
pip install gw2apy

Quickstart

  • Create a client:
from gw2apy.client import Client

client = Client()

You can specify an API key to access authenticated endpoints, such as bank content or wallet:

client = Client(api_key="YOUR_API_KEY")
  • Create an endpoint, e.g. Items:
from gw2apy.endpoints import Items

items_endpoint = Items(client=client)
  • Request data from the endpoint:
# Returns the list of ids for all available items.
items_ids = items_endpoint.endpoint()

# Return the item associated to an id.
item = items_endpoint.id(id=28445)

# Return a list of item given a list of ids.
items = items_endpoint.ids(ids=[28445, 12452])

# Return a list of all the items.
all_items = items_endpoint.all()

Credits

This package is inspired from:

Metadata

Release files for gw2apy 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 gw2apy 0.0.2
File Size Uploaded
gw2apy-0.0.2.tar.gz 12.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gw2apy 0.0.2
File Interpreter ABI Platform
gw2apy-0.0.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 37.3 kB

Release files / gw2apy-0.0.2.tar.gz

Download URL gw2apy-0.0.2.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
28511bf1dff701b2098d02092ba75bb43b6adf67fc111cbb34fe0040d9725718
BLAKE2b-256 checksum
How to use checksums
9bf0aa6a26d1bbc87a5318bd58b3d793e194e1203691e99dc5020c4d5c4ddf29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Release files / gw2apy-0.0.2-py2.py3-none-any.whl

Download URL gw2apy-0.0.2-py2.py3-none-any.whl
Size 25.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3ccc4a6df0212e2b8d622c5b31e98b6a1acbb0cf74e4c49ff5786a622a128422
BLAKE2b-256 checksum
How to use checksums
5f8ace368b100dac7a0c2b0e0e9a157b851f6e08bc24873aede0bdeab572faaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

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