Skip to main content

esa API v1 client library, written in python

Project description

🐣 piyo

esa API v1 client library, written in Python

this project is work in progress.

currently, available endpoint is partial.

Installation

install this library using pip

pip install piyo

Usage

from piyo import Client

client = Client(access_token='<access_token>', current_team='<team_name>')
# Client will look up environment variables  access token

client.user()
#=> GET /v1/user

client.teams()
#=> GET /v1/teams

client.team()
#=> GET /v1/teams/<team_name>

client.stats()
#=> GET /v1/teams/<team_name>/stats

client.members()
#=> GET /v1/teams/<team_name>/members

client.posts()
#=> GET /v1/teams/<team_name>/posts

client.post(1)
#=> GET /v1/teams/<team_name>/posts/1

client.comments()
#=> GET /v1/teams/<team_name>/comments

client.comments(1)
#=> GET /v1/teams/<team_name>/posts/1/comments

client.comment(1)
#=> GET /v1/teams/<team_name>/comments/1

client.stargazers(1)
#=> GET /v1/teams/<team_name>/posts/1/stargazers

...

Development

issues and pull requests are always welcome!

run integration test

python3 tests/integration_test.py

run unit test

python3 tests/<test_file>.py -v

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

piyo-0.3.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page