We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
supported_platforms.py
1 parent a07d951 commit 2baa89aCopy full SHA for 2baa89a
2 files changed
oshminer/supported_domains.py
oshminer/supported_platforms.py
@@ -0,0 +1,16 @@
1
+#!/usr/bin/env python3
2
+# -*- coding: utf-8 -*-
3
+# SPDX-FileCopyrightText: 2022 Pen-Yuan Hsing
4
+# SPDX-License-Identifier: AGPL-3.0-or-later
5
+
6
+import oshminer.GitHub
7
+import oshminer.Wikifactory
8
9
+# Supported hosting platforms as a dictionary of their domains, which are
10
+# matched to names of internal functions that construct API requests to the
11
+# associated platforms.
12
+# `repo_urls` need to include one of these domains.
13
+supported_domains: dict = {
14
+ "github.com": oshminer.GitHub.make_GitHub_request,
15
+ "wikifactory.com": oshminer.Wikifactory.make_Wikifactory_request
16
+}
0 commit comments