osgithub 0.4.0__tar.gz → 0.5.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.
- {osgithub-0.4.0 → osgithub-0.5.0}/PKG-INFO +1 -1
- {osgithub-0.4.0 → osgithub-0.5.0}/osgithub/github.py +14 -0
- {osgithub-0.4.0 → osgithub-0.5.0}/osgithub.egg-info/PKG-INFO +1 -1
- {osgithub-0.4.0 → osgithub-0.5.0}/LICENSE +0 -0
- {osgithub-0.4.0 → osgithub-0.5.0}/README.md +0 -0
- {osgithub-0.4.0 → osgithub-0.5.0}/osgithub/__init__.py +0 -0
- {osgithub-0.4.0 → osgithub-0.5.0}/osgithub.egg-info/SOURCES.txt +0 -0
- {osgithub-0.4.0 → osgithub-0.5.0}/osgithub.egg-info/dependency_links.txt +0 -0
- {osgithub-0.4.0 → osgithub-0.5.0}/osgithub.egg-info/requires.txt +0 -0
- {osgithub-0.4.0 → osgithub-0.5.0}/osgithub.egg-info/top_level.txt +0 -0
- {osgithub-0.4.0 → osgithub-0.5.0}/pyproject.toml +0 -0
- {osgithub-0.4.0 → osgithub-0.5.0}/setup.cfg +0 -0
- {osgithub-0.4.0 → osgithub-0.5.0}/setup.py +0 -0
|
@@ -446,6 +446,20 @@ class GithubRepo:
|
|
|
446
446
|
contrib_list = [contrib["login"] for contrib in content]
|
|
447
447
|
return contrib_list
|
|
448
448
|
|
|
449
|
+
def get_topics(self):
|
|
450
|
+
"""
|
|
451
|
+
Gets the repo's topics.
|
|
452
|
+
|
|
453
|
+
If the repo's name and about are also being fetched from GitHub,
|
|
454
|
+
consider setting `use_cache` to True in the GithubClient to avoid
|
|
455
|
+
duplicate calls to the repo endpoint.
|
|
456
|
+
|
|
457
|
+
Returns:
|
|
458
|
+
list[str]: list of topics
|
|
459
|
+
"""
|
|
460
|
+
content = self.client.get_json(self.repo_path_segments)
|
|
461
|
+
return content["topics"]
|
|
462
|
+
|
|
449
463
|
def clear_cache(self):
|
|
450
464
|
"""Clears all request cache urls for this repo"""
|
|
451
465
|
cached_urls = self.client.session.cache.urls()
|
|
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
|