Skip to main content
Files added late

2 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.

The Connections project query grammar parsing library.

Install

Use setup.py to install cnx-query-grammar:

$ python setup.py install

This creates a script called query_parser.

Usage

>>> from cnxquerygrammar.query_parser import grammar, DictFormater

>>> node_tree = grammar.parse('Some text')
>>> DictFormater().visit(node_tree)
[('text', 'Some'), ('text', 'text')]

>>> node_tree = grammar.parse('"A phrase"')
>>> DictFormater().visit(node_tree)
[('text', 'A phrase')]

>>> node_tree = grammar.parse('author:"John Smith" type:book')
>>> DictFormater().visit(node_tree)
[('author', 'John Smith'), ('type', 'book')]

>>> node_tree = grammar.parse('author:"John Smith" type:book title:" A Title   With Spaces"')
>>> DictFormater().visit(node_tree)
[('author', 'John Smith'), ('type', 'book'), ('title', 'A Title With Spaces')]

Test

To run the tests:

$ python -m unittest discover

License

This software is subject to the provisions of the GNU Affero General Public License Version 3.0 (AGPL). See license.txt for details. Copyright (c) 2013 Rice University

Metadata

Release files for cnx-query-grammar 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Files added late

2 files were uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distributions (sdists)

Source distribution for cnx-query-grammar 0.2.2
File Size Uploaded
cnx-query-grammar-0.2.2.zip 7.7 kB Details
cnx-query-grammar-0.2.2.tar.gz 4.1 kB Details
cnx-query-grammar-0.2.2.tar.bz2 4.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for cnx-query-grammar 0.2.2
File Interpreter ABI Platform
cnx_query_grammar-0.2.2-py3-none-any.whl Python 3 none any Details
cnx_query_grammar-0.2.2-py2-none-any.whl Python 2 none any Details

Total release size: 29.0 kB

Release files / cnx-query-grammar-0.2.2.zip

Download URL cnx-query-grammar-0.2.2.zip
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
61e72fd41558a1738cadc5cd795cc63b649b3eeb13a49c26b5a95f2b2fac98ab
BLAKE2b-256 checksum
How to use checksums
b0d51db0be9c0837057fc8b3aa11ec8701afcb55d827a205ffa0ddd4cf019dea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / cnx-query-grammar-0.2.2.tar.gz

Download URL cnx-query-grammar-0.2.2.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c0c790a445b4116b6de6b028b6966a6e958d1d2cb73dc88aa5b4aaddfb13adba
BLAKE2b-256 checksum
How to use checksums
4ea56afdf20910777509e8a7c3494ac0f5fa4c1f59d3a0f9e56c76df68a79398
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / cnx-query-grammar-0.2.2.tar.bz2

Download URL cnx-query-grammar-0.2.2.tar.bz2
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
55cba16e697face73a1507b48721db8ea367be9f462503e78d7b7c9cbadb4b2c
BLAKE2b-256 checksum
How to use checksums
df03d79c8ec9430a98e84e1f9963ae3ff03b446542865a86dd248c049f85ee44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / cnx_query_grammar-0.2.2-py3-none-any.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL cnx_query_grammar-0.2.2-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37af62033099205a994459b903a7d96a9f28e8a18f6a3515e61bcf6272790b62
BLAKE2b-256 checksum
How to use checksums
a97295611868010df6ea020cd4c7fa498171fdfc8d490ae769b31da99887a6b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / cnx_query_grammar-0.2.2-py2-none-any.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL cnx_query_grammar-0.2.2-py2-none-any.whl
Size 6.6 kB
Tags Python 2
SHA-256 checksum
How to use checksums
735db8a2ec65cbe01470c760a5cfbfb12d6f6093af9135ea1021d34fe003ebf5
BLAKE2b-256 checksum
How to use checksums
1f876b61380fdff10cb088f920e84106b6e9b74b6bfec78a501c46fd06ae6508
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.2 This release

5 release files

0.2.1

3 release files

0.2

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page