Skip to main content

Rimu is a readable-text to HTML markup language inspired by AsciiDoc and Markdown.

Project description

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:

  1. Install the source repo from Github:

     git clone https://github.com/srackham/rimu-py.git
    
  2. Create the rimu-py Conda environment (this includes Python and all the necessary Python packages):

     cd rimu-py/
     conda env create --file environment.yaml
    
  3. 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rimu-11.4.2.tar.gz (33.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rimu-11.4.2-py3-none-any.whl (38.8 kB view details)

Uploaded Python 3

File details

Details for the file rimu-11.4.2.tar.gz.

File metadata

  • Download URL: rimu-11.4.2.tar.gz
  • Upload date:
  • Size: 33.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for rimu-11.4.2.tar.gz
Algorithm Hash digest
SHA256 2d1702f1a61a2554ec17f7cdfa6ef986279b01bfc6fd7fa6c539173755e40eb3
MD5 61de4285ab394b653c8113ae61f038da
BLAKE2b-256 df99b303b09eca88357b86896c4f888a7747f4890de853619421a02072d39b95

See more details on using hashes here.

File details

Details for the file rimu-11.4.2-py3-none-any.whl.

File metadata

  • Download URL: rimu-11.4.2-py3-none-any.whl
  • Upload date:
  • Size: 38.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for rimu-11.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 585002f6d7b43308be3a6263d70cda2162255ce26efcf5907c5a3627ae3d26cc
MD5 7be3e055245637f30f3f4c1000d0996b
BLAKE2b-256 430349ca424de1d285e45a3b35d453efe4b222036b957562de760c6b90bff47a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page