Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use format=None to return raw Python data structure #467

Merged
merged 1 commit into from
Jan 22, 2025
Merged

Use format=None to return raw Python data structure #467

merged 1 commit into from
Jan 22, 2025

Conversation

hugovk
Copy link
Owner

@hugovk hugovk commented Jan 20, 2025

Fixes #432.

For example:

>>> import pypistats
>>> pypistats.recent("pip", format=None)
{'last_day': 6409346, 'last_month': 271410103, 'last_week': 68642673}

Copy link

codecov bot commented Jan 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.63%. Comparing base (9bee5f8) to head (c354641).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #467   +/-   ##
=======================================
  Coverage   99.62%   99.63%           
=======================================
  Files           8        8           
  Lines         808      819   +11     
=======================================
+ Hits          805      816   +11     
  Misses          3        3           
Flag Coverage Δ
macos-latest 97.31% <100.00%> (+0.03%) ⬆️
ubuntu-latest 99.63% <100.00%> (+<0.01%) ⬆️
windows-latest 97.31% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hugovk hugovk merged commit a23b0c6 into main Jan 22, 2025
73 checks passed
@hugovk hugovk deleted the data branch January 22, 2025 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: Added For new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the ability to retrieve stats as a deserialized/unformatted dict
1 participant