Skip to main content

A parser for Logical Query Protocol (LQP) S-expressions into Protobuf

Project description

python-tools

A command-line tool to parse Logical Query Protocol (LQP) S-expressions into Protobuf binary and JSON formats.

Usage

usage: lqp [-h] [--bin BIN] [--json JSON] input_directory

Parse LQP S-expression into Protobuf binary and JSON files.

positional arguments:
  input_directory  path to the input LQP S-expression files

options:
  -h, --help       show this help message and exit
  --bin BIN        output directory for the binary encoded protobuf
  --json JSON      output directory for the JSON encoded protobuf

Build

Install preprequisites:

pip install pip build setuptools wheel

Then build the module itself:

python -m build

Install locally:

pip install [--user] [--force-reinstall] dist/lqp-0.1.0-py3-none-any.whl

Running tests

Within python-tools,

Setup:

python -m pip install -e ".[test]"
python -m pip install pyrefly

Running tests:

python -m pytest

Type checking:

pyrefly check

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

lqp-0.1.5.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

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

lqp-0.1.5-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

Details for the file lqp-0.1.5.tar.gz.

File metadata

  • Download URL: lqp-0.1.5.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for lqp-0.1.5.tar.gz
Algorithm Hash digest
SHA256 9c1d002edff9182bb467404e77d03ed6fdbf21f461f4f2386de54e4b471c8235
MD5 b417a47fe9d11ee5b3e91b08ef75b2be
BLAKE2b-256 df8ab0ccb72ab097dfbab5bef9ed5b327d4f71cfd220036aa8bf1797547ab798

See more details on using hashes here.

File details

Details for the file lqp-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: lqp-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 24.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for lqp-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 17cddb28eda73f7180378daea31357d864906c610495f71e8114b5b3be537e45
MD5 721c7493bc0f4bff25ce077ddcb3c87f
BLAKE2b-256 9ea6625d14b8bd1466610121d3e25bfd3f153260f4b05f1bed37305cb7e9af1b

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