Skip to content

Instantly share code, notes, and snippets.

from apistar import Include, Route, Response
from apistar.frameworks.wsgi import WSGIApp as App
from apistar.handlers import docs_urls, static_urls
from apistar import typesystem
class Name(typesystem.String):
description = "Person's name"
min_length = 3
max_length = 15
"""
api.core.serializers
serializer readonlyfield
AdaptiveTitForTat
"arguments": [
{
"parameter": "rate",
@erik-sn
erik-sn / oauth.py
Last active January 23, 2020 07:09
import re
import requests
import json
from django.contrib.auth.models import User
from oauth2_provider.models import AccessToken
def generate_github_access_token(github_client_id, github_client_secret, github_code):
"""
@erik-sn
erik-sn / Twitch.TV Stream Tracker.markdown
Created July 3, 2016 23:18
Twitch.TV Stream Tracker
@erik-sn
erik-sn / Wikipedia Viewer.markdown
Last active July 3, 2016 07:07
Wikipedia Viewer