Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!


Project Description

rawgithub is a simple wsgi server that allows you to serve a file from Github even if you need to provide an access_token.

Just do:

GET /:owner/:repo/:file?[access_token=<your_token>]&[ref=master]

And that’s all.

Run the service

pserve rawgithub.ini

Run with WSGI

# -*- coding: utf-8 -*-
import os

cfg_dir = os.path.dirname(__file__)
env_dir = os.path.join(cfg_dir, 'var', 'venv')

activate_this = os.path.join(env_dir, 'bin', '')
execfile(activate_this, dict(__file__=activate_this))

from pyramid.paster import get_app, setup_logging
ini_path = os.path.join(cfg_dir, 'rawgithub.ini')
application = get_app(ini_path, 'main')

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(6.8 kB) Copy SHA256 Hash SHA256
Source None Mar 3, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers