RPP
Description
RPP is a format used to describe REAPER projects. This package is designed to be RPP parser/emitter and uses PLY as parser framework.
Examples
Import the package:
>>> import rpp
Decode RPP:
>>> r = rpp.loads("""\
<REAPER_PROJECT 0.1 "4.32" 1372525904
RIPPLE 0
GROUPOVERRIDE 0 0 0
AUTOXFADE 1
>
""")
>>> r
Element(tag='REAPER_PROJECT', attrib=['0.1', '4.32', '1372525904'], children=[
['RIPPLE', '0'],
['GROUPOVERRIDE', '0', '0', '0'],
['AUTOXFADE', '1'],
])
Transform elements into RPP:
>>> from rpp import Element
>>> rpp.dumps(
... Element(tag='REAPER_PROJECT', attrib=['0.1', '4.32', '1372525904'], children=[
... ['RIPPLE', '0'],
... ['GROUPOVERRIDE', '0', '0', '0'],
... ['AUTOXFADE', '1'],
... ]))
'<REAPER_PROJECT 0.1 4.32 1372525904\n RIPPLE 0\n GROUPOVERRIDE 0 0 0\n AUTOXFADE 1\n>\n'
Element mimics the interface of xml.etree.ElementTree.Element. You can perform quering operations with findall, find, iterfind. Note that attribute and text predicates are not supported.
>>> groupoverride = r.find('.//GROUPOVERRIDE')
>>> groupoverride
['GROUPOVERRIDE', '0', '0', '0']
>>> groupoverride[1:] = ['9', '9', '9']
>>> r
Element(tag='REAPER_PROJECT', attrib=['0.1', '4.32', '1372525904'], children=[
['RIPPLE', '0'],
['GROUPOVERRIDE', '9', '9', '9'],
['AUTOXFADE', '1'],
])
Dependencies
Metadata
Release files for rpp 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| rpp-0.4.tar.gz | 5.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rpp-0.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 12.5 kB
Release files / rpp-0.4.tar.gz
| Download URL | rpp-0.4.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
825975eeebeaf9eb35965cd4094cf43673dec2d85606c1dc75970fe8ca4c9ce3
|
|
BLAKE2b-256 checksum How to use checksums |
ccac8e37e630ea396273c5ee728fb2a96373bab89ff7048bc7213058016a6eb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / rpp-0.4-py2.py3-none-any.whl
| Download URL | rpp-0.4-py2.py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
09ca086d497acde4016b318ed571b1bef647a6515cb3432e47ec3f35e3344636
|
|
BLAKE2b-256 checksum How to use checksums |
31b86d0ce0ef40e58cbc83d22d55bde496d25c228cb15fd03159c3ec2efd5ce6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for rpp 0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.