🌐
GitHub
github.com › PyGithub › PyGithub
GitHub - PyGithub/PyGithub: Typed interactions with the GitHub API v3 · GitHub
... from github import Github # ... g = Github(auth=auth) # Github Enterprise with custom hostname g = Github(base_url="https://{hostname}/api/v3", auth=auth) # Then play with your Github objects: for repo in g.get_user().g...
Starred by 7.7K users
Forked by 1.9K users
Languages   Python 99.6% | Shell 0.4%
🌐
GitHub
github.com › nikolayg › sample-python-api
GitHub - nikolayg/sample-python-api: A Sample Python API with Pipenv, Flask, Flask RESTPlus, and PyTest · GitHub
A Sample Python API with Pipenv, Flask, Flask RESTPlus, and PyTest - nikolayg/sample-python-api
Starred by 14 users
Forked by 23 users
Languages   Python
Discussions

Most suitable python library for Github API v3 - Stack Overflow
I am looking for a python library for the Github APIv3 suitable for me. I found one library (python-github3) mentioned in the GH API docs. After playing around with it in ipython for an hour or tw... More on stackoverflow.com
🌐 stackoverflow.com
Example of a simple and well made Python project on Github

You should checkout the discord.py repository! It's well structured. https://github.com/Rapptz/discord.py

More on reddit.com
🌐 r/learnpython
52
326
December 20, 2020
I built my first Python CLI tool and published it on PyPI — looking for feedback
Unfortunately this is AI slop. Commit history not even 2 hours old, using outdated Python patterns, zero tests, no trusted publishing. That's not unusual for these kinds of projects, but its potentially problematic for security-sensitive software. The good news is that this uses cryptography's high-level Fernet API, so at least that part is really difficult to mess up. Here are some things I would suggest for your further learning journey: Reduce your reliance on AI tools to ensure that you actually learn stuff. Remember to read the docs of the tools and APIs you use. Migrate from setup.py to pyproject.toml. Some tooling that you might want to use (like uv) requires this file, and many linting and testing tools (discussed below) also use this file for configuration. Write tests for your software, e.g. using Pytest. Some parts are really difficult to test directly (e.g. interacting with the GH Gist API), but some parts can become testable via clearer architecture, and some through mocking (e.g. consider the requests-mock library). Use linters and type checkers to catch potential problems. Tools like Ruff and Mypy are a good starting point. Run tests and linters  in CI, whenever you push code to GitHub. GitHub Actions is free for public repositories. Figure out how to publish to PyPI via CI, e.g. whenever you create a "Tag" or "Release" in GitHub. Using the trusted-publisher workflow is by far the easiest way to publish to PyPI, since you don't have to handle any credentials. An example of a good test would be to show that reading, encrypting, decrypting, and writing an env file results in the same env file as the original. Repeat that test with multiple example env files, including things like comments, special characters, or quoting. Consider how variables should be expanded in env files. You may also want to review how your project looks on PyPI. You haven't added links to the source code. The encoding of the README is messed up. More on reddit.com
🌐 r/Python
9
0
1 month ago
Looking for github links or something that has some rest api scripts I can review and try to learn from

https://github.com/tableau/rest-api-samples/tree/master/python

This isn't my repo but I've worked with the Tableau REST api before and it looks sort of similar.

For some advice I would highly recommend using PostMan to set up the request and then use their built in ability to directly generate python code.

After you have the generated code you can slightly modify / clean it up if you want a function to pass parameters or something.

More on reddit.com
🌐 r/learnpython
8
19
August 31, 2021
🌐
Medium
medium.com › analytics-vidhya › getting-started-with-github-api-dc7057e2834d
Getting Started with Github API. REST API v3 using Python | by Gaganpreet Kaur Kalsi | Analytics Vidhya | Medium
July 20, 2020 - Example JSON → data = {“name” : “Hello-repo”} NOTE : — Be careful while constructing a URL and with the type of request. These were mostly the areas where the API threw an error to me.
🌐
GitHub
github.com › KeithGalli › python-api-example
GitHub - KeithGalli/python-api-example
As a very simple and easy to set-up DB, we will be using airtable. I'll show in the live stream how to create an API token to use in Python API requests.
Starred by 30 users
Forked by 165 users
Languages   Python 100.0% | Python 100.0%
🌐
The Python Code
thepythoncode.com › article › using-github-api-in-python
How to Use Github API in Python - The Python Code
Or perhaps you need to use the Gmail API in Python to automate tasks related to your Gmail account. In this tutorial, you will learn how you can use GitHub API v3 in Python using both requests or PyGithub libraries.
🌐
Apify
blog.apify.com › python-github-api
How to use the GitHub API in Python
July 30, 2024 - To perform other Python API operations using the POST, PATCH, or DELETE request, you need the access token. Let's create a new repository using the POST request. In the code below, you pass your access token, repo name, and repo description, ...
🌐
GitHub
github.com › bullhorn › rest-api-example-python
GitHub - bullhorn/rest-api-example-python: A sample Python Web application that demonstrates a very simple usage of the Bullhorn REST API
A sample Python Web application that demonstrates a very simple usage of the Bullhorn REST API - bullhorn/rest-api-example-python
Starred by 29 users
Forked by 19 users
Languages   Python 100.0% | Python 100.0%
Find elsewhere
🌐
PyPI
pypi.org › project › PyGithub
PyGithub · PyPI
... from github import Github # ... g = Github(auth=auth) # Github Enterprise with custom hostname g = Github(base_url="https://{hostname}/api/v3", auth=auth) # Then play with your Github objects: for repo in g.get_user().g...
      » pip install PyGithub
    
Published   Mar 22, 2026
Version   2.9.0
🌐
Martin Heinz
martinheinz.dev › blog › 25
All the Things You Can Do With GitHub API and Python | Martin Heinz | Personal Website & Blog
June 15, 2020 - GitHub issue comments allow you to add various reactions to them. So, maybe you want to add +1/-1 to somebodies comment. Maybe just throw in some celebratory hooray emoji. If that's the case, then here's how you could do that in Python: owner = "MartinHeinz" repo = "python-project-blueprint" comment_id = "593154350" query_url = f"https://api.github.com/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions" data = { "content": "hooray" } headers = { 'Authorization': f'token {token}', 'Accept': 'application/vnd.github.squirrel-girl-preview', } r = requests.post(query_url, headers=headers, data=json.dumps(data)) pprint(r) pprint(r.json())
🌐
GitHub
github.com › topics › python-api
python-api · GitHub Topics · GitHub
Embrace the APIs of the future. Hug aims to make developing APIs as simple as possible, but no simpler. python http command-line python3 falcon http-server python-api hug-api
🌐
GitHub
github.com › akbarahmed › basic-python-rest-api
GitHub - akbarahmed/basic-python-rest-api: Example of how to create a basic REST API in Python
Example of how to create a basic REST API in Python - akbarahmed/basic-python-rest-api
Forked by 9 users
Languages   Python 100.0% | Python 100.0%
🌐
GitHub
github.com › mransbro › python-api
GitHub - mransbro/python-api: A super simple RESTful api created using Flask. The idea is to have a simple api that can be used with pipeline demos and proof of concepts.
A super simple RESTful api created using Flask. The idea is to have a simple api that can be used with pipeline demos and proof of concepts. Requirements: python -m venv ./venv source .venv/bin/activate · Next, run · pip install -r ...
Starred by 6 users
Forked by 56 users
Languages   Python 79.4% | Dockerfile 20.6% | Python 79.4% | Dockerfile 20.6%
🌐
TechGeekBuzz
techgeekbuzz.com › blog › how-to-use-github-api-in-python
How to Use GitHub API in Python? [A Step by Step Guide]
With GitHub HTTP REST APIs we can access the public data or information using the Python requests library. To use the GitHub HTTPs REST APIs, we can send the GET request to the URL https://api.github.com/ .
🌐
GitHub
github.com › kwaldenphd › apis-python
GitHub - kwaldenphd/apis-python: Working With APIs in Python (Elements of Computing II, S21, University of Notre Dame) · GitHub
First, we use the requests module to send HTTP requests (i.e. request data via the world wide web) using Python. The HTTP request returns a response object that includes whatever data is returned as part of the API call. ... The requests module includes a range of methods that let us interact with elements of the API. ... A very basic example of the requests module in action.
Starred by 5 users
Forked by 2 users
Languages   Jupyter Notebook
🌐
GitHub
github.com › topics › python-api-demo
python-api-demo · GitHub Topics · GitHub
Simple back-end code to understand API calling in Flask. python flask-api python-api-demo python-flask-application api-call
🌐
Linux Hint
linuxhint.com › github_api_python3
Interfacing with GitHub API using Python 3
Linux Hint LLC, [email protected] 1210 Kelly Park Circle, Morgan Hill, CA 95037 Privacy Policy and Terms of Use
🌐
Merge.dev
merge.dev › blog › github-get-repositories
How to GET repositories using the GitHub API in Python
March 11, 2024 - In this example, let’s see what repositories the Netflix organization stores on GitHub. First we’ll import the necessary requests package and construct the URL that we want to make a request to (see GitHub’s list organization repositories documentation for more information). import requests # At the top we can construct the request we want to make GITHUB_BASE_URL = 'https://api.github.com' org_name = 'Netflix' organization_repositories_url = f"{GITHUB_BASE_URL}/orgs/{org_name}/repos"