Skip to main content

githubusercontent url

Project description

Install

$ [sudo] pip install githubusercontent

Features

  • generate raw.githubusercontent.com urls like https://raw.githubusercontent.com/owner/repo/master/path/to/file
  • replace special characters

Examples

>>> from githubusercontent import githubusercontent

>>> githubusercontent("owner/repo", "folder/image.png")
'https://raw.githubusercontent.com/owner/repo/master/folder/image.png'

# replace special characters
>>> githubusercontent("owner/repo", "folder/image 1.png")
https://raw.githubusercontent.com/owner/repo/master/folder/image%201.png

Sources

Project details


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
githubusercontent-0.0.1.tar.gz (1.3 kB) Copy SHA256 hash SHA256 Source None May 16, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page