yanyongyu / githubkit

The modern, all-batteries-included GitHub SDK for Python, including rest api, graphql, webhooks, like octokit!
MIT License
158 stars 21 forks source link

Feature: lazy load models in groups #78

Closed yanyongyu closed 6 months ago

yanyongyu commented 6 months ago

Models for each version are now loaded in groups when importing.

Currently, memory used by githubkit when startup is less than 50M.

fix #11 fix #54 fix #76

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (664ac39) 82.50% compared to head (af87c31) 75.60%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #78 +/- ## ========================================== - Coverage 82.50% 75.60% -6.90% ========================================== Files 108 541 +433 Lines 62239 59462 -2777 ========================================== - Hits 51349 44957 -6392 - Misses 10890 14505 +3615 ``` | [Flag](https://app.codecov.io/gh/yanyongyu/githubkit/pull/78/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ju4tCode) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/yanyongyu/githubkit/pull/78/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ju4tCode) | `75.60% <100.00%> (-6.90%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Ju4tCode#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.