Skip to main content

No project description provided

Project description

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())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pykal-0.1.1.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pykal-0.1.1-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file pykal-0.1.1.tar.gz.

File metadata

  • Download URL: pykal-0.1.1.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pykal-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9296eff41cb406e958786dcbf7452ea99da9b6798251b7cc466482e82ab5348d
MD5 bd97afd67d05048b3dc19545ed80dfff
BLAKE2b-256 6a5889be2c8269a2ef6a2a8c49ce0749a3df6c24bc7df1b7ae1bc590f5573425

See more details on using hashes here.

File details

Details for the file pykal-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pykal-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pykal-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ced028d6cc294768d6fcc13129ca556cfe6ab24a0f7768edf4517635a207bd80
MD5 f8017cf57afc7bfabe3b134283431781
BLAKE2b-256 17b75edd225447eb6907fd8f89c8d4c9516aa3f59e0f858f9e695ef709786ef4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page