Skip to main content

JSE (JSON Structural Expression) interpreter for Python

Project description

PyJSE

JSE (JSON Structural Expression) 的 Python 实现,可发布至 PyPI。

安装

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.0.tar.gz (14.3 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.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyjse-0.2.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.13

File hashes

Hashes for pyjse-0.2.0.tar.gz
Algorithm Hash digest
SHA256 62654566b06266f166864dbaba4966b1adc4106d40bffbcd46ea22f407dcb712
MD5 6372680d74f09fb9d2c211dc2a8b75f9
BLAKE2b-256 334e981dfd1d46cfc15cdc478c0c47d9b7f3dcafc031784464736840c26355a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyjse-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.13

File hashes

Hashes for pyjse-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 307dced7265de5bb92a4d99a7fd57671794512698b84785165755232f31b794c
MD5 92134923bf2ed5a54d0431a5e506729a
BLAKE2b-256 18cc0f6ec3a3e4cb94158f4b3d0f5d38358aefecc19512318bf5cb664dd6842e

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