import RPi.GPIO as GPIO
import web

PIN = 7
# to use Raspberry Pi board pin numbers
GPIO.setmode(GPIO.BOARD)
# set up GPIO output channel
GPIO.setup(PIN, GPIO.OUT)
        
urls = (
    '/', 'index',
    '/open','open',
    '/close', 'close'
)
app = web.application(urls, globals())

class index:        
    def GET(self):
        return '<a href="/open" >Open</a><a href="/close">Close</a>'
class open:
    def GET(self):
        GPIO.output(PIN,GPIO.LOW)
        return 'open'
class close:
    def GET(self):
        GPIO.output(PIN,GPIO.HIGH)
        return 'close'

if __name__ == "__main__":
    app.run()
    GPIO.cleanup()
fcadffa2bcb8bbda39bbd3c24fa878d879905d66
<mask token>


class index:
    <mask token>


class open:

    def GET(self):
        GPIO.output(PIN, GPIO.LOW)
        return 'open'


class close:

    def GET(self):
        GPIO.output(PIN, GPIO.HIGH)
        return 'close'


<mask token>

<mask token>


class index:

    def GET(self):
        return '<a href="/open" >Open</a><a href="/close">Close</a>'


class open:

    def GET(self):
        GPIO.output(PIN, GPIO.LOW)
        return 'open'


class close:

    def GET(self):
        GPIO.output(PIN, GPIO.HIGH)
        return 'close'


<mask token>

<mask token>
PIN = 7
GPIO.setmode(GPIO.BOARD)
GPIO.setup(PIN, GPIO.OUT)
urls = '/', 'index', '/open', 'open', '/close', 'close'
app = web.application(urls, globals())


class index:

    def GET(self):
        return '<a href="/open" >Open</a><a href="/close">Close</a>'


class open:

    def GET(self):
        GPIO.output(PIN, GPIO.LOW)
        return 'open'


class close:

    def GET(self):
        GPIO.output(PIN, GPIO.HIGH)
        return 'close'


if __name__ == '__main__':
    app.run()
    GPIO.cleanup()

import RPi.GPIO as GPIO
import web
PIN = 7
GPIO.setmode(GPIO.BOARD)
GPIO.setup(PIN, GPIO.OUT)
urls = '/', 'index', '/open', 'open', '/close', 'close'
app = web.application(urls, globals())


class index:

    def GET(self):
        return '<a href="/open" >Open</a><a href="/close">Close</a>'


class open:

    def GET(self):
        GPIO.output(PIN, GPIO.LOW)
        return 'open'


class close:

    def GET(self):
        GPIO.output(PIN, GPIO.HIGH)
        return 'close'


if __name__ == '__main__':
    app.run()
    GPIO.cleanup()

import RPi.GPIO as GPIO
import web

PIN = 7
# to use Raspberry Pi board pin numbers
GPIO.setmode(GPIO.BOARD)
# set up GPIO output channel
GPIO.setup(PIN, GPIO.OUT)
        
urls = (
    '/', 'index',
    '/open','open',
    '/close', 'close'
)
app = web.application(urls, globals())

class index:        
    def GET(self):
        return '<a href="/open" >Open</a><a href="/close">Close</a>'
class open:
    def GET(self):
        GPIO.output(PIN,GPIO.LOW)
        return 'open'
class close:
    def GET(self):
        GPIO.output(PIN,GPIO.HIGH)
        return 'close'

if __name__ == "__main__":
    app.run()
    GPIO.cleanup()