firehawk-0.3
توضیحات
Alternative graph parsing language and REPL for DataStax Enterprise (DSE)
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | firehawk-0.3 |
| نام | firehawk |
| نسخه کتابخانه | 0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jon Haddad |
| ایمیل نویسنده | jon@jonhaddad.com |
| آدرس صفحه اصلی | https://github.com/rustyrazorblade/firehawk |
| آدرس اینترنتی | https://pypi.org/project/firehawk/ |
| مجوز | License :: OSI Approved :: Apache Software License |
# Firehawk
Experimental Language and REPL
# Installation
pip install firehawk
You will also need the DSE Graph driver. That's up to you for now.
# Code Examples
> from firehawk import parse_line
> query = parse_line("CREATE VERTEX person")
> type(query)
firehawk.ddl.CreateVertex
> print query
schema = graph.schema()
schema.buildVertexLabel('person').add()
# REPL
This package provides a REPL.
graph [name]
# Supported Syntax
create graph [graph]
use [graph]
create vertex [label]
create edge [label]
create property [name] [type]
CREATE [materialized|secondary|search] INDEX [name] ON VERTEX [label]([field])
CREATE [in|out] INDEX [name] ON VERTEX [vertex-label] ON EDGE [edge-label]([edge-property])
نحوه نصب
نصب پکیج whl firehawk-0.3:
pip install firehawk-0.3.whl
نصب پکیج tar.gz firehawk-0.3:
pip install firehawk-0.3.tar.gz