python yapi sdk
Project description
python-yapi
Python Client for YApi based on HTTP Api.
Install
pip install python-yapi
Simple Use
Register and Login
from python_yapi import YApi
yapi = YApi(base_url='http://localhost:3000')
username, email, password = 'Kevin', 'kevin@126.com', 'abc123'
yapi.register(username, email, password) # return a dict
yapi.login( email, password) # return a dict
Mange Projects
from python_yapi import YApi
yapi = YApi(base_url='http://localhost:3000')
email, password = 'kevin@126.com', 'abc123'
yapi.login(email, password)
# Create a private project in user default group, with auto basepath, random color and random icon.
yapi.add_project('Demo Project')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-yapi-0.1.1.tar.gz
(7.1 kB
view hashes)