[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

husseinamine/octokitpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome To Octokit.py

ko-fi

Setup and Install

git clone github.com/husseinraed/octokit.py
cd octokit.py
python setup.py install

Authorization

from octokit import Octokit

octokit = Octokit("api_key")

Body, Query and Headers Options

from octokit import Octokit

octokit = Octokit("api_key")

# Body Example | change username
octokit.request("PATCH /user", {
    "body": {
        "name": "new_username"
    }
})

# Query Example | get the latest user that signed up to github
print(octokit.request("GET /users", {
    "query": {
        "per_page": 1
    }
}))

# Headers Example | get all your gist and recieve its content in base64 format
print(octokit.request("GET /gists", {
    "headers": {
        "accept": "application/vnd.github.v3.base64"
    }
}))

Note

as you see the api is really simple and to use it u just have to know how to use the github rest api

About

a github api wrapper inspired by octokit-js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages