Skip to main content

Python bindings for Objective-LOL

Project description

Objective-LOL Python Bindings

Python bindings for the Objective-LOL programming language - a modern, strongly-typed language inspired by LOLCODE.

Installation

pip install objective-lol

Quick Start

import objective_lol as olol

# Create a VM instance
vm = olol.ObjectiveLOLVM()

# Execute Objective-LOL code
code = """
I CAN HAS STDIO?
HAI ME TEH FUNCSHUN MAIN
    I HAS A VARIABLE X TEH INTEGR ITZ 42
    SAYZ WIT X
KTHXBAI
"""

vm.execute(code)  # Prints: 42

Features

  • Execute Objective-LOL code: Run complete programs or code snippets
  • Python integration: Call Python functions from Objective-LOL and vice versa
  • Type conversion: Automatic conversion between Python and Objective-LOL types
  • Module system: Import and use custom modules
  • Class definitions: Define and use classes from Python

Advanced Usage

Defining Python Functions for Objective-LOL

vm = olol.ObjectiveLOLVM()

def add_numbers(a, b):
    return a + b

vm.define_function("add_numbers", add_numbers)

code = """
I CAN HAS STDIO?
HAI ME TEH FUNCSHUN MAIN
    I HAS A VARIABLE RESULT TEH INTEGR ITZ add_numbers WIT 10 AN WIT 20
    SAYZ WIT RESULT
KTHXBAI
"""

vm.execute(code)  # Prints: 30

Working with Classes

vm = olol.ObjectiveLOLVM()

class Calculator:
    def add(self, x, y):
        return x + y

    def multiply(self, x, y):
        return x * y

vm.define_class(Calculator)

code = """
I CAN HAS STDIO?
HAI ME TEH FUNCSHUN MAIN
    I HAS A VARIABLE CALC TEH Calculator ITZ NEW Calculator
    I HAS A VARIABLE SUM TEH INTEGR ITZ CALC DO add WIT 5 AN WIT 3
    SAYZ WIT SUM
KTHXBAI
"""

vm.execute(code)  # Prints: 8

Type Mapping

Objective-LOL Type Python Type
INTEGR int
DUBBLE float
STRIN str
BOOL bool
NOTHIN None
BUKKIT (array) list
BASKIT (map) dict

Links

License

MIT License

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

objective_lol-0.0.1-cp313-cp313-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.13Windows x86-64

objective_lol-0.0.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

objective_lol-0.0.1-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

objective_lol-0.0.1-cp313-cp313-macosx_11_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

objective_lol-0.0.1-cp313-cp313-macosx_10_13_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

objective_lol-0.0.1-cp312-cp312-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.12Windows x86-64

objective_lol-0.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

objective_lol-0.0.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

objective_lol-0.0.1-cp312-cp312-macosx_11_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

objective_lol-0.0.1-cp312-cp312-macosx_10_9_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

objective_lol-0.0.1-cp311-cp311-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.11Windows x86-64

objective_lol-0.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

objective_lol-0.0.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

objective_lol-0.0.1-cp311-cp311-macosx_11_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

objective_lol-0.0.1-cp311-cp311-macosx_10_9_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

objective_lol-0.0.1-cp310-cp310-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.10Windows x86-64

objective_lol-0.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

objective_lol-0.0.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

objective_lol-0.0.1-cp310-cp310-macosx_11_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

objective_lol-0.0.1-cp310-cp310-macosx_10_9_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

objective_lol-0.0.1-cp39-cp39-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.9Windows x86-64

objective_lol-0.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.7 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

objective_lol-0.0.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

objective_lol-0.0.1-cp39-cp39-macosx_11_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

objective_lol-0.0.1-cp39-cp39-macosx_10_9_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

File details

Details for the file objective_lol-0.0.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7109dc4ce729294332a57015fca66cb5e7359d86e9e2c2edba6e5cbb6cad785e
MD5 5f10f26d4b71cb6ced5b5abd886499ac
BLAKE2b-256 37d1fcdec982edf7f3402bbc8268a18fd59082b1c8dec7675d9f0bac14e9e492

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8cf86e3a1a4c6f7da7dda1237dba60ec919b0303f1fbd52faab0cdfb5ec30e73
MD5 3ff9f2307dab2cacddc1dceae0c76b04
BLAKE2b-256 d706f60c1b0845c55cc066b269bd18f42a9999c3d89d411c5bd83ca98e2dfcce

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ed72cfcb7a9635d719aa06e10f34f73ee59f0f6a8e63583efa8703bd7d18af60
MD5 aab35335e5951460486c2c5913864aa4
BLAKE2b-256 af91fdcb98f03baa7f58acb3519ede20e7001c80ee4bb1102832ae6cb97a348c

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 72073371025d8f7fa10b3fb7aa6ef9cf2e232807904a5ea847c542dd91cbdbf6
MD5 6c2cd0a1a2da7c3f6174389501b36f4d
BLAKE2b-256 71dd9a4f343d34056fe375bb273933476d17c436c36792912f51091633db3c91

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 026825e3100a8857c6639d0cf71975b8a782a83a2d4c9f0dc30bd09b40f97fcb
MD5 810a8fdfd419c353a9052cf39218e7b1
BLAKE2b-256 7881169f200f9ac511d09ff75917387cc05b10fc9dc2795775b21ff3c858685c

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 44faf8b4378c4dcf017700bd36e4bec29ebc7c28ea5c1497643489f320212e3b
MD5 3f0f4b118fa123b41ef01da62592c7a8
BLAKE2b-256 1ad0a2c161c4ad77229fce355d26bc2d48b6af3e6d43b237125f566e72e8707b

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 84cd719cd70b2acddc3c85b07641b909f26dd6ecff2786f401e8b2e309abc9b0
MD5 6c7ba7e757c6db783fb255aa3f55b7df
BLAKE2b-256 e8479a448692b2cdb3a14b1a974f3db4885c628cb6a6cc3444eafa0abf718e6d

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6e6d33005477dc862a036fd5e001a3683e78fbd26d4e28c5041ff0c80c6a3a8f
MD5 c4d6361822e17968020918a998589305
BLAKE2b-256 113eae34dd94395bbbfe9e5c018a239d6d60b72d762323cefac947f5e85e5108

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7724bbd72394a86860a97d49e00414ae2d0a06712e58f2ad7275acf5b53f950b
MD5 71c08abaa4ed49be6c247573c45bdf17
BLAKE2b-256 11b8d7b75f0fd2b197e5902a5a2a6aaaaad0e9814c39a111d1937c0d591058a7

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2a42fa83b5efaaf39fa7852b5eb354660684ab942bf620793808dd746fcfd2f6
MD5 5520ee626271f5477eaecfc144b92d04
BLAKE2b-256 869c3e1eab53f720a4940c3647bfefa5fc8dd35972ce237510948e7a5ef8fb02

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dbdd2d4b52284cf9c478b5fc37008ce2ae1c4747f5b8a36a05cae4a20570b65e
MD5 f97825e80a79adf25a8efcae890b2fc9
BLAKE2b-256 8607bcca6b9170bacb4c967820ab4efce0649ecb77bca580b649c353ab764c96

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8aba5f5700f6f9a03d765bf5e9cd7567feb6c52d5bb6743c0980befe9ace0dd6
MD5 d6f84c1401c3c845eeeff0ba39098263
BLAKE2b-256 c48a14457ab69d88194c005cd9558fb0eecc6a38a9489393079d97453fc86c8e

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eef3d8b2db407d0ee15c225a5fe9ca2b8b1837d12f346e1db39fa149b4b51d48
MD5 279dd5962b8abc4f6d916d94f1a1d67f
BLAKE2b-256 d8d97a2d948d97bc57653311c8109d80ec4ae83340a4edeac53f215afb9dc9af

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2295925c1a0aacf27a90aa99c9cc77b52a65fd31d357fdc13dc31ee8f4f8a611
MD5 c436b37f7fc91c4d09f6146489954ae0
BLAKE2b-256 9d1866e4c53d43e04c2988319a45a35b7e082f2f6ac43c239e93445fbdcdc65a

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7615d3d6ad3021f0aa4b270624a63bf67193c3ff377f7dd7ed4127762b01a526
MD5 1882381840711b262e57a6c159a473ea
BLAKE2b-256 79fbb50123b523ec278a090e694a5f608dc1eb16cb765c2917c35941d235a37e

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9bc27d2cf7e18e04eea67c0e17f3d2685fb4029e0b446570a8c22c6b45f7f904
MD5 caeb31e3baeabc3e369382adf1e4f45d
BLAKE2b-256 cc045ff29a54a3b316b63d806e1c8677ff8bb56706cb61a0ac18a6c84c4906e0

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5781a2c15f40c6c66274bfe9155b648a623d98878841d1801a8fa6d3f8a5044e
MD5 839b8fdb3ce6bfb654dc11df9dd2f461
BLAKE2b-256 6b93cd9ad78f1fe77566f09071ba3927ac8418a6d6b58fa8f8ad96ed991a2559

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c69529ae3baf091c082b8550c8e405d8ae50c259b9421197f5a3cbad9e445673
MD5 94d22ea5f15ae97bb160bc72bf1877bc
BLAKE2b-256 f9ccf0c17e768e0edcc4eed0c0289b56a173eea89f6718c776adfe010ce622c0

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ce4a8a7bdbef66ebfccd346a7fb5eef11e5ebcffd82c37da0d95a3c66c9f315
MD5 ebcea98fdad2b135635238368f8d8454
BLAKE2b-256 56802e245b8d4365065df17fe4b4c1e388aebdc40588494481f19afab21def51

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f9a68d4b3abac697b81474fbcba2027a42cb58832269abb63ffe06e7ee544379
MD5 ab293c149a7fce5dd1ef0cb2816d9684
BLAKE2b-256 9f7e0a3b0bce3489102d790c4f164a550d3141d55d1fd600169b3a56dd0db63f

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ba236b962a0f959762e6652199e48d3813d5617be8c7cd30114678a05be7e167
MD5 41c80596859b884858309238ecb5d1e6
BLAKE2b-256 931f8dff001c9fdebdc7f094171cb6a00f0d62b31542c4233d160bebea03c6ba

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 22d2261e8478c6d2b32f53a84da2fcecd99276d2dcc59bf6070fef1e0dd57736
MD5 396bf54cb8b145562691363886df2aaa
BLAKE2b-256 6e18cca0c5b51e94537daee00adb80555c8daae43fd31bddcb31237648d15e80

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6c0a3bc3ade6b0007d9fe66accd9a19e9f0e99a2fa28028558edba8b2e9ac59c
MD5 357aa7a15bcce5b52bf9de25c46fb3c0
BLAKE2b-256 d3336ec57285683a64dca189a0c9ee825183eb72c86156f23d9ac3f22027fc30

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba2f6ddd937dc1661ca67ec7f518fa9d9ee41ee89402c961dd30d969e47ad7fe
MD5 a00d6ccc8e2186eb73338ac4fc537632
BLAKE2b-256 41b1ef8b11421c8b3b40fd8e1b93d5cabae23e7e4bc287e8098a7ace1867ccc8

See more details on using hashes here.

File details

Details for the file objective_lol-0.0.1-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for objective_lol-0.0.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 bcfd0ab1608648c1fe1a3ed961336da0a7ee3877023d0d73edfa3a37d5f4054d
MD5 3a336ae3fb09274012e295de6da6e2c9
BLAKE2b-256 398a29bb064eca1e5ec3812d47582bf7c77b4cadb4da1d346a3b86905e7f61fe

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