Skip to main content

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', 'activate_this.py')
execfile(activate_this, dict(__file__=activate_this))

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

Download files

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

Source Distribution

rawgithub-0.1.zip (6.8 kB view details)

Uploaded Source

File details

Details for the file rawgithub-0.1.zip.

File metadata

  • Download URL: rawgithub-0.1.zip
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rawgithub-0.1.zip
Algorithm Hash digest
SHA256 26746a7782d37c666588ad3808b0d64acbc0c9b7eb7a26a82b6f64e773b443cd
MD5 09e214a3c771631e732ddde65fd29c47
BLAKE2b-256 e9dfe6a7cbfa40fa1c4d904c66ced3cf48b19cfb6f4aa6d351ec863e2de81577

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page