OrJi
OrJi is a command line tool to generate text files using jinja2 and orgmode files. It can be used to generate LaTeX, Markdown or HTML or any other kind of text from an orgmode file.
It is somewhat inspired by j2cli.
Quickstart
Simple org mode file used with simple template.
simple.org
* A normal note
Just a note
* TODO Wash car :morning:
Car wash.
* TODO File taxes :evening:
File taxes for wife too.
* DONE Watch TV
simple.jinja2
{% for note in root %}
{%- if note.state == "TODO" -%}
# {{ note.name }} ({% for tag in note.tags %}{{ tag }}{% endfor %})
{{ note.body }}
{% endif %}
{% endfor %}
Running:
orji out simple.org simple.jinja2
Will output:
# Wash car (morning)
Car wash.
# File taxes (evening)
File taxes for wife too.
Why?
The practical itch I was scratching was editing and writing small blocks of content in orgzly on my phone and being able to kick off a small script that either turned it into a nice letter PDF or CV pdf or updated the markdown on my website.
It also lets me maintain separation of concerns on personal documents by keeping content in org files and style in jinja2 templates.
Install
OrJi can be installed with pip:
pip install orji
As a command line app, it is typically best installed via pipx.
pipx install orji
Using OrJi
Metadata
Release files for orji 4.9.0
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 |
|---|---|---|---|---|
| orji-4.9.0.tar.gz | 32.5 kB | Without provenance | Details for orji-4.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| orji-4.9.0-py3-none-any.whl | Python 3 | none | any | Details for orji-4.9.0-py3-none-any.whl |
Total release size: 48.8 kB
Release files / orji-4.9.0.tar.gz
| Download URL | orji-4.9.0.tar.gz |
|---|---|
| Size | 32.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a100ab2ac92825bb2d1ffb40ef78a88b5179cfcfcf085ee6da47922aea06706f
|
|
BLAKE2b-256 checksum How to use checksums |
7f8292110844152ac275515485c3e683330f877c64c646bbf16b70054eeec169
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.15.0a6
|
Release files / orji-4.9.0-py3-none-any.whl
| Download URL | orji-4.9.0-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc42486f00708e4e67589ac05aeac63a4f909222b739864f5bdcd7dec9e52a0f
|
|
BLAKE2b-256 checksum How to use checksums |
44940c0bda80865837b829384801945dfa0ab59543087b52f93f982075d23972
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.15.0a6
|
Security for orji 4.9.0
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.