githubkit 0.9.7__tar.gz → 0.10.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. {githubkit-0.9.7 → githubkit-0.10.0}/PKG-INFO +1 -1
  2. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/auth/app.py +4 -4
  3. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/actions.py +1332 -0
  4. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/activity.py +312 -0
  5. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/apps.py +372 -0
  6. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/billing.py +62 -0
  7. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/checks.py +122 -0
  8. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/code_scanning.py +278 -0
  9. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/codes_of_conduct.py +22 -0
  10. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/codespaces.py +472 -0
  11. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/dependabot.py +192 -0
  12. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/dependency_graph.py +22 -0
  13. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/emojis.py +12 -0
  14. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/gists.py +202 -0
  15. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/git.py +132 -0
  16. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/gitignore.py +22 -0
  17. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/interactions.py +92 -0
  18. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/issues.py +402 -0
  19. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/licenses.py +32 -0
  20. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/markdown.py +22 -0
  21. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/meta.py +52 -0
  22. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/migrations.py +222 -0
  23. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/models.py +557 -36
  24. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/oidc.py +22 -0
  25. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/orgs.py +1276 -12
  26. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/packages.py +358 -0
  27. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/projects.py +252 -0
  28. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/pulls.py +274 -0
  29. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/rate_limit.py +12 -0
  30. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/reactions.py +252 -0
  31. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/repos.py +1703 -1
  32. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/search.py +72 -0
  33. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/secret_scanning.py +62 -0
  34. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/teams.py +602 -0
  35. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/types.py +334 -27
  36. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/users.py +412 -0
  37. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/utils.py +2 -0
  38. {githubkit-0.9.7 → githubkit-0.10.0}/pyproject.toml +25 -15
  39. {githubkit-0.9.7 → githubkit-0.10.0}/LICENSE +0 -0
  40. {githubkit-0.9.7 → githubkit-0.10.0}/README.md +0 -0
  41. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/__init__.py +0 -0
  42. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/auth/__init__.py +0 -0
  43. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/auth/_url.py +0 -0
  44. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/auth/action.py +0 -0
  45. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/auth/base.py +0 -0
  46. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/auth/oauth.py +0 -0
  47. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/auth/token.py +0 -0
  48. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/auth/unauth.py +0 -0
  49. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/cache/__init__.py +0 -0
  50. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/cache/base.py +0 -0
  51. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/cache/mem_cache.py +0 -0
  52. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/config.py +0 -0
  53. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/core.py +0 -0
  54. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/exception.py +0 -0
  55. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/github.py +0 -0
  56. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/graphql/__init__.py +0 -0
  57. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/graphql/models.py +0 -0
  58. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/paginator.py +0 -0
  59. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/py.typed +0 -0
  60. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/response.py +0 -0
  61. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/rest/__init__.py +4 -4
  62. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/typing.py +0 -0
  63. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/webhooks/__init__.py +0 -0
  64. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/webhooks/models.py +0 -0
  65. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/webhooks/parse.py +0 -0
  66. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/webhooks/types.py +0 -0
  67. {githubkit-0.9.7 → githubkit-0.10.0}/githubkit/webhooks/verify.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: githubkit
3
- Version: 0.9.7
3
+ Version: 0.10.0
4
4
  Summary: GitHub SDK for Python
5
5
  Home-page: https://github.com/yanyongyu/githubkit
6
6
  License: MIT
@@ -33,7 +33,7 @@ class AppAuth(httpx.Auth):
33
33
  """GitHub App or Installation Authentication Hook"""
34
34
 
35
35
  github: "GitHubCore"
36
- app_id: str
36
+ app_id: Union[str, int]
37
37
  private_key: str
38
38
  client_id: Optional[str] = None
39
39
  client_secret: Optional[str] = None
@@ -59,7 +59,7 @@ class AppAuth(httpx.Auth):
59
59
  time = datetime.now(timezone.utc) - timedelta(minutes=1)
60
60
  expire_time = time + timedelta(minutes=10)
61
61
  return jwt.encode(
62
- {"iss": self.app_id, "iat": time, "exp": expire_time},
62
+ {"iss": str(self.app_id), "iat": time, "exp": expire_time},
63
63
  self.private_key,
64
64
  algorithm="RS256",
65
65
  )
@@ -219,7 +219,7 @@ class AppAuth(httpx.Auth):
219
219
  class AppAuthStrategy(BaseAuthStrategy):
220
220
  """GitHub App Authentication"""
221
221
 
222
- app_id: str
222
+ app_id: Union[str, int]
223
223
  private_key: str
224
224
  client_id: Optional[str] = None
225
225
  client_secret: Optional[str] = None
@@ -266,7 +266,7 @@ class AppAuthStrategy(BaseAuthStrategy):
266
266
  class AppInstallationAuthStrategy(BaseAuthStrategy):
267
267
  """GitHub App Installation Authentication"""
268
268
 
269
- app_id: str
269
+ app_id: Union[str, int]
270
270
  private_key: str
271
271
  installation_id: int
272
272
  client_id: Optional[str] = None