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 | Provenance | Actions |
|---|---|---|---|---|
| Gistats-2.0.1.tar.gz | 2.8 kB | Without provenance | Details for Gistats-2.0.1.tar.gz |
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
|
Security for Gistats 2.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.