tikos 0.0.2__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.
- tikos-0.0.2/LICENSE +0 -0
- tikos-0.0.2/PKG-INFO +13 -0
- tikos-0.0.2/README.md +0 -0
- tikos-0.0.2/setup.cfg +4 -0
- tikos-0.0.2/setup.py +30 -0
- tikos-0.0.2/tikos/__init__.py +4 -0
- tikos-0.0.2/tikos/config.py +2 -0
- tikos-0.0.2/tikos/tikos.py +33 -0
- tikos-0.0.2/tikos.egg-info/PKG-INFO +13 -0
- tikos-0.0.2/tikos.egg-info/SOURCES.txt +12 -0
- tikos-0.0.2/tikos.egg-info/dependency_links.txt +1 -0
- tikos-0.0.2/tikos.egg-info/entry_points.txt +2 -0
- tikos-0.0.2/tikos.egg-info/requires.txt +1 -0
- tikos-0.0.2/tikos.egg-info/top_level.txt +1 -0
tikos-0.0.2/LICENSE
ADDED
|
File without changes
|
tikos-0.0.2/PKG-INFO
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
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
|
tikos-0.0.2/README.md
ADDED
|
File without changes
|
tikos-0.0.2/setup.cfg
ADDED
tikos-0.0.2/setup.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import os
|
|
2
|
+
from setuptools import setup, find_packages
|
|
3
|
+
|
|
4
|
+
def read(fname):
|
|
5
|
+
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
setup(
|
|
9
|
+
name="tikos",
|
|
10
|
+
version="0.0.2",
|
|
11
|
+
author="Don Liyanage, Tikos Technologies Ltd",
|
|
12
|
+
author_email="don.liyanage@tikos.tech",
|
|
13
|
+
description=("Tikos Platform Library"),
|
|
14
|
+
license="Apache-2.0",
|
|
15
|
+
keywords="Tokis",
|
|
16
|
+
url="http://packages.python.org/tikos",
|
|
17
|
+
packages=find_packages(),
|
|
18
|
+
long_description=read('README.md'),
|
|
19
|
+
classifiers=[
|
|
20
|
+
"Development Status :: 3 - Alpha",
|
|
21
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
22
|
+
"License :: OSI Approved :: Apache Software License",
|
|
23
|
+
],
|
|
24
|
+
install_requires=['requests'],
|
|
25
|
+
entry_points={
|
|
26
|
+
'console_scripts': [
|
|
27
|
+
"tikos=tikos:Description",
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
)
|
|
@@ -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
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
setup.py
|
|
4
|
+
tikos/__init__.py
|
|
5
|
+
tikos/config.py
|
|
6
|
+
tikos/tikos.py
|
|
7
|
+
tikos.egg-info/PKG-INFO
|
|
8
|
+
tikos.egg-info/SOURCES.txt
|
|
9
|
+
tikos.egg-info/dependency_links.txt
|
|
10
|
+
tikos.egg-info/entry_points.txt
|
|
11
|
+
tikos.egg-info/requires.txt
|
|
12
|
+
tikos.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
requests
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tikos
|