🐍 Pyla
Python interpreter for executable documents
This is the Python implementation of an interpreter capable of interpreting executable documents defined in JSON using Stencila Schema.
Install
Pyla is available as a Python package,
pip3 install stencila-pyla
Use
Register Pyla so that it can be discovered by other executors on your machine,
python3 -m stencila.pyla register
Then, if you have executa installed then you can run it using the repl command and specifying python as the starting language,
executa repl python
Develop
setup
To install the packages needed for development, run make setup or,
pip3 install --user --upgrade -r requirements-dev.txt
Code formatting
We use Black to maintain a consistent code formatting style. To run it use black . or make format.
Running
There are two options to run the interpreter without installing this package (which can be useful when developing).
Use setup.py develop
Run python3 setup.py develop which will link this library into your site packages directory. You can then execute
documents with the above command.
Change into stencila folder
You can run the interpreter as a module by changing into the stencila directory first, and then omitting the
stencila namespace:
$ cd stencila
$ python3 -m pyla execute <inputfile> <outputfile> [parameters]
Metadata
Release files for stencila-pyla 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stencila-pyla-0.3.1.tar.gz | 19.6 kB | Without provenance | Details for stencila-pyla-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stencila_pyla-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for stencila_pyla-0.3.1-py3-none-any.whl |
Total release size: 40.2 kB
Release files / stencila-pyla-0.3.1.tar.gz
| Download URL | stencila-pyla-0.3.1.tar.gz |
|---|---|
| Size | 19.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0005f668b5ca0d1ebf9e34c37725101835f43292be34c363c4cea1931eed0cfc
|
|
BLAKE2b-256 checksum How to use checksums |
f1251e7059da2a2fc257af7daec36df67a9ac2f7329d1b5d9afcbef7f13b6255
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
|
Release files / stencila_pyla-0.3.1-py3-none-any.whl
| Download URL | stencila_pyla-0.3.1-py3-none-any.whl |
|---|---|
| Size | 20.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c0f8bba3c83e1a8e0a83edc7563da6f90d3b7193b7678a1e363341c64267355
|
|
BLAKE2b-256 checksum How to use checksums |
e74e9233e1e8ff12d8671c23048f9ebf19488229d42322554191dc08e9f19f3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
|
Security for stencila-pyla 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.