2022-03-16 16:10:14 +03:00
2022-03-16 02:37:05 +03:00
2022-03-16 14:12:44 +04:00
2022-03-16 16:10:14 +03:00
2022-03-16 01:47:36 +03:00
2022-03-15 23:40:40 +03:00
2022-03-16 16:08:18 +03:00
2022-03-15 23:55:07 +03:00

gitflic

GitHub license GitHub stars magic
preview ds

About

PyPI download month PyPI download week

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

Installation

Install via pip:

pip install gitflic

Example:

All examples in examples dir.

from gitflic import Gitflic, GitflicAuth

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

gf_session = GitflicAuth(token)
gf = Gitflic(gf_session)

me_call = gf.call("/user/me")
print(me_call)

# Register call
gf.user = gf.reg_call("/user")

# Request "https://api.gitflic.ru/user/me"
me_with_reg = gf.user("/me")
print(me_with_reg)
print("Is me_with_reg equals me_call:", me_with_reg == me_call)

# Request "https://api.gitflic.ru/user/a4189db1-3e4f-4c2e-8adf-19c58c28e61f"
author = gf.user("/a4189db1-3e4f-4c2e-8adf-19c58c28e61f")
print("\nAuthor: ", author)
Description
No description provided
Readme MIT 89 KiB
Languages
Python 100%