PyKal
This repository contains source code for PyKal, which is the official bindings library to embed Kal into Python via libkal.
Installation:
$ pip3 install pykal
You must have libkal.so compiled and installed on your system for PyKal to function. Follow instructions for installation.
Usage Example:
from pykal import Kal
kal = Kal()
result = kal.exec(
"""
var data = $data.
len data -> size.
first data -> f.
last data -> l.
var m = data[(size / 2) as int].
<- [f, m, l].
""",
{
'data': [1, 2, 3, 4, 5]
{
)
print('Return Value:', result, '\n')
for r in result.to_list():
print(r, r.to_number())
Metadata
Release files for pykal 0.1.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 |
|---|---|---|---|---|
| pykal-0.1.1.tar.gz | 15.4 kB | Without provenance | Details for pykal-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pykal-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for pykal-0.1.1-py3-none-any.whl |
Total release size: 31.7 kB
Release files / pykal-0.1.1.tar.gz
| Download URL | pykal-0.1.1.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9296eff41cb406e958786dcbf7452ea99da9b6798251b7cc466482e82ab5348d
|
|
BLAKE2b-256 checksum How to use checksums |
6a5889be2c8269a2ef6a2a8c49ce0749a3df6c24bc7df1b7ae1bc590f5573425
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / pykal-0.1.1-py3-none-any.whl
| Download URL | pykal-0.1.1-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ced028d6cc294768d6fcc13129ca556cfe6ab24a0f7768edf4517635a207bd80
|
|
BLAKE2b-256 checksum How to use checksums |
17b75edd225447eb6907fd8f89c8d4c9516aa3f59e0f858f9e695ef709786ef4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for pykal 0.1.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.