Skip to main content

JSE (JSON Structural Expression) interpreter for Python

Project description

PyJSE

JSE (JSON Structural Expression) Python Edition

安装

pip install pyjse

开发模式:

cd python && pip install -e ".[dev]"

使用

from pyjse import Engine, ExpressionEnv

engine = Engine(ExpressionEnv())

engine.execute(42)                          # 42
engine.execute(["$and", True, True, False])  # False
engine.execute({"$expr": ["$pattern", "$*", "author of", "$*"]})  # SQL 字符串

开发

cd python
pip install -e ".[dev]"
pytest

发布到 PyPI

cd python
pip install build
python -m build
twine upload dist/*

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

pyjse-0.2.4.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

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

pyjse-0.2.4-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file pyjse-0.2.4.tar.gz.

File metadata

  • Download URL: pyjse-0.2.4.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for pyjse-0.2.4.tar.gz
Algorithm Hash digest
SHA256 7de49f20ebdf1f73dbc61a5010e26f17d1c03cbb5f6f1cbf9c3059188c618351
MD5 07fc6dd693c53edcd7be73fac8dc35ba
BLAKE2b-256 41645c6e909a1b16e3df393a43b248eb97419ca7ee7f6995bff91906f397da7d

See more details on using hashes here.

File details

Details for the file pyjse-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: pyjse-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 20.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for pyjse-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 db1ce00564981e50a28289c6b8ce89b1ebecabe628661380a9da6ddf91fb2a6f
MD5 e5ba0b5a9e97c491303a34add699a3c4
BLAKE2b-256 2415e61639607ade6a5c33bc9c14d2e775c02c3d90adc6b7b20bea8c8b47d23a

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