A port of the Rimu Markup language written in the Python language.
Features
Functionally identical to the TypeScript implementation version 11.4.0.
Usage
Install from PyPI using the Python pip command:
pip install rimu
Example usage:
import rimu
print(rimu.render('*Hello World*!'))
See also Rimu API documentation.
CLI command
The Rimu CLI
command installed
by Pip is named rimupy. CLI command example:
echo 'Hello *Rimu*!' | rimupy
This will output:
<p>Hello <em>Rimu</em>!</p>
Building
Development is carried out in a Conda virtual environment so you need to have either Anaconda or Miniconda installed.
Build instructions:
-
Install the source repo from Github:
git clone https://github.com/srackham/rimu-py.git -
Create the
rimu-pyConda environment (this includes Python and all the necessary Python packages):cd rimu-py/ conda env create --file environment.yaml -
Run tests and build rimu-py:
conda activate rimu-py make build
Learn more
Read the documentation and experiment with Rimu in the Rimu Playground.
Implementation
-
The largely one-to-one correspondence between the canonical TypeScript code and the Python code eased porting and debugging. This will also make it easier to cross-port new features and bug-fixes.
-
All Rimu implementations share the same JSON driven test suites comprising over 300 compatibility checks.
Metadata
Release files for rimu 11.4.2
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 | Actions |
|---|---|---|---|---|
| rimu-11.4.2.tar.gz | 33.4 kB | Without provenance | Details for rimu-11.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rimu-11.4.2-py3-none-any.whl | Python 3 | none | any | Details for rimu-11.4.2-py3-none-any.whl |
Total release size: 72.2 kB
Release files / rimu-11.4.2.tar.gz
| Download URL | rimu-11.4.2.tar.gz |
|---|---|
| Size | 33.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d1702f1a61a2554ec17f7cdfa6ef986279b01bfc6fd7fa6c539173755e40eb3
|
|
BLAKE2b-256 checksum How to use checksums |
df99b303b09eca88357b86896c4f888a7747f4890de853619421a02072d39b95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / rimu-11.4.2-py3-none-any.whl
| Download URL | rimu-11.4.2-py3-none-any.whl |
|---|---|
| Size | 38.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
585002f6d7b43308be3a6263d70cda2162255ce26efcf5907c5a3627ae3d26cc
|
|
BLAKE2b-256 checksum How to use checksums |
430349ca424de1d285e45a3b35d453efe4b222036b957562de760c6b90bff47a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for rimu 11.4.2
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.