提交 6de6fdfb 编写于 作者: Y Yang Xuan

feat(python): add setup and LICENSE, change requirements


Former-commit-id: db1f39ec461cdf176671a03b9ec12db2894dda58
上级 508131e4
MIT License
Copyright (c) 2019 上海赜睿信息科技有限公司(Zilliz)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
\ No newline at end of file
...@@ -102,7 +102,6 @@ class TopKQueryResult(object): ...@@ -102,7 +102,6 @@ class TopKQueryResult(object):
return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def _abstract(): def _abstract():
raise NotImplementedError('You need to override this function') raise NotImplementedError('You need to override this function')
......
...@@ -2,20 +2,19 @@ import logging, logging.config ...@@ -2,20 +2,19 @@ import logging, logging.config
from thrift.transport import TSocket from thrift.transport import TSocket
from thrift.transport import TTransport from thrift.transport import TTransport
from thrift.transport.TTransport import TTransportException from thrift.protocol import TBinaryProtocol
from thrift.protocol import TBinaryProtocol, TCompactProtocol, TJSONProtocol from thrift.Thrift import TException, TApplicationException
from thrift.Thrift import TException, TApplicationException, TType
from megasearch.thrift import MegasearchService from megasearch.thrift import MegasearchService
from megasearch.thrift import ttypes from megasearch.thrift import ttypes
from client.Abstract import ( from client.Abstract import (
ConnectIntf, ConnectIntf,
TableSchema, TableSchema,
IndexType,
Range, Range,
RowRecord, RowRecord,
QueryResult, QueryResult,
TopKQueryResult TopKQueryResult,
IndexType
) )
from client.Status import Status from client.Status import Status
......
from client.Client import MegaSearch, Prepare, IndexType from client.Client import MegaSearch, Prepare, IndexType
from client.Status import Status
import time
import random import random
import struct import struct
from pprint import pprint from pprint import pprint
from megasearch.thrift import MegasearchService, ttypes
def main(): def main():
# Get client version # Get client version
......
atomicwrites==1.3.0 atomicwrites==1.3.0
attrs==19.1.0 attrs==19.1.0
Faker==1.0.7
importlib-metadata==0.17 importlib-metadata==0.17
mock==3.0.5 mock==3.0.5
more-itertools==7.0.0 more-itertools==7.0.0
...@@ -9,7 +10,9 @@ pluggy==0.12.0 ...@@ -9,7 +10,9 @@ pluggy==0.12.0
py==1.8.0 py==1.8.0
pyparsing==2.4.0 pyparsing==2.4.0
pytest==4.6.0 pytest==4.6.0
python-dateutil==2.8.0
six==1.12.0 six==1.12.0
text-unidecode==1.2
thrift==0.11.0 thrift==0.11.0
wcwidth==0.1.7 wcwidth==0.1.7
zipp==0.5.1 zipp==0.5.1
import setuptools
# TODO
long_description = ''
setuptools.setup(
name="MegaSearch",
version="0.0.1",
author="XuanYang",
author_email="xuan.yang@zilliz.com",
description="Sdk for using MegaSearch",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册