Skip to main content

The WotBlitz API wrapper for Python3

Project description

Onewot

An opinionated, static typed WotBlitz API wrapper for Python3.

Python >=3.6 are currently supported.

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

Start up client

import onewot
client = onewot.WOTBClient(application="...")

Example

import onewot
client = onewot.WOTBClient(application="...")
print(client.fetch_user(152870490))

Documentation

Coming soon...


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 Distribution

onewot-0.3.tar.gz (13.6 kB view details)

Uploaded Source

File details

Details for the file onewot-0.3.tar.gz.

File metadata

  • Download URL: onewot-0.3.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.2

File hashes

Hashes for onewot-0.3.tar.gz
Algorithm Hash digest
SHA256 95dc227acec9de278f57bcebd99b0ecaf23fdb41c6b59c78e52fd8ae47e961d6
MD5 c1daf510610590f635ce8652fa5ebfdc
BLAKE2b-256 ee0f10777729542eefedec9b667a97de2e39fb7bf7fc2dd1f28825d2b9dab0e8

See more details on using hashes here.

Supported by

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