A simple package to parse Emacs Lisp expressions from Python.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| elisp-0.5.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 |