https://github.com/heavenshell/py-pixela
Pixela API client for Python.
https://github.com/heavenshell/py-pixela
pixela python
Last synced: about 1 year ago
JSON representation
Pixela API client for Python.
- Host: GitHub
- URL: https://github.com/heavenshell/py-pixela
- Owner: heavenshell
- License: bsd-3-clause
- Created: 2018-10-21T13:46:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-29T01:54:19.000Z (about 2 years ago)
- Last Synced: 2024-04-26T22:01:53.327Z (about 2 years ago)
- Topics: pixela, python
- Language: Python
- Size: 71.3 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Pixela
======
.. image:: https://github.com/heavenshell/py-pixela/workflows/build/badge.svg
:target: https://github.com/heavenshell/py-pixela/actions
.. image:: https://pyup.io/repos/github/heavenshell/py-pixela/shield.svg
:target: https://pyup.io/repos/github/heavenshell/py-pixela/
:alt: Updates
.. image:: https://pyup.io/repos/github/heavenshell/py-pixela/python-3-shield.svg
:target: https://pyup.io/repos/github/heavenshell/py-pixela/
:alt: 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.