codegyan 1.0.0__tar.gz → 1.1.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.
- {codegyan-1.0.0/src/codegyan.egg-info → codegyan-1.1.0}/PKG-INFO +13 -2
- {codegyan-1.0.0 → codegyan-1.1.0}/setup.py +1 -1
- codegyan-1.1.0/src/codegyan/client.py +33 -0
- {codegyan-1.0.0 → codegyan-1.1.0/src/codegyan.egg-info}/PKG-INFO +13 -2
- codegyan-1.0.0/src/codegyan/client.py +0 -16
- {codegyan-1.0.0 → codegyan-1.1.0}/LICENSE.md +0 -0
- {codegyan-1.0.0 → codegyan-1.1.0}/README.md +0 -0
- {codegyan-1.0.0 → codegyan-1.1.0}/setup.cfg +0 -0
- {codegyan-1.0.0 → codegyan-1.1.0}/src/codegyan/__init__.py +0 -0
- {codegyan-1.0.0 → codegyan-1.1.0}/src/codegyan/compiler.py +0 -0
- {codegyan-1.0.0 → codegyan-1.1.0}/src/codegyan/tools.py +0 -0
- {codegyan-1.0.0 → codegyan-1.1.0}/src/codegyan.egg-info/SOURCES.txt +0 -0
- {codegyan-1.0.0 → codegyan-1.1.0}/src/codegyan.egg-info/dependency_links.txt +0 -0
- {codegyan-1.0.0 → codegyan-1.1.0}/src/codegyan.egg-info/requires.txt +0 -0
- {codegyan-1.0.0 → codegyan-1.1.0}/src/codegyan.egg-info/top_level.txt +0 -0
- {codegyan-1.0.0 → codegyan-1.1.0}/tests/test_compiler.py +0 -0
- {codegyan-1.0.0 → codegyan-1.1.0}/tests/test_tools.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: codegyan
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.1.0
|
|
4
4
|
Summary: A Python library to interact with the Codegyan API
|
|
5
5
|
Home-page: https://github.com/Codegyan-LLC/codegyan-python
|
|
6
6
|
Author: Prathmesh Yelne
|
|
@@ -13,6 +13,17 @@ Requires-Python: >=3.6
|
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE.md
|
|
15
15
|
Requires-Dist: requests
|
|
16
|
+
Dynamic: author
|
|
17
|
+
Dynamic: author-email
|
|
18
|
+
Dynamic: classifier
|
|
19
|
+
Dynamic: description
|
|
20
|
+
Dynamic: description-content-type
|
|
21
|
+
Dynamic: home-page
|
|
22
|
+
Dynamic: keywords
|
|
23
|
+
Dynamic: license-file
|
|
24
|
+
Dynamic: requires-dist
|
|
25
|
+
Dynamic: requires-python
|
|
26
|
+
Dynamic: summary
|
|
16
27
|
|
|
17
28
|
# Codegyan Python Library
|
|
18
29
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
from .compiler import CompilerApiClient # Import the CompilerApiClient class from .compiler module
|
|
2
|
+
from .tools import ToolsApiClient # Import the ToolsApiClient class from .tools module
|
|
3
|
+
|
|
4
|
+
class Codegyan:
|
|
5
|
+
# Singleton pattern to ensure only one instance of the class is created
|
|
6
|
+
_instance = None
|
|
7
|
+
|
|
8
|
+
# Override the __new__ method to ensure only one instance of the class is created
|
|
9
|
+
def __new__(cls, api_key, client_id):
|
|
10
|
+
if cls._instance is None:
|
|
11
|
+
cls._instance = super(Codegyan, cls).__new__(cls)
|
|
12
|
+
# Initialize only once
|
|
13
|
+
cls._instance._initialized = False
|
|
14
|
+
return cls._instance
|
|
15
|
+
|
|
16
|
+
# Initialize the Codegyan API client with API key and client ID
|
|
17
|
+
def __init__(self, api_key, client_id):
|
|
18
|
+
# Prevent re-initialization
|
|
19
|
+
if self._initialized:
|
|
20
|
+
return
|
|
21
|
+
|
|
22
|
+
# Args:
|
|
23
|
+
# - api_key (str): The API key for authentication.
|
|
24
|
+
# - client_id (str): The client ID for identification.
|
|
25
|
+
self.api_key = api_key
|
|
26
|
+
self.client_id = client_id
|
|
27
|
+
|
|
28
|
+
# Initialize the instances
|
|
29
|
+
self.compilerApiClient = CompilerApiClient(self.api_key, self.client_id)
|
|
30
|
+
self.toolsApiClient = ToolsApiClient(self.api_key, self.client_id)
|
|
31
|
+
|
|
32
|
+
# Mark as initialized
|
|
33
|
+
self._initialized = True
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: codegyan
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.1.0
|
|
4
4
|
Summary: A Python library to interact with the Codegyan API
|
|
5
5
|
Home-page: https://github.com/Codegyan-LLC/codegyan-python
|
|
6
6
|
Author: Prathmesh Yelne
|
|
@@ -13,6 +13,17 @@ Requires-Python: >=3.6
|
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE.md
|
|
15
15
|
Requires-Dist: requests
|
|
16
|
+
Dynamic: author
|
|
17
|
+
Dynamic: author-email
|
|
18
|
+
Dynamic: classifier
|
|
19
|
+
Dynamic: description
|
|
20
|
+
Dynamic: description-content-type
|
|
21
|
+
Dynamic: home-page
|
|
22
|
+
Dynamic: keywords
|
|
23
|
+
Dynamic: license-file
|
|
24
|
+
Dynamic: requires-dist
|
|
25
|
+
Dynamic: requires-python
|
|
26
|
+
Dynamic: summary
|
|
16
27
|
|
|
17
28
|
# Codegyan Python Library
|
|
18
29
|
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
from .compiler import CompilerApiClient # Import the CompilerApiClient class from .compiler module
|
|
2
|
-
from .tools import ToolsApiClient # Import the ToolsApiClient class from .tools module
|
|
3
|
-
|
|
4
|
-
class Codegyan:
|
|
5
|
-
def __init__(self, api_key, client_id):
|
|
6
|
-
# Initialize the Codegyan API client with API key and client ID.
|
|
7
|
-
|
|
8
|
-
# Args:
|
|
9
|
-
# - api_key (str): The API key for authentication.
|
|
10
|
-
# - client_id (str): The client ID for identification.
|
|
11
|
-
self.api_key = api_key
|
|
12
|
-
self.client_id = client_id
|
|
13
|
-
|
|
14
|
-
# Initialize the instances
|
|
15
|
-
self.compilerApiClient = CompilerApiClient(self.api_key, self.client_id)
|
|
16
|
-
self.toolsApiClient = ToolsApiClient(self.api_key, self.client_id)
|
|
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
|