Skip to main content

A simple package to parse Emacs Lisp expressions from Python.

https://secure.travis-ci.org/jorgenschaefer/python-elisp.png?branch=master https://coveralls.io/repos/jorgenschaefer/python-elisp/badge.png?branch=master

Simple Usage

>>> import elisp
>>> numbers = elisp.loads("(1 2 3)")
>>> numbers.car
1
>>> numbers.cdr.cdr.car
3
>>> numbers.cdr.cdr.cdr is elisp.NIL
True

Type Mappings

The following types are supported and are mapped to the respective Python types.

  • integer to int

  • float to float

  • symbol to elisp.ELispSymbol, a subclass of str

  • list, cons to elisp.ELispCons

  • unibyte string to bytearray

  • multibyte string to unicode (without the \C-a syntax)

  • vector to list

Unsupported Types

The following types are not supported:

  • Characters (like ?a or ?\C-f)

  • Char-Table

  • Bool-Vector

  • Hash Table

  • Byte-Code

Grammar

See the file [elisp.ebnf](elisp/elisp.ebnf) for the grammar used by this package.

Metadata

Release files for elisp 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for elisp 0.5
File Size Uploaded
elisp-0.5.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for elisp 0.5
File Interpreter ABI Platform
elisp-0.5-py2-none-any.whl Python 2 none any Details

Total release size: 13.8 kB

Release files / elisp-0.5.tar.gz

Download URL elisp-0.5.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cc75dfbf980e53e230caddc60c52491fedd6e064ac85007d54c3d9d1ce1b5b95
BLAKE2b-256 checksum
How to use checksums
d7c213ba98ca144612bd145c3fc365d5f983123b89f6fddece6e629e7081693e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / elisp-0.5-py2-none-any.whl

Download URL elisp-0.5-py2-none-any.whl
Size 6.7 kB
Tags Python 2
SHA-256 checksum
How to use checksums
3e2cbd38260dbbc4622786e1f743d06c04a03a9e6e45287a7928d1c56139f317
BLAKE2b-256 checksum
How to use checksums
ac03a1e503483b97a20767805887528e6e1ed5212e080103860d294667013081
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.5 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page