Skip to content
/ bsapi Public

Python implementation of the battlesnake snake webhook API.

License

Notifications You must be signed in to change notification settings

CDFriend/bsapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bsapi

Build Status

A Python implementation of the models in the Battlesnake webhook API.

Example Usage (Bottle)

import bottle

from random import choice
from bsapi.models import *

app = bottle.app()

@app.post('/move')
def move():
    request = SnakeRequest(bottle.request.json)
    return MoveResponse('left')

Example Usage (Flask)

from flask import Flask
from bsapi.models import *

app = Flask(__name__)

@app.route('/move')
def move():
    return MoveResponse('left')

About

Python implementation of the battlesnake snake webhook API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages