Skip to main content

RawGithub

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')

Metadata

Release files for rawgithub 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rawgithub 0.1
File Size Uploaded Provenance Actions
rawgithub-0.1.zip 6.8 kB Without provenance Details for rawgithub-0.1.zip

Release files / rawgithub-0.1.zip

Download URL rawgithub-0.1.zip
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
26746a7782d37c666588ad3808b0d64acbc0c9b7eb7a26a82b6f64e773b443cd
BLAKE2b-256 checksum
How to use checksums
e9dfe6a7cbfa40fa1c4d904c66ced3cf48b19cfb6f4aa6d351ec863e2de81577
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for rawgithub 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page