1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-05-25 18:25:09 +00:00
No description
Find a file
RGBCube f6b9852167 Cleaned up docs/
- Linted
- Changed Github-Api-Wrapper to GitHub-API-Wrapper
2022-06-25 14:07:43 +03:00
.github Cleaned up .github/ 2022-06-25 14:05:51 +03:00
assets Fix Licenses 2022-06-21 18:55:30 +03:00
docs Cleaned up docs/ 2022-06-25 14:07:43 +03:00
github Update client.py 2022-06-22 18:00:17 +05:30
.gitignore fix dpcs 2022-05-02 00:14:09 +05:30
.readthedocs.yaml Update readthedocs version (might break stuff) 2022-06-21 19:03:25 +03:00
LICENSE Make LICENSE history format correct 2022-06-21 18:44:32 +03:00
pyproject.toml Fix line endings 2022-06-21 19:00:55 +03:00
README.rst Cleanup README 2022-06-21 18:50:16 +03:00
requirements.txt Update requirements.txt 2022-05-16 11:52:14 +05:30
setup.cfg Fix line endings 2022-06-21 19:00:55 +03:00
setup.py Merge remote-tracking branch 'origin/main' 2022-06-21 19:08:08 +03:00

Github API Wrapper
==================

.. image:: https://discord.com/api/guilds/963406460107235328/widget.png
  :target: https://discord.gg/DWhwsQ5TsT
  :alt: Discord Server Invite

Easy to use Python wrapper for the **Github API**.

Key Features
------------
- Modern Pythonic Interface
- Easy to use


Installing
----------

**Python 3.8 or higher is required to run the library**

To install the library, run the following command:

.. code:: sh

  # On Linux or MacOS
  python3 -m pip install -U git+https://github.com/VarMonke/Github-Api-Wrapper
  
  # On Windows
  py -m pip install -U git+https://github.com/VarMonke/Github-Api-Wrapper
  
Quick Example
-------------
  
.. code:: py
  
  import github
  import asyncio
  
  async def main():
    client = await github.GHClient()

    user = await client.get_user(user='GithubPythonBot')

    print(user)
    print(user.html_url)

  asyncio.run(main())

.. code:: sh
  # Output
  <User login: 'GithubPythonBot', id: 104489846, created_at: 2022-04-27 07:31:26>
  https://github.com/GithubPythonBot

  
Links
-----
- `Discord Server <https://discord.gg/DWhwsQ5TsT>`_
- `GitHub API Documentation <https://docs.github.com/en/rest>`_