Skip to main content

The WotBlitz API wrapper for Python3

Project description

Onewot

An opinionated, static typed WotBlitz API wrapper for Python3.

Python >=3.8 are currently supported.

Documentation: View Here

Installation

Install Onewot from PyPi with the following command:

python -m pip install -U onewot
# Windows users may need to use this instead...
py -3 -m pip install -U onewot

Updating

pip install --upgrade onewot

Start up client

import onewot

client = onewot.WOTBClient(application='...')

Example

import onewot

client = onewot.WOTBClient(application='...', language=onewot.Language.ENGLISH)

print(client.fetch_user(152870490))

Python optimization flags

CPython provides two optimisation flags that remove internal safety checks that are useful for development, and change other internal settings in the interpreter.

  • python main.py - no optimisation - this is the default.
  • python -O main.py - first level optimisation - features such as internal assertions will be disabled.
  • python -OO main.py - second level optimisation - more features (including all docstrings) will be removed from the loaded code at runtime.

A minimum of first level of optimizations is recommended when running applications in a production environment.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

onewot-0.6.3-py3-none-any.whl (36.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page