GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - pathwar/python-pathwar: :snake: Pathwar API client in Python

This repository was archived by the owner on Sep 19, 2019. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
pathwar
pathwar
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
fig.yml
fig.yml
 
 
setup.py
setup.py
 
 

Repository files navigation

python-pathwar

Deprecated! Go to the Pathwar monorepo: https://github.com/pathwar/pathwar

⚠️ THIS IS JUST A PLACEHOLDER, THE CODE IS NOT YET WORKING ⚠️

Pathwar API client in Python

Examples

from pathwar import Pathwar

## Connection
client = Pathwar(user="username", password="password")  # Connect with user+pass couple
client = Pathwar(token="token")  # Connect using generated token

## Switch organization
client.set_organization('roxxorz')  # Switch to organization with name = `roxxorz`
client.set_organization('abcdef-ghij-klmn-opqr-stuvwx')  # Switch to organization by `organization_id`
client.set_organization(session='super-final')  # switch to the organization where session is `super-final`

## Some actions
client.levels.get(name='pnu').buy()
client.coupons.validate('cool-coupon')

## A level workflow
for level in client.levels.all():
    if not level.validated:
        print('You still need to validate the level {}'.format(level.name))
        # Try to use 'toto' as passphrase
        level.validate('toto')
    elif not level.bought:
        # Try to buy the level
        level.buy()

About

🐍 Pathwar API client in Python

pathwar.land

Topics

pathwar

Resources

Readme
MIT license
Activity
Custom properties

Stars

1 star

Watchers

8 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.