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.1.tar.gz
(13.9 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.1-py3-none-any.whl
(16.6 kB
view details)
File details
Details for the file pyjse-0.2.1.tar.gz.
File metadata
- Download URL: pyjse-0.2.1.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d885c6fc5a2c1ad23bd6ef041722e754f4ed65499ed46d73cf62ff5e539a856
|
|
| MD5 |
c6001cfc4409865cfde7e042e4a9eb3f
|
|
| BLAKE2b-256 |
2d699ed5141b1ed4e6be953a3940ff363b696c069dc75fa4d5cdd51b2f1b3609
|
File details
Details for the file pyjse-0.2.1-py3-none-any.whl.
File metadata
- Download URL: pyjse-0.2.1-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 |
a730bfce2f03d8ad69d616ca3c62e11676816d45435a04187ff5f709a3937452
|
|
| MD5 |
462a26affd85565aa3118bbda99ef359
|
|
| BLAKE2b-256 |
2af1189556d127f5b9de1b71728a7469107a38a13bfff761b9c7f4a2a6946d38
|