Skip to content

nabehide/suzuripy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status CircleCI Coverage Status codecov PyPI version Requirements Status License: MIT GitHub stars

suzuripy

SUZURI API Wrapper for Python.

Installation

  • Using pip:
pip install suzuripy
  • From source:
git clone https://github.com/nabehide/suzuripy.git
cd suzuripy/
python setup.py install

Usage

API Key

Get API key on SUZURI Developer Center.

Make client object

from suzuripy import SuzuriClient
client = SuzuriClient(key="YOUR_API_KEY")

Get your info

r = client.getUserSelf()
if r.status_code == 200:
    print("success", json.loads(r.text))
else:
    print("status code:", r.status_code)

Create material

r = client.createMaterial(
    texture="image file", 
    title="material title",
)
if r.status_code == 200:
    print("success", json.loads(r.text))
else:
    print("status code:", r.status_code)

For more details, see examples.

LICENCE

MIT

About

SUZURI API Wrapper for Python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors