Skip to main content

Convenience wrapper for exonware-xwquery - provides 'import xwquery' alias

Project description

xwquery

One universal query language. Execute on Python data or convert between SQL, GraphQL, Cypher, and 35+ formats with a single engine. One script (XWQS) for the zone; used by xwstorage, xwaction, xwbase.

Company: eXonware.com · Author: eXonware Backend Team · Email: connect@exonware.com
Version: version.py (__version__, __date__)

Status Python License


Install

pip install exonware-xwquery

Requires xwsystem; xwsyntax for grammars. See docs/GUIDE_01_USAGE.md for details.


Quick start

from exonware.xwquery import XWQuery

data = {'users': [
    {'name': 'Alice', 'age': 30, 'city': 'NYC'},
    {'name': 'Bob', 'age': 25, 'city': 'LA'},
    {'name': 'Charlie', 'age': 35, 'city': 'NYC'},
]}

result = XWQuery.execute("""
    SELECT name, age
    FROM users
    WHERE age > 25 AND city = 'NYC'
""", data)
# result.data → [{'name': 'Alice', 'age': 30}, {'name': 'Charlie', 'age': 35}]

Convert between formats: XWQuery.convert(sql_string, from_format='sql', to_format='graphql').
Parse only: XWQuery.parse("SELECT * FROM users", source_format='sql').
Key code: REF_14_DX · API: REF_15_API.


What you get

Area Description
Execution Run queries on any Python data (node or table). Parse → plan → execute; one engine, one contract.
Grammars 35+ formats (SQL, GraphQL, Cypher, SPARQL, MQL, PromQL, JQ, JMESPath, …) via xwsyntax. Parse, generate, validate.
Operations CRUD, filtering, aggregation, graph (MATCH, PATH), JOIN, UNION, WINDOW, PIPE, and more.
Integration Consumed by xwstorage, xwaction, xwbase. One universal script (XWQS); zone execution (e.g. S3) converts to XWQS first.

Current phase: Alpha. Executor refactor and doc alignment in progress. Status: REF_22_PROJECT.


Docs and tests


License and links

MIT — LICENSE.
Homepage: https://exonware.com · Repository: https://github.com/exonware/xwquery

Contributing → CONTRIBUTING.md · Security → SECURITY.md (when present).

Built with ❤️ by eXonware.com - Revolutionizing Python Development Since 2025

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xwquery-0.9.0.5.tar.gz (6.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xwquery-0.9.0.5-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file xwquery-0.9.0.5.tar.gz.

File metadata

  • Download URL: xwquery-0.9.0.5.tar.gz
  • Upload date:
  • Size: 6.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for xwquery-0.9.0.5.tar.gz
Algorithm Hash digest
SHA256 5c77e9dbb58149e0b067dc0cb4983dba62327072fc8ad6baa9c501efffdad630
MD5 8b0a6152940c64ca4e76a0471e6efbe3
BLAKE2b-256 36cfee9cb7fae2668e18abe977f8e8fd7d52159cb6a0cb9da48e3fbe9da3ca7d

See more details on using hashes here.

File details

Details for the file xwquery-0.9.0.5-py3-none-any.whl.

File metadata

  • Download URL: xwquery-0.9.0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for xwquery-0.9.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d57dca8d210fb859a7c09d906576e4193f195ce8a4b8ccca8dab86e639538333
MD5 437e8e6e91e95e190affbfea2a899638
BLAKE2b-256 2e4210c1cf7b908b9f6a9e652af40dac43d6211c2fa1876480b0d4a5ab4307ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page