Skip to main content

⚡ PyAct CLI

The engine behind dynamic Markdown.

The PyAct CLI allows you to compile .pamd files into standard Markdown (.md). It evaluates your Python logic, injects your variables, and builds complex markdown elements effortlessly.

🚀 Installation

Install it directly from PyPI:

pip install pyact-cli

📖 How it works

A .pamd file is split into a Python cell and a Markdown cell.

1. Write your Python logic

Define a context() function that returns the variables you want to inject. You can even use the built-in pamd_helpers to do heavy lifting!

import pamd_helpers

def context():
    # Automatically converts the lambda to LaTeX!
    equation = pamd_helpers.equation(lambda x: x**2, [5])
    
    return {
        "title": "My PyAct Document",
        "math": equation
    }

2. Write your Markdown

Use <ctx> tags to inject your Python variables anywhere in your text.

# <ctx>title</ctx>

Here is my dynamically generated equation:
<ctx>math</ctx>

You can also include other pamd files as templates!
<tmp>path/to/another_file</tmp>

3. Compile!

Run the compiler from your terminal to generate your final Markdown document:

pyact path/to/your_file.pamd -o output.md

That's it! You now have a standard Markdown file ready to be shared, published, or converted to PDF.

Release files for pyact-cli 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyact-cli 0.3.0
File Size Uploaded
pyact_cli-0.3.0.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyact-cli 0.3.0
File Interpreter ABI Platform
pyact_cli-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.5 kB

Release files / pyact_cli-0.3.0.tar.gz

Download URL pyact_cli-0.3.0.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ca951069fcb515c95900f06168961201210d1df6f50b05d415d07e78d99d567a
BLAKE2b-256 checksum
How to use checksums
863f11d6579d41e930257bf2861f7060e46e98b50592838daf4e5f584aec46a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / pyact_cli-0.3.0-py3-none-any.whl

Download URL pyact_cli-0.3.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28e1b48368537e31309aba3d320f381d9be79bfa617a92877198174017aac2c5
BLAKE2b-256 checksum
How to use checksums
ea096187f75a205484f4ffd22518ae91aedfce5832b33b88810fc9f4eeabfbd8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page