Skip to main content

High level query language for Reiz

Project description

IRUN: Indulgent Reiz User Notation

A human-friendly query language (python-like DSL) for generating Reiz QL queries.

Example

with open(...) as $stream:
    tree = ast.parse($stream.read())

The query above would match all of these potential cases (via Reiz):

with open('somefile.py') as file_s:
    tree = ast.parse(file_s.read())

with open(some_path) as stream:
    tree = ast.parse(stream.read())

with open(pathlib_path / 'file.py') as s_file:
    tree = ast.parse(s_file.read())

and filter out the rest (stuff like this):

with open(pathlib_path / 'file.py', encoding='x') as stream:
    tree = ast.parse(stream.read())

with open() as stream:
    tree = ast.parse(stream.read())

with foo(path) as stream:
    tree = ast.parse(stream.read())

with open(path) as stream:
    tree = ast.parse(other_stream.read())

with open(path) as stream:
    tree = ast.foo(stream.read())

with open(path) as stream:
    tree = bar.parse(stream.read())

with open(path) as stream:
    tree = bar.baz(stream.read())

with open(path) as xxx:
    tree = ast.parse(yyy.read())

with open(path) as xxx:
    zzz = ast.parse(xxx.read())

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

irun-0.2.tar.gz (7.2 kB view details)

Uploaded Source

File details

Details for the file irun-0.2.tar.gz.

File metadata

  • Download URL: irun-0.2.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.1 requests-toolbelt/0.8.0 tqdm/4.54.1 CPython/3.8.5+

File hashes

Hashes for irun-0.2.tar.gz
Algorithm Hash digest
SHA256 2200df092ca4ecbefaef5ed7f10a5be702348e1262ea11a8cf44b97abf14e119
MD5 054c5d920ea0d073bc949735faf650e6
BLAKE2b-256 9ed7fa0e72376acf1172974009414d99605216d4cbfa1cb06830501e82f568df

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