Skip to main content

a damn fine wrapper for reverse-enginered gwo api

Reason this release was yanked:

broken again

Project description

GWO (Python)

Reverse-enginered GWO api wrapper for Python

PyPI - Version PyPI Downloads Static Badge

GWO (Python) is an api wrapper for GWO (Website) that allows you to programmatically extract excercises from the users accesses, modify and view user info, and anwser exercises all in a simple to use package

📱 Ultra compatible

Due to its simple nature GWO (Python) is compatible with almost every platform*

đź§¶ Niche but usefull

  • Stuck on an exercise? Code up a tool to show you the anwser.
  • Training an ai? Extract all exercises and their anwsers to train a model capable of solving the exercises.
  • I have honestly no idea for what else you might wanna use this for, its very niche i said.

Example of a script using GWO

Below is a simple script, using user input to log in and print out user info:

from GWO import GWOApi, User, LoginException, FetchException
from typing import Optional
import asyncio

async def login(username: str, password: str) -> Optional[User]:
    if not (username and password):
        return None
    try:
        client: GWOApi = await GWOApi.login(username, password)
        return client.user
    except (LoginException, FetchException):
        return None

async def main():
    print("Welcome to GWO!\nLogin with your GWO account")
    while True:
        username: str = input("Username: ")
        password: str = input("Password: ")
        if not (username and password):
            print("Username or password cannot be empty!"); continue
        user: Optional[User] = await login(username, password)
        if not user:
            print("Invalid username or password!"); continue
        print(f"Hello, {user.firstName}!"); break

asyncio.run(main())

To run the script, install GWO:

pip install GWO

We use analytics but don't worry, they're anonymous (and you can disable them (refer to docstrings))

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

gwo-0.1.8.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gwo-0.1.8-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file gwo-0.1.8.tar.gz.

File metadata

  • Download URL: gwo-0.1.8.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for gwo-0.1.8.tar.gz
Algorithm Hash digest
SHA256 360e703667d1202f1a285c3bd0e8a486e39f4e4731492c1972658b60faecbe5d
MD5 a17ffe900a1054b0900ba81fa2061ed1
BLAKE2b-256 49f01c1f6569a9713bdd37b2492983bb8967d72f4b4a3644b89c425bf3abd05a

See more details on using hashes here.

File details

Details for the file gwo-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: gwo-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 21.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for gwo-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 0d5faac0bfb3bc1ae0f00abd13e112d350f49d88e8fe5bcdb8e07d6a820c49e0
MD5 0b97be74c387308d8c5610b692f4b1dc
BLAKE2b-256 52a00a6120134e910843eae9ed62f5be4b9fa1388a057ebc24364500cb3e8399

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