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.3.tar.gz (14.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.3-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyjse-0.2.3.tar.gz
  • Upload date:
  • Size: 14.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.3.tar.gz
Algorithm Hash digest
SHA256 337453d5895a495169605528198a997ab1db7ad71b2c55046e763441a3c8ad00
MD5 f417fa7a9ddaad6a33ef5f94d83ebfba
BLAKE2b-256 f3d0be145221be6c86d9a8193dd8e91b34073b039921326939f8f292e4db7adb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyjse-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 16.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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 55bbb4fdbafb9e176a0289dae4e690857b2035086398df30a1fcb2d26d158a69
MD5 323577f18a80fa56d31f210bd650ce19
BLAKE2b-256 b904069d7761de195b9161e26e6fbf00b9f0e256395afc2e657a4b1d6f92cd4b

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