kudu-python 1.16.0__tar.gz → 1.17.1__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.
Files changed (45) hide show
  1. {kudu-python-1.16.0 → kudu-python-1.17.1}/MANIFEST.in +3 -0
  2. {kudu-python-1.16.0/kudu_python.egg-info → kudu-python-1.17.1}/PKG-INFO +20 -20
  3. kudu-python-1.17.1/README.md +11 -0
  4. {kudu-python-1.16.0 → kudu-python-1.17.1}/kudu/__init__.py +13 -3
  5. {kudu-python-1.16.0 → kudu-python-1.17.1}/kudu/client.cpp +8720 -4160
  6. {kudu-python-1.16.0 → kudu-python-1.17.1}/kudu/client.pyx +245 -4
  7. {kudu-python-1.16.0 → kudu-python-1.17.1}/kudu/compat.py +11 -1
  8. kudu-python-1.17.1/kudu/config.pxi +24 -0
  9. {kudu-python-1.16.0 → kudu-python-1.17.1}/kudu/errors.cpp +395 -109
  10. {kudu-python-1.16.0 → kudu-python-1.17.1}/kudu/libkudu_client.pxd +35 -3
  11. {kudu-python-1.16.0 → kudu-python-1.17.1}/kudu/schema.cpp +3192 -1467
  12. {kudu-python-1.16.0 → kudu-python-1.17.1}/kudu/schema.pyx +131 -3
  13. {kudu-python-1.16.0 → kudu-python-1.17.1}/kudu/version.py +1 -1
  14. {kudu-python-1.16.0 → kudu-python-1.17.1/kudu_python.egg-info}/PKG-INFO +20 -20
  15. {kudu-python-1.16.0 → kudu-python-1.17.1}/kudu_python.egg-info/SOURCES.txt +1 -10
  16. kudu-python-1.17.1/kudu_python.egg-info/requires.txt +2 -0
  17. kudu-python-1.17.1/requirements.txt +2 -0
  18. {kudu-python-1.16.0 → kudu-python-1.17.1}/setup.py +22 -26
  19. kudu-python-1.16.0/kudu/tests/__init__.py → kudu-python-1.17.1/setup_prerequisites.py +23 -1
  20. kudu-python-1.17.1/version.txt +1 -0
  21. kudu-python-1.16.0/Makefile +0 -19
  22. kudu-python-1.16.0/README.md +0 -12
  23. kudu-python-1.16.0/kudu/config.pxi +0 -11
  24. kudu-python-1.16.0/kudu/tests/common.py +0 -139
  25. kudu-python-1.16.0/kudu/tests/test_client.py +0 -534
  26. kudu-python-1.16.0/kudu/tests/test_scanner.py +0 -406
  27. kudu-python-1.16.0/kudu/tests/test_scantoken.py +0 -299
  28. kudu-python-1.16.0/kudu/tests/test_schema.py +0 -298
  29. kudu-python-1.16.0/kudu/tests/test_util.py +0 -80
  30. kudu-python-1.16.0/kudu/tests/util.py +0 -275
  31. kudu-python-1.16.0/kudu_python.egg-info/requires.txt +0 -3
  32. kudu-python-1.16.0/pytest.ini +0 -4
  33. kudu-python-1.16.0/requirements.txt +0 -22
  34. kudu-python-1.16.0/version.txt +0 -1
  35. {kudu-python-1.16.0 → kudu-python-1.17.1}/LICENSE.txt +0 -0
  36. {kudu-python-1.16.0 → kudu-python-1.17.1}/kudu/__init__.pxd +0 -0
  37. {kudu-python-1.16.0 → kudu-python-1.17.1}/kudu/client.pxd +0 -0
  38. {kudu-python-1.16.0 → kudu-python-1.17.1}/kudu/config.pxi.in +0 -0
  39. {kudu-python-1.16.0 → kudu-python-1.17.1}/kudu/errors.pxd +0 -0
  40. {kudu-python-1.16.0 → kudu-python-1.17.1}/kudu/errors.pyx +0 -0
  41. {kudu-python-1.16.0 → kudu-python-1.17.1}/kudu/schema.pxd +0 -0
  42. {kudu-python-1.16.0 → kudu-python-1.17.1}/kudu/util.py +0 -0
  43. {kudu-python-1.16.0 → kudu-python-1.17.1}/kudu_python.egg-info/dependency_links.txt +0 -0
  44. {kudu-python-1.16.0 → kudu-python-1.17.1}/kudu_python.egg-info/top_level.txt +0 -0
  45. {kudu-python-1.16.0 → kudu-python-1.17.1}/setup.cfg +0 -0
@@ -2,9 +2,12 @@ include LICENSE.txt
2
2
  include MANIFEST.in
3
3
  include README.md
4
4
  include setup.py
5
+ include setup_prerequisites.py
5
6
  include version.txt
7
+ include requirements.txt
6
8
 
7
9
  graft kudu
10
+ prune kudu/tests
8
11
 
9
12
  global-exclude *.so
10
13
  global-exclude *.pyc
@@ -1,11 +1,23 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 1.2
2
2
  Name: kudu-python
3
- Version: 1.16.0
3
+ Version: 1.17.1
4
4
  Summary: Python interface to the Apache Kudu C++ Client API
5
5
  Home-page: http://kudu.apache.org/
6
6
  Maintainer: Apache Kudu team
7
7
  Maintainer-email: dev@kudu.apache.org
8
8
  License: Apache License, Version 2.0
9
+ Description: kudu-python: Python interface to the Apache Kudu C++ Client API
10
+ ---------------------------------------------------------------
11
+
12
+ Using this package requires that you install the Kudu C++ client libraries and
13
+ headers. See https://kudu.apache.org for more.
14
+
15
+ To install from PyPI, run
16
+
17
+ ```
18
+ pip install kudu-python
19
+ ```
20
+
9
21
  Platform: UNKNOWN
10
22
  Classifier: Development Status :: 5 - Production/Stable
11
23
  Classifier: Intended Audience :: Developers
@@ -17,22 +29,10 @@ Classifier: Programming Language :: Python
17
29
  Classifier: Programming Language :: Python :: 2
18
30
  Classifier: Programming Language :: Python :: 3
19
31
  Classifier: Programming Language :: Python :: 2.7
20
- Classifier: Programming Language :: Python :: 3.4
21
- Classifier: Programming Language :: Python :: 3.5
32
+ Classifier: Programming Language :: Python :: 3.6
33
+ Classifier: Programming Language :: Python :: 3.7
34
+ Classifier: Programming Language :: Python :: 3.8
35
+ Classifier: Programming Language :: Python :: 3.9
36
+ Classifier: Programming Language :: Python :: 3.10
37
+ Classifier: Programming Language :: Python :: 3.11
22
38
  Classifier: Programming Language :: Cython
23
- License-File: LICENSE.txt
24
-
25
- ## kudu-python: Python interface to the Apache Kudu C++ Client API
26
-
27
- Using this package requires that you install the Kudu C++ client libraries and
28
- headers. See http://getkudu.io for more.
29
-
30
- To install from PyPI, run
31
-
32
- ```
33
- pip install kudu-python
34
- ```
35
-
36
- Installation from source requires Cython.
37
-
38
-
@@ -0,0 +1,11 @@
1
+ kudu-python: Python interface to the Apache Kudu C++ Client API
2
+ ---------------------------------------------------------------
3
+
4
+ Using this package requires that you install the Kudu C++ client libraries and
5
+ headers. See https://kudu.apache.org for more.
6
+
7
+ To install from PyPI, run
8
+
9
+ ```
10
+ pip install kudu-python
11
+ ```
@@ -61,7 +61,8 @@ from kudu.schema import (int8, int16, int32, int64, string_ as string, # noqa
61
61
 
62
62
 
63
63
  def connect(host, port=7051, admin_timeout_ms=None, rpc_timeout_ms=None,
64
- require_authentication=False, encryption_policy=ENCRYPTION_OPTIONAL):
64
+ require_authentication=False, encryption_policy=ENCRYPTION_OPTIONAL,
65
+ jwt=None, trusted_certificates=None):
65
66
  """
66
67
  Connect to a Kudu master server
67
68
 
@@ -80,6 +81,12 @@ def connect(host, port=7051, admin_timeout_ms=None, rpc_timeout_ms=None,
80
81
  Whether to require authentication
81
82
  encryption_policy : enum, optional
82
83
  Whether to require encryption
84
+ jwt : string, optional
85
+ The JSON web token to set.
86
+ trusted_certificates : string/list, optional
87
+ TLS certificates to trust (in PEM format) when negotiating an RPC
88
+ connection with Kudu servers. This is needed only if authenticating
89
+ to Kudu servers using JWT.
83
90
 
84
91
  Returns
85
92
  -------
@@ -102,10 +109,13 @@ def connect(host, port=7051, admin_timeout_ms=None, rpc_timeout_ms=None,
102
109
  else:
103
110
  addresses.append('{0}:{1}'.format(host, port))
104
111
 
105
- return Client(addresses, admin_timeout_ms=admin_timeout_ms,
112
+ return Client(addresses,
113
+ admin_timeout_ms=admin_timeout_ms,
106
114
  rpc_timeout_ms=rpc_timeout_ms,
107
115
  encryption_policy=encryption_policy,
108
- require_authentication=require_authentication)
116
+ require_authentication=require_authentication,
117
+ jwt=jwt,
118
+ trusted_certificates=trusted_certificates)
109
119
 
110
120
 
111
121
  def timedelta(seconds=0, millis=0, micros=0, nanos=0):