Gistats
Gistats is a small library for generating Statistics on Gists using dictionaries
based on @sciencepal chess.com statistics
Installation
# Unstable
pip install git+https://github.com/ZSendokame/Gistats.git
# Stable
pip install Gistats
How to use
import os
import gistats
def get_size():
size = 0
for element in os.scandir('./gistats'):
size += os.stat(element).st_size
return size
statistics = {
'Total size': get_size(),
'Gistats Version': '2.0.1'
}
gist = gistats.Gist('name', 'gist-token', 'gist-id', 'filename')
# Separator is the character that will separate Statistic name from its value.
# Until is the maximum of characters on the string, so it gets at the same column.
gist.update(statistics, delimiter=' ', length=30) # Return Status Code.
# https://gist.github.com/ZSendokame/4637229c389a70083784eac6d4adc1f4
Metadata
Release files for Gistats 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Gistats-2.0.1.tar.gz | 2.8 kB | Details |
Release files / Gistats-2.0.1.tar.gz
| Download URL | Gistats-2.0.1.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7dc5755faeea114b3c88899c8daa0bd3ac01fcfabab5a1b674cdeeabed3afa3d
|
|
BLAKE2b-256 checksum How to use checksums |
b6e0359f9dfd8350fb58413a7ee1c61afe4494d5a0e70b3e22fd7ba27fc2968b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|