ghapi 2.0.4__tar.gz → 2.0.5__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.
- {ghapi-2.0.4/ghapi.egg-info → ghapi-2.0.5}/PKG-INFO +2 -2
- ghapi-2.0.5/ghapi/__init__.py +7 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/ghapi/core.py +2 -2
- {ghapi-2.0.4 → ghapi-2.0.5/ghapi.egg-info}/PKG-INFO +2 -2
- {ghapi-2.0.4 → ghapi-2.0.5}/ghapi.egg-info/requires.txt +1 -1
- {ghapi-2.0.4 → ghapi-2.0.5}/pyproject.toml +1 -1
- ghapi-2.0.4/ghapi/__init__.py +0 -1
- {ghapi-2.0.4 → ghapi-2.0.5}/CONTRIBUTING.md +0 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/LICENSE +0 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/MANIFEST.in +0 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/README.md +0 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/ghapi/_modidx.py +0 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/ghapi/actions.py +0 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/ghapi/all.py +0 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/ghapi/auth.py +0 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/ghapi/build_lib.py +0 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/ghapi/cli.py +0 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/ghapi/event.py +0 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/ghapi/gh_spec.py +0 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/ghapi/graphql.py +0 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/ghapi/page.py +0 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/ghapi/py.typed +0 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/ghapi/skill.py +0 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/ghapi/templates.py +0 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/ghapi.egg-info/SOURCES.txt +0 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/ghapi.egg-info/dependency_links.txt +0 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/ghapi.egg-info/entry_points.txt +0 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/ghapi.egg-info/top_level.txt +0 -0
- {ghapi-2.0.4 → ghapi-2.0.5}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ghapi
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.5
|
|
4
4
|
Summary: A python client for the GitHub API
|
|
5
5
|
Author-email: Jeremy Howard <info@fast.ai>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3 :: Only
|
|
|
15
15
|
Requires-Python: >=3.10
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
License-File: LICENSE
|
|
18
|
-
Requires-Dist: fastcore>=1.
|
|
18
|
+
Requires-Dist: fastcore>=2.1.16
|
|
19
19
|
Requires-Dist: fastspec>=0.1.2
|
|
20
20
|
Provides-Extra: dev
|
|
21
21
|
Requires-Dist: fastgit; extra == "dev"
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"""A python client for the GitHub API
|
|
2
|
+
|
|
3
|
+
Modules:
|
|
4
|
+
|
|
5
|
+
- `ghapi.skill`: GitHub REST API access via `GhApi`, plus local git operations via `fastgit.Git`. Use this for day-to-day GitHub work: reading/creating issues and PRs, checking CI status, managing releases/branches/gists, and repo-local git operations -- all from Python, no shelling out to `gh`/`git` needed."""
|
|
6
|
+
|
|
7
|
+
__version__ = "2.0.5"
|
|
@@ -17,7 +17,7 @@ from contextvars import ContextVar
|
|
|
17
17
|
|
|
18
18
|
from fastcore.all import *
|
|
19
19
|
from fastspec.spec import SpecParser
|
|
20
|
-
from fastspec.oapi import OpenAPIClient, OpFunc, SyncOpFunc
|
|
20
|
+
from fastspec.oapi import OpenAPIClient, OpFunc, SyncOpFunc
|
|
21
21
|
from fastspec.transport import AsyncTransport, SyncTransport
|
|
22
22
|
from .gh_spec import spec
|
|
23
23
|
from fastspec.errors import APIError
|
|
@@ -127,7 +127,7 @@ class GhApi(OpenAPIClient):
|
|
|
127
127
|
self.transport = tcls(debug=debug, limit_cb=limit_cb, timeout=timeout, base_headers=self.headers)
|
|
128
128
|
self.ops = [fcls(o, self.transport, self.gh_host, defaults=_LiveDefaults(kwargs)) for o in pspec.ops]
|
|
129
129
|
self.func_dict = {f'{o.path}:{o.verb.upper()}':o for o in self.ops}
|
|
130
|
-
self.groups =
|
|
130
|
+
self.groups = mk_groups(self.ops)
|
|
131
131
|
for k,v in self.groups.items(): setattr(self, k, v)
|
|
132
132
|
|
|
133
133
|
def __call__(self, path:str, verb:str=None, headers:dict=None, route:dict=None, query:dict=None, data=None):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ghapi
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.5
|
|
4
4
|
Summary: A python client for the GitHub API
|
|
5
5
|
Author-email: Jeremy Howard <info@fast.ai>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3 :: Only
|
|
|
15
15
|
Requires-Python: >=3.10
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
License-File: LICENSE
|
|
18
|
-
Requires-Dist: fastcore>=1.
|
|
18
|
+
Requires-Dist: fastcore>=2.1.16
|
|
19
19
|
Requires-Dist: fastspec>=0.1.2
|
|
20
20
|
Provides-Extra: dev
|
|
21
21
|
Requires-Dist: fastgit; extra == "dev"
|
|
@@ -12,7 +12,7 @@ license = {text = "Apache-2.0"}
|
|
|
12
12
|
authors = [{name = "Jeremy Howard", email = "info@fast.ai"}]
|
|
13
13
|
keywords = ['github', 'api']
|
|
14
14
|
classifiers = ["Natural Language :: English", "Intended Audience :: Developers", "Development Status :: 5 - Production/Stable", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only"]
|
|
15
|
-
dependencies = ['fastcore>=1.
|
|
15
|
+
dependencies = ['fastcore>=2.1.16', 'fastspec>=0.1.2']
|
|
16
16
|
|
|
17
17
|
[project.urls]
|
|
18
18
|
Repository = "https://github.com/fastai/ghapi"
|
ghapi-2.0.4/ghapi/__init__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.0.4"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|