Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ga thrift files and version #92

Merged
merged 3 commits into from
Mar 22, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
modify the version
laura-ding committed Mar 22, 2021
commit 1fb36add0105c526748b443016408aabc33bd209
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -141,5 +141,6 @@ while resp.has_next():
| Nebula2-Python Version | NebulaGraph Version |
|---|---|
| 2.0.0.post1 | 2.0.0beta |
| 2.0.0rc1 | 2.0.0-RC1 |
| 2.0.0rc1 | 2.0.0-rc1 |
| 2.0.0ga | 2.0.0-ga |

14 changes: 11 additions & 3 deletions example/GraphClientSimpleExample.py
Original file line number Diff line number Diff line change
@@ -6,10 +6,8 @@
# This source code is licensed under Apache 2.0 License,
# attached with Common Clause Condition 1.0, found in the LICENSES directory.

import sys
import time


from nebula2.gclient.net import ConnectionPool
from nebula2.Config import Config
from FormatResp import print_resp
@@ -34,13 +32,23 @@
time.sleep(6)

# insert vertex
resp = client.execute('INSERT VERTEX person(name, age) VALUES "Bob":("Bob", 10)')
resp = client.execute('INSERT VERTEX person(name, age) VALUES "Bob":("Bob", 10), "Lily":("Lily", 9)')
assert resp.is_succeeded(), resp.error_msg()

# Insert edges
client.execute('INSERT EDGE like(likeness) VALUES "Bob"->"Lily":(80.0);')
assert resp.is_succeeded(), resp.error_msg()

assert resp.is_succeeded(), resp.error_msg()

resp = client.execute('FETCH PROP ON person "Bob"')
assert resp.is_succeeded(), resp.error_msg()
print_resp(resp)

resp = client.execute('FETCH PROP ON like "Bob"->"Lily"')
assert resp.is_succeeded(), resp.error_msg()
print_resp(resp)

except Exception as x:
import traceback
print(traceback.format_exc())
10 changes: 4 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -10,18 +10,16 @@

setup(
name='nebula2-python',
version='2.0.0rc1',
version='2.0.0ga',
license="Apache 2.0 + Common Clause 1.0",
author='vesoft-inc',
author_email='info@vesoft.com',
long_description='Python client for Nebula Graph V2.0',
url='https://github.com/vesoft-inc/nebula-python',
install_requires=['httplib2',
'future',
'six',
'futures; python_version == "2.7"'],
'six'],
packages=find_packages(),
platforms=["2.7, 3.5, 3.7"],
package_dir={'nebula2': 'nebula2',
'thirft': 'thirft'},
platforms=["3.5, 3.7"],
package_dir={'nebula2': 'nebula2'},
)