Skip to content

Commit 1cc0a56

Browse files
isapegoivandasch
andauthored
GG-32914 [IGNITE-13911] Asyncio version of client (#31)
(cherry picked from commit cfc2fe4) Co-authored-by: Ivan Dashchinskiy <ivandasch@gmail.com>
1 parent dade2d6 commit 1cc0a56

68 files changed

Lines changed: 6572 additions & 3360 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*.so
88
build
99
distr
10+
docs/generated
1011
tests/config/*.xml
1112
junit*.xml
1213
pygridgain.egg-info

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ jobs:
4444
- python: '3.8'
4545
arch: amd64
4646
env: TOXENV=py38
47+
- python: '3.8'
48+
arch: amd64
49+
env: TOXENV=codestyle
4750
- python: '3.9'
4851
arch: amd64
4952
env: TOXENV=py39

examples/create_binary.py

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -23,44 +23,44 @@
2323
client.connect('127.0.0.1', 10800)
2424

2525
student_cache = client.create_cache({
26-
PROP_NAME: 'SQL_PUBLIC_STUDENT',
27-
PROP_SQL_SCHEMA: 'PUBLIC',
28-
PROP_QUERY_ENTITIES: [
29-
{
30-
'table_name': 'Student'.upper(),
31-
'key_field_name': 'SID',
32-
'key_type_name': 'java.lang.Integer',
33-
'field_name_aliases': [],
34-
'query_fields': [
35-
{
36-
'name': 'SID',
37-
'type_name': 'java.lang.Integer',
38-
'is_key_field': True,
39-
'is_notnull_constraint_field': True,
40-
},
41-
{
42-
'name': 'NAME',
43-
'type_name': 'java.lang.String',
44-
},
45-
{
46-
'name': 'LOGIN',
47-
'type_name': 'java.lang.String',
48-
},
49-
{
50-
'name': 'AGE',
51-
'type_name': 'java.lang.Integer',
52-
},
53-
{
54-
'name': 'GPA',
55-
'type_name': 'java.math.Double',
56-
},
57-
],
58-
'query_indexes': [],
59-
'value_type_name': 'SQL_PUBLIC_STUDENT_TYPE',
60-
'value_field_name': None,
61-
},
62-
],
63-
})
26+
PROP_NAME: 'SQL_PUBLIC_STUDENT',
27+
PROP_SQL_SCHEMA: 'PUBLIC',
28+
PROP_QUERY_ENTITIES: [
29+
{
30+
'table_name': 'Student'.upper(),
31+
'key_field_name': 'SID',
32+
'key_type_name': 'java.lang.Integer',
33+
'field_name_aliases': [],
34+
'query_fields': [
35+
{
36+
'name': 'SID',
37+
'type_name': 'java.lang.Integer',
38+
'is_key_field': True,
39+
'is_notnull_constraint_field': True,
40+
},
41+
{
42+
'name': 'NAME',
43+
'type_name': 'java.lang.String',
44+
},
45+
{
46+
'name': 'LOGIN',
47+
'type_name': 'java.lang.String',
48+
},
49+
{
50+
'name': 'AGE',
51+
'type_name': 'java.lang.Integer',
52+
},
53+
{
54+
'name': 'GPA',
55+
'type_name': 'java.math.Double',
56+
},
57+
],
58+
'query_indexes': [],
59+
'value_type_name': 'SQL_PUBLIC_STUDENT_TYPE',
60+
'value_field_name': None,
61+
},
62+
],
63+
})
6464

6565

6666
class Student(

examples/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@
280280
field_data = list(*result)
281281

282282
print('City info:')
283-
for field_name, field_value in zip(field_names*len(field_data), field_data):
283+
for field_name, field_value in zip(field_names * len(field_data), field_data):
284284
print('{}: {}'.format(field_name, field_value))
285285
# City info:
286286
# ID: 3802

pygridgain/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@
1414
# limitations under the License.
1515
#
1616
from pygridgain.client import Client
17+
from pygridgain.aio_client import AioClient
1718
from pygridgain.binary import GenericObjectMeta
19+
20+
__version__ = '1.3.0-dev'

0 commit comments

Comments
 (0)