Giter Club home page Giter Club logo

open-source-api-wrapper's Introduction

Open issues Forks Stars Maintained Made with Python Open Source Love Built with Love Follow Me Telegram

📒 Index

🔰 About

It is a github & gitlab API Wrapper packaged into one server, It was built in Python3 & Flask, It contains minimal API interactions which were implemented to get only the required information from the respective github & gitlab APIs, I built this project under alice-sieve organization.

⚡ Usage

To use this project.

🔌 Installation

  • Install dependencies & export environment variables.
$ sudo -H pip3 install -r requirements.txt

📦 Commands

  • Start project using
$ cd src
$ python3 server.py

📁 File Structure

  • Add a file structure here with the basic details about files, below is an example.
.
├── LICENSE
├── logo
│   └── api.png
├── Procfile
├── README.md
├── requirements.txt
└── src
    ├── GithubToken.py
    ├── GithubWrapper.py
    ├── GitlabToken.py
    ├── GitlabWrapper.py
    └── server.py                   

2 directories, 10 files

❗ Guideline

  • Code Style

black

In order to maintain the code style consistency across entire project I use a code formatter. I kindly suggest you to do the same whenever you push commits to this project.

The python code formatter I chose is called Black. It is a great tool and it can be installed quickly by running

sudo -H pip3 install black

or

python3.6 -m pip install black

It requires Python 3.6.0+ to run.

  • Usage
black {source_file_or_directory}

For more details and available options, please check their psf/black.

isort

I also use isort, it is a Python utility / library to sort imports alphabetically, and automatically separated into sections. It provides a command line utility which can be installed using.

sudo -H pip3 install isort 
  • Usage
isort {source_file}.py

For more details and available options, please check their timothycrosley/isort.

  • Close Issues

Close issues using keywords: how to ?

📄 Resources

📷 Gallery

Endpoints

  • GET organizations/ group members
 GET /github/orgs/:org/members
 GET /gitlab/groups/:id/members
  • GET organizations repos/ group projects
 GET /github/orgs/:org/repos
 GET /gitlab/groups/:id/projects
  • GET repos commits / projects commits
 GET /github/repos/:owner/:repo/commits
 GET /gitlab/projects/:id/repository/commits
  • GET repo issues / projects issues
 GET /github/repos/:owner/:repo/issues
 GET /gitlab/projects/:id/issues
  • GET organization issues / groups issues
 GET /github/orgs/:org/issues
 GET /gitlab/groups/:id/issues
  • GET repo issues comments/ project issue comments
 GET /github/repos/:owner/:repo/issues/comments
 GET /gitlab/projects/:id/issues/:issue_iid/notes
  • GET repo pull requests / project merge requests
 GET /github/repos/:owner/:repo/pulls
 GET /gitlab/projects/:id/merge_requests

🌟 Credit/Acknowledgment

Contributors

🔒 License

License

open-source-api-wrapper's People

Contributors

bymayanksingh avatar

Stargazers

 avatar

Watchers

 avatar

open-source-api-wrapper's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.