tikos 0.0.2__py3-none-any.whl
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.
- tikos/__init__.py +4 -0
- tikos/config.py +2 -0
- tikos/tikos.py +33 -0
- tikos-0.0.2.dist-info/LICENSE +0 -0
- tikos-0.0.2.dist-info/METADATA +15 -0
- tikos-0.0.2.dist-info/RECORD +9 -0
- tikos-0.0.2.dist-info/WHEEL +5 -0
- tikos-0.0.2.dist-info/entry_points.txt +2 -0
- tikos-0.0.2.dist-info/top_level.txt +1 -0
tikos/__init__.py
ADDED
tikos/config.py
ADDED
tikos/tikos.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import json
|
|
2
|
+
import requests
|
|
3
|
+
from .config import VER, BASE_URL_API
|
|
4
|
+
|
|
5
|
+
def Description():
|
|
6
|
+
print(f"Tikos Platform {VER}")
|
|
7
|
+
|
|
8
|
+
def Version():
|
|
9
|
+
print(VER)
|
|
10
|
+
|
|
11
|
+
def CreateExtractionRequest(url: str="", orgId: str="", orgToken: str="", userId: str="0", numOfFiles: str="1"):
|
|
12
|
+
if url == "":
|
|
13
|
+
url = BASE_URL_API
|
|
14
|
+
|
|
15
|
+
result = requests.post(url + '/client/extractionrequest', json={'orgId': orgId, 'token': orgToken, 'userId': userId, 'numOfFiles': numOfFiles})
|
|
16
|
+
return result.status_code, result.reason, result.text
|
|
17
|
+
|
|
18
|
+
def AddExtractionText(url: str="", requestId: str="", authToken: str="", text: str=""):
|
|
19
|
+
if url == "":
|
|
20
|
+
url = BASE_URL_API
|
|
21
|
+
|
|
22
|
+
result = requests.post(url + '/client/storeprocesstext',
|
|
23
|
+
json={'requestId': requestId, 'authToken': authToken, 'chunk': text})
|
|
24
|
+
return result.status_code, result.reason, result.text
|
|
25
|
+
|
|
26
|
+
def GetGraph(url: str="", requestId: str="", authToken: str=""):
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
def GenerateSC(url: str="", requestId: str="", authToken: str=""):
|
|
30
|
+
pass
|
|
31
|
+
|
|
32
|
+
def GetRetrival(url: str="", orgId: str="", requestId: str="", authToken: str=""):
|
|
33
|
+
pass
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tikos
|
|
3
|
+
Version: 0.0.2
|
|
4
|
+
Summary: Tikos Platform Library
|
|
5
|
+
Home-page: http://packages.python.org/tikos
|
|
6
|
+
Author: Don Liyanage, Tikos Technologies Ltd
|
|
7
|
+
Author-email: don.liyanage@tikos.tech
|
|
8
|
+
License: Apache-2.0
|
|
9
|
+
Keywords: Tokis
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: requests
|
|
15
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
tikos/__init__.py,sha256=3zDARujxkn50ZwfY4UKKm1SrQXDEw8uGu8fKwwvpylw,142
|
|
2
|
+
tikos/config.py,sha256=NyNcuy5wp7-lZFrR9Xcm7UHZXQa2g0QtyN5TQXO2dwQ,50
|
|
3
|
+
tikos/tikos.py,sha256=aJ7admjPVrS4qKUxpUATofEIJyG1QDxuYkeof3ohgU0,1147
|
|
4
|
+
tikos-0.0.2.dist-info/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
tikos-0.0.2.dist-info/METADATA,sha256=3mgL0s-sqOiCB4lhJ2gLnm2hFzuXzUsgLLKjwQ1zbVs,484
|
|
6
|
+
tikos-0.0.2.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
7
|
+
tikos-0.0.2.dist-info/entry_points.txt,sha256=T8XfUmIihkYohhly4_3Fi4so6jGPONCaKiLcOC6qMLg,44
|
|
8
|
+
tikos-0.0.2.dist-info/top_level.txt,sha256=_un-LL9ZVxddfRgMnFtvAVdQgUVY4HaVvI6wS0h1_Es,6
|
|
9
|
+
tikos-0.0.2.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tikos
|