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

dev(narugo): add repository analysis utils #56

Merged
merged 4 commits into from
Dec 11, 2024
Merged

dev(narugo): add repository analysis utils #56

merged 4 commits into from
Dec 11, 2024

Conversation

narugo1992
Copy link
Contributor

from hfutils.repository import hf_hub_repo_analysis

repo = hf_hub_repo_analysis(
    repo_id='deepghs/danbooru2024',
    # subdir='images',
    # repo_type='model',
    # sort_by='size',
)
print(repo)
print(repo.total_size)

@narugo1992 narugo1992 added the enhancement New feature or request label Dec 11, 2024
@narugo1992 narugo1992 self-assigned this Dec 11, 2024
Copy link

codecov bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.82%. Comparing base (3dc7994) to head (3fff0ae).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #56      +/-   ##
==========================================
+ Coverage   86.39%   86.82%   +0.42%     
==========================================
  Files          59       60       +1     
  Lines        1941     2004      +63     
==========================================
+ Hits         1677     1740      +63     
  Misses        264      264              
Flag Coverage Δ
unittests 86.82% <100.00%> (+0.42%) ⬆️

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.

@narugo1992 narugo1992 merged commit 4743914 into main Dec 11, 2024
25 checks passed
@narugo1992 narugo1992 deleted the dev/size branch December 11, 2024 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant