Pre-release
This release is a pre-release and may not be stable for production use.
Construct javascript AST structures using python objects.
Requirements
Python 2.7
Setup
$ python -m pip install --user jast or (venv)$ python -m pip install jast
Usage
$ python
>>> import jast
>>> jast.Object({"a": 1, "b": 2}).ast()
'{
"type": "ObjectExpression",
"properties": [
{
"type": "ObjectProperty",
"method": false,
"key": {
"type": "Identifier",
"name": "a",
"definition": null
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",
"value": 1,
"extra": {
"rawValue": 1,
"raw": "1"
}
}
},
{
"type": "ObjectProperty",
"method": false,
"key": {
"type": "Identifier",
"name": "b",
"definition": null
},
"computed": false,
"shorthand": false,
"value": {
"type": "StringLiteral",
"value": "2",
"extra": {
"rawValue": "2",
"raw": "\"2\""
}
}
}
]
}'
ChangeLog
1.0.0-beta (2019-02-07)
Initial release.
Release files for jast 1.0.0b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jast-1.0.0b1.tar.gz | 11.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jast-1.0.0b1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 20.0 kB
Release files / jast-1.0.0b1.tar.gz
| Download URL | jast-1.0.0b1.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ebc2bc9a7c3870027f510d2b5e100a6c93e87ee04adec12c7ffbf612e5d07323
|
|
BLAKE2b-256 checksum How to use checksums |
d9c5801cb588a0077d6970a5f128198467108ece452fed83162744cc15bc1bdc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15
|
Release files / jast-1.0.0b1-py2.py3-none-any.whl
| Download URL | jast-1.0.0b1-py2.py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1b575142a156bc5d51cbdec2798d6d0f692454ebb7083de0d2a2d4d9a927d0c7
|
|
BLAKE2b-256 checksum How to use checksums |
551e079e67c9c7e5f9dae968d3c78d43fb1485020df241c1b867d83d0292673e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15
|