lang


Namelang JSON
Version 0.1 PyPI version JSON
download
home_pageNone
Summaryimport lang.[python,lisp,...]
upload_time2024-06-03 09:40:03
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseNone
keywords ffi python lisp
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ---
author:
- Marco Heisig
title: 'A library for cross-language interoperability.'
---

The `lang` module/system/library can be loaded from multiple programming
languages to seamlessly integrate all the other supported ones.  The currently
supported languages are Python and Lisp.

Installation
============

Requires libsbcl in your library path if you want to load Lisp into
Python.

Requires libpython3.11 or later in your library path if you want to load
Python into Lisp.

Showcases
=========

``` {.commonlisp org-language="lisp"}
(in-package #:cl-user)
(sb-ext:add-package-local-nickname '#:python '#:lang.python)

(python:list #(1 2.0 #c(3 4) "5 6"))
 => [1, 2.0, #C(3 4) "5 6"]

(python:tuple (python:map #'class-of *))
 => (<class 'lang.common-lisp.fixnum'>,
     <class 'lang.common-lisp.single-float'>,
     <class 'lang.common-lisp.complex'>,
     <class 'lang.sb-kernel.simple-character-string'>)

(python:getitem (python:dir 42) (python:slice 5))
 => ['__class__', '__bool__', '__and__', '__add__', '__abs__']

(python:isinstance (python:getitem (python:dir 42) 0) (find-class 'python:str))
 => True

(typep (python:getitem (python:dir 42) 0) 'python:str)
 => t
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "lang",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": "FFI, Python, Lisp",
    "author": null,
    "author_email": "Marco Heisig <marco@heisig.xyz>",
    "download_url": "https://files.pythonhosted.org/packages/d4/6f/2ada450c78aed64b5d455befbdd5a899ffaa0d8d2594c87742e86925560e/lang-0.1.tar.gz",
    "platform": null,
    "description": "---\nauthor:\n- Marco Heisig\ntitle: 'A library for cross-language interoperability.'\n---\n\nThe `lang` module/system/library can be loaded from multiple programming\nlanguages to seamlessly integrate all the other supported ones.  The currently\nsupported languages are Python and Lisp.\n\nInstallation\n============\n\nRequires libsbcl in your library path if you want to load Lisp into\nPython.\n\nRequires libpython3.11 or later in your library path if you want to load\nPython into Lisp.\n\nShowcases\n=========\n\n``` {.commonlisp org-language=\"lisp\"}\n(in-package #:cl-user)\n(sb-ext:add-package-local-nickname '#:python '#:lang.python)\n\n(python:list #(1 2.0 #c(3 4) \"5 6\"))\n => [1, 2.0, #C(3 4) \"5 6\"]\n\n(python:tuple (python:map #'class-of *))\n => (<class 'lang.common-lisp.fixnum'>,\n     <class 'lang.common-lisp.single-float'>,\n     <class 'lang.common-lisp.complex'>,\n     <class 'lang.sb-kernel.simple-character-string'>)\n\n(python:getitem (python:dir 42) (python:slice 5))\n => ['__class__', '__bool__', '__and__', '__add__', '__abs__']\n\n(python:isinstance (python:getitem (python:dir 42) 0) (find-class 'python:str))\n => True\n\n(typep (python:getitem (python:dir 42) 0) 'python:str)\n => t\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "import lang.[python,lisp,...]",
    "version": "0.1",
    "project_urls": {
        "source": "https://github.com/marcoheisig/lang"
    },
    "split_keywords": [
        "ffi",
        " python",
        " lisp"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c384f4f98574eb3eccdbf2615e06a2e51959ee5b3993deba88ea1e07c6424ef1",
                "md5": "dba7f889fd39ef4924afaf6f37965799",
                "sha256": "24647c80a85f2a2e7303b5d5ffa3f1c4631fac21dd42a20d6bc9f4abfd92d3a0"
            },
            "downloads": -1,
            "filename": "lang-0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dba7f889fd39ef4924afaf6f37965799",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 3141,
            "upload_time": "2024-06-03T09:40:01",
            "upload_time_iso_8601": "2024-06-03T09:40:01.691555Z",
            "url": "https://files.pythonhosted.org/packages/c3/84/f4f98574eb3eccdbf2615e06a2e51959ee5b3993deba88ea1e07c6424ef1/lang-0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d46f2ada450c78aed64b5d455befbdd5a899ffaa0d8d2594c87742e86925560e",
                "md5": "04470c29018e97e6ebe5dd7c7831c54a",
                "sha256": "06daddd4d0dc9cd05b25f15662560d3183a7fe51506930f5babe073fbbf75f0d"
            },
            "downloads": -1,
            "filename": "lang-0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "04470c29018e97e6ebe5dd7c7831c54a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 2968,
            "upload_time": "2024-06-03T09:40:03",
            "upload_time_iso_8601": "2024-06-03T09:40:03.948289Z",
            "url": "https://files.pythonhosted.org/packages/d4/6f/2ada450c78aed64b5d455befbdd5a899ffaa0d8d2594c87742e86925560e/lang-0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-03 09:40:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "marcoheisig",
    "github_project": "lang",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "lang"
}
        
Elapsed time: 4.58571s