Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
PGCAW is a very simple API wrapper for the github contributions calendar. The wrapper supports extracting data about any given users contribution history, such as total contributions in the last year and daily contribution numbers.
The recommended way to install PGCAW is using pip.
pip install pgcaw
To gather data about a specific Github user you first need to create a Contributions
instance, initialized with the given users username.
>>> import pgcaw
>>> contributions = pgcaw.Contributions("CGodiksen")
Using this instance you can now get data related to the users Github calendar.
>>> contributions.total()
1758
>>> contributions.daily()
[(datetime.date(2020, 12, 20), 1), (datetime.date(2020, 12, 21), 1), (datetime.date(2020, 12, 22), 16)]
Notice that daily()
returns a list of tuples with the format [(date, number_contributions_on_date)]
.
The class also contains some utility methods used to extract further information from the contributions graph.
>>> daily = contributions.daily()
>>> contributions.current_streak(daily)
(23, datetime.date(2020, 1, 12), datetime.date(2020, 12, 23))
>>> contributions.longest_streak(daily)
(105, datetime.date(2020, 8, 10), datetime.date(2020, 11, 23))
Note here that both current_streak()
and longest_streak()
returns a tuple with the format (streak_length, from_date, to_date)
.
FAQs
PGCAW is a very simple API wrapper for the github contributions calendar.
We found that pgcaw demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.