Archived
1
Fork 0

Add useragent parsing

This commit is contained in:
Jake Howard 2017-04-11 09:30:30 +01:00
parent 2b92acbc2a
commit 77bbcdd210
2 changed files with 4 additions and 1 deletions

View file

@ -1,8 +1,10 @@
from sanic import Sanic from sanic import Sanic
from sanic_useragent import SanicUserAgent
from lantern.route import main_route from lantern.route import main_route
import os import os
app = Sanic(__name__) app = Sanic(__name__)
SanicUserAgent.init_app(app)
def main(): def main():

View file

@ -5,7 +5,8 @@ setup(
name="lantern", name="lantern",
version="1.0", version="1.0",
install_requires=[ install_requires=[
"sanic==0.4.1" "sanic==0.4.1",
"sanic-useragent==0.1.2"
], ],
entry_points=""" entry_points="""
[console_scripts] [console_scripts]