Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/santaspeen/gitflic

GitflicApi wrapper
https://github.com/santaspeen/gitflic

gitflic python

Last synced: about 9 hours ago
JSON representation

GitflicApi wrapper

Awesome Lists containing this project

README

        

# gitflic


GitHub license
GitHub stars
magic



preview



### About

[![PyPI download month](https://img.shields.io/pypi/dm/gitflic.svg)](https://pypi.python.org/pypi/gitflic/)
[![PyPI download week](https://img.shields.io/pypi/dd/gitflic.svg)](https://pypi.python.org/pypi/gitflic/)

This is wrapper of gitflic API.\
All API documentation is here: https://gitflic.ru/help/api/intro

### Installation

Install via pip:

```shell
# Shell

$ pip3 install gitflic
```

### Example:

All examples in [examples](./examples) dir.

```python
from gitflic import Gitflic, GitflicAuth

# Your authentication token.
# See: https://gitflic.ru/settings/oauth/token/create
token = "token_here"

# Creating authorized session with our token.
gf_session = GitflicAuth(token)
gf = Gitflic(gf_session)

# Call method to get authorized user from API.
user_me = gf.call("/user/me")
print(user_me)
```