Skip to main content

Pixela

https://github.com/heavenshell/py-pixela/workflows/build/badge.svg 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.

Download files

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

Source Distribution

pixela-1.3.0.tar.gz (5.0 kB view details)

Uploaded Source

File details

Details for the file pixela-1.3.0.tar.gz.

File metadata

  • Download URL: pixela-1.3.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for pixela-1.3.0.tar.gz
Algorithm Hash digest
SHA256 79c8d061380541290c97ef897a2eadcda53910db4aa89777fa650fa115c2bccc
MD5 dfa84d7212f159c6492fdee672cae85a
BLAKE2b-256 8ba4e987848f3f9eb61b69eec0588f0e39658a95d1d075f266b542f0cf605aec

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.3.0 This release

1 file

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page