Metadata-Version: 2.4
Name: pyjse
Version: 0.2.0
Summary: JSE (JSON Structural Expression) interpreter for Python
Project-URL: Homepage, https://github.com/MarchLiu/jse
Project-URL: Repository, https://github.com/MarchLiu/jse
Project-URL: Documentation, https://github.com/MarchLiu/jse#readme
Author-email: marsliu <mars.liu@outlook.com>
License: MIT
Keywords: interpreter,jse,json,s-expression
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Interpreters
Requires-Python: >=3.10
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == 'dev'
Description-Content-Type: text/markdown

# PyJSE

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

## 安装

```bash
pip install pyjse
```

开发模式：

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

## 使用

```python
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 字符串
```

## 开发

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

## 发布到 PyPI

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