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.2.tar.gz
(14.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pyjse-0.2.2-py3-none-any.whl
(16.6 kB
view details)
File details
Details for the file pyjse-0.2.2.tar.gz.
File metadata
- Download URL: pyjse-0.2.2.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c73c62d335dbd57c991c9e3a6a55ec0e83cd4fea3b35f103bcec0d1a7c965cc
|
|
| MD5 |
d5d8ee11c47c67f3805ebfbe952e60ac
|
|
| BLAKE2b-256 |
e938ecf421b3c1fb724318ade278e4b47890785ba198971b45ca7c798ae00ace
|
File details
Details for the file pyjse-0.2.2-py3-none-any.whl.
File metadata
- Download URL: pyjse-0.2.2-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e9959325f7997750ac726acc8be5594c39803e855ce62838c26fa97500864da
|
|
| MD5 |
0f06cd090959cf0204784ccc53ff54c2
|
|
| BLAKE2b-256 |
a3ab78ad2525878e90ca7e7e0221c7ecfc030852aa642357a7d0571956b01ab1
|