Skip to main content

Pixela API client for Python.

Project description

Pixela

https://travis-ci.com/heavenshell/py-pixela.svg?branch=master Updates Python 3

Pixela API client for Python.

Installation

$ virtualenv --distribute pixela_sample
$ source pixela_sample/bin/activate
$ cd pixela_sample
$ pip install pixela

Usage

from pixela import Pixela

client = Pixela(username='YOUR_NAME', token='YOUR_NAME')

# register
client.create_user(agree_terms_of_service=True, not_minor=True)

# create graph
client.create_graph(
    graph_id='test-graph',
    name='graph-name',
    unit='commit',
    type='int',
    color='shibafu',
    timezone='Asia/Tokyo',
)

# register value
from datetime import datetime

date = datetime.strptime('2018-10-21', '%Y-%m-%d')
res = self.client.create_pixel(graph_id='py-pixela', quantity=5, date=date)

LICENSE

NEW BSD LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pixela, version 1.2.0
Filename, size File type Python version Upload date Hashes
Filename, size pixela-1.2.0-py2.py3-none-any.whl (5.1 kB) File type Wheel Python version 3.6 Upload date Hashes View
Filename, size pixela-1.2.0.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page