sos-lua
SoS Notebook extension for the Lua programming language.
Installation
pip install sos-lua
You will also need a Lua Jupyter kernel installed. This module supports:
- ILua (
pip install ilua) - kernel namelua - xeus-lua (
conda install -c conda-forge xeus-lua) - kernel namexlua
Data Exchange
This module supports exchanging the following data types between SoS (Python) and Lua:
| Python | Lua |
|---|---|
None |
nil |
bool |
boolean |
int, float |
number |
str |
string |
list, tuple |
sequential table {1, 2, 3} |
dict |
keyed table {a=1, b=2} |
set |
sequential table |
numpy.ndarray |
nested table |
pandas.DataFrame |
table of column tables |
Nested structures (tables within tables) are supported in both directions.
Usage
In a SoS notebook, use Lua cells and exchange variables with %get and %put:
# In a SoS cell
data = [1, 2, 3]
# In a Lua cell
%get data
print(data[1]) -- prints 1
# Transfer back
result = {sum = 6, count = 3}
%put result
Metadata
Release files for sos-lua 0.1.0
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 |
|---|---|---|---|---|
| sos_lua-0.1.0.tar.gz | 5.7 kB | Without provenance | Details for sos_lua-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sos_lua-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sos_lua-0.1.0-py3-none-any.whl |
Total release size: 10.8 kB
Release files / sos_lua-0.1.0.tar.gz
| Download URL | sos_lua-0.1.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5827b01b61c2682aa62c25b65449bf56c77f1ad35b2567694b3792c16127b456
|
|
BLAKE2b-256 checksum How to use checksums |
3a12172983a7ad405ea8aa95a16c851c9097ff11603a627c392d2dbb95e0e3e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / sos_lua-0.1.0-py3-none-any.whl
| Download URL | sos_lua-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
568f1558030eebead86faa731138c85b44e022e9daac5379b9d86ce1423f2a99
|
|
BLAKE2b-256 checksum How to use checksums |
8ea3a8d9f7eb2c2e20c31dec5999eb3df2856d575092045812b0c12a68be923e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for sos-lua 0.1.0
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.