pyact-cli 0.1.0__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyact_cli-0.3.0/PKG-INFO +74 -0
- pyact_cli-0.3.0/README.md +54 -0
- pyact_cli-0.1.0/pyact/helpers.py → pyact_cli-0.3.0/pamd_helpers/__init__.py +1 -1
- pyact_cli-0.3.0/pyact/__init__.py +1 -0
- pyact_cli-0.3.0/pyact_cli.egg-info/PKG-INFO +74 -0
- {pyact_cli-0.1.0 → pyact_cli-0.3.0}/pyact_cli.egg-info/SOURCES.txt +1 -1
- pyact_cli-0.3.0/pyact_cli.egg-info/top_level.txt +2 -0
- {pyact_cli-0.1.0 → pyact_cli-0.3.0}/setup.py +4 -4
- pyact_cli-0.1.0/PKG-INFO +0 -44
- pyact_cli-0.1.0/README.md +0 -23
- pyact_cli-0.1.0/pyact/__init__.py +0 -1
- pyact_cli-0.1.0/pyact_cli.egg-info/PKG-INFO +0 -44
- pyact_cli-0.1.0/pyact_cli.egg-info/top_level.txt +0 -1
- {pyact_cli-0.1.0 → pyact_cli-0.3.0}/pyact/cli.py +0 -0
- {pyact_cli-0.1.0 → pyact_cli-0.3.0}/pyact/core.py +0 -0
- {pyact_cli-0.1.0 → pyact_cli-0.3.0}/pyact/py2tex.py +0 -0
- {pyact_cli-0.1.0 → pyact_cli-0.3.0}/pyact_cli.egg-info/dependency_links.txt +0 -0
- {pyact_cli-0.1.0 → pyact_cli-0.3.0}/pyact_cli.egg-info/entry_points.txt +0 -0
- {pyact_cli-0.1.0 → pyact_cli-0.3.0}/setup.cfg +0 -0
pyact_cli-0.3.0/PKG-INFO
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyact-cli
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: A CLI tool to compile .pamd files to Markdown.
|
|
5
|
+
Home-page: https://github.com/Abstergo2003/PyAct
|
|
6
|
+
Author: Abstergo2003
|
|
7
|
+
Author-email:
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.8
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
Dynamic: author
|
|
14
|
+
Dynamic: classifier
|
|
15
|
+
Dynamic: description
|
|
16
|
+
Dynamic: description-content-type
|
|
17
|
+
Dynamic: home-page
|
|
18
|
+
Dynamic: requires-python
|
|
19
|
+
Dynamic: summary
|
|
20
|
+
|
|
21
|
+
<div align="center">
|
|
22
|
+
<h1>⚡ PyAct CLI</h1>
|
|
23
|
+
<p><b>The engine behind dynamic Markdown.</b></p>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
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.
|
|
27
|
+
|
|
28
|
+
## 🚀 Installation
|
|
29
|
+
|
|
30
|
+
Install it directly from PyPI:
|
|
31
|
+
```bash
|
|
32
|
+
pip install pyact-cli
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## 📖 How it works
|
|
36
|
+
|
|
37
|
+
A `.pamd` file is split into a **Python cell** and a **Markdown cell**.
|
|
38
|
+
|
|
39
|
+
### 1. Write your Python logic
|
|
40
|
+
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!
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
import pamd_helpers
|
|
44
|
+
|
|
45
|
+
def context():
|
|
46
|
+
# Automatically converts the lambda to LaTeX!
|
|
47
|
+
equation = pamd_helpers.equation(lambda x: x**2, [5])
|
|
48
|
+
|
|
49
|
+
return {
|
|
50
|
+
"title": "My PyAct Document",
|
|
51
|
+
"math": equation
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### 2. Write your Markdown
|
|
56
|
+
Use `<ctx>` tags to inject your Python variables anywhere in your text.
|
|
57
|
+
|
|
58
|
+
```markdown
|
|
59
|
+
# <ctx>title</ctx>
|
|
60
|
+
|
|
61
|
+
Here is my dynamically generated equation:
|
|
62
|
+
<ctx>math</ctx>
|
|
63
|
+
|
|
64
|
+
You can also include other pamd files as templates!
|
|
65
|
+
<tmp>path/to/another_file</tmp>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### 3. Compile!
|
|
69
|
+
Run the compiler from your terminal to generate your final Markdown document:
|
|
70
|
+
```bash
|
|
71
|
+
pyact path/to/your_file.pamd -o output.md
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
That's it! You now have a standard Markdown file ready to be shared, published, or converted to PDF.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<h1>⚡ PyAct CLI</h1>
|
|
3
|
+
<p><b>The engine behind dynamic Markdown.</b></p>
|
|
4
|
+
</div>
|
|
5
|
+
|
|
6
|
+
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.
|
|
7
|
+
|
|
8
|
+
## 🚀 Installation
|
|
9
|
+
|
|
10
|
+
Install it directly from PyPI:
|
|
11
|
+
```bash
|
|
12
|
+
pip install pyact-cli
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## 📖 How it works
|
|
16
|
+
|
|
17
|
+
A `.pamd` file is split into a **Python cell** and a **Markdown cell**.
|
|
18
|
+
|
|
19
|
+
### 1. Write your Python logic
|
|
20
|
+
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!
|
|
21
|
+
|
|
22
|
+
```python
|
|
23
|
+
import pamd_helpers
|
|
24
|
+
|
|
25
|
+
def context():
|
|
26
|
+
# Automatically converts the lambda to LaTeX!
|
|
27
|
+
equation = pamd_helpers.equation(lambda x: x**2, [5])
|
|
28
|
+
|
|
29
|
+
return {
|
|
30
|
+
"title": "My PyAct Document",
|
|
31
|
+
"math": equation
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### 2. Write your Markdown
|
|
36
|
+
Use `<ctx>` tags to inject your Python variables anywhere in your text.
|
|
37
|
+
|
|
38
|
+
```markdown
|
|
39
|
+
# <ctx>title</ctx>
|
|
40
|
+
|
|
41
|
+
Here is my dynamically generated equation:
|
|
42
|
+
<ctx>math</ctx>
|
|
43
|
+
|
|
44
|
+
You can also include other pamd files as templates!
|
|
45
|
+
<tmp>path/to/another_file</tmp>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### 3. Compile!
|
|
49
|
+
Run the compiler from your terminal to generate your final Markdown document:
|
|
50
|
+
```bash
|
|
51
|
+
pyact path/to/your_file.pamd -o output.md
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
That's it! You now have a standard Markdown file ready to be shared, published, or converted to PDF.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.3.0"
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyact-cli
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: A CLI tool to compile .pamd files to Markdown.
|
|
5
|
+
Home-page: https://github.com/Abstergo2003/PyAct
|
|
6
|
+
Author: Abstergo2003
|
|
7
|
+
Author-email:
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.8
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
Dynamic: author
|
|
14
|
+
Dynamic: classifier
|
|
15
|
+
Dynamic: description
|
|
16
|
+
Dynamic: description-content-type
|
|
17
|
+
Dynamic: home-page
|
|
18
|
+
Dynamic: requires-python
|
|
19
|
+
Dynamic: summary
|
|
20
|
+
|
|
21
|
+
<div align="center">
|
|
22
|
+
<h1>⚡ PyAct CLI</h1>
|
|
23
|
+
<p><b>The engine behind dynamic Markdown.</b></p>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
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.
|
|
27
|
+
|
|
28
|
+
## 🚀 Installation
|
|
29
|
+
|
|
30
|
+
Install it directly from PyPI:
|
|
31
|
+
```bash
|
|
32
|
+
pip install pyact-cli
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## 📖 How it works
|
|
36
|
+
|
|
37
|
+
A `.pamd` file is split into a **Python cell** and a **Markdown cell**.
|
|
38
|
+
|
|
39
|
+
### 1. Write your Python logic
|
|
40
|
+
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!
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
import pamd_helpers
|
|
44
|
+
|
|
45
|
+
def context():
|
|
46
|
+
# Automatically converts the lambda to LaTeX!
|
|
47
|
+
equation = pamd_helpers.equation(lambda x: x**2, [5])
|
|
48
|
+
|
|
49
|
+
return {
|
|
50
|
+
"title": "My PyAct Document",
|
|
51
|
+
"math": equation
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### 2. Write your Markdown
|
|
56
|
+
Use `<ctx>` tags to inject your Python variables anywhere in your text.
|
|
57
|
+
|
|
58
|
+
```markdown
|
|
59
|
+
# <ctx>title</ctx>
|
|
60
|
+
|
|
61
|
+
Here is my dynamically generated equation:
|
|
62
|
+
<ctx>math</ctx>
|
|
63
|
+
|
|
64
|
+
You can also include other pamd files as templates!
|
|
65
|
+
<tmp>path/to/another_file</tmp>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### 3. Compile!
|
|
69
|
+
Run the compiler from your terminal to generate your final Markdown document:
|
|
70
|
+
```bash
|
|
71
|
+
pyact path/to/your_file.pamd -o output.md
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
That's it! You now have a standard Markdown file ready to be shared, published, or converted to PDF.
|
|
@@ -5,13 +5,13 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="pyact-cli",
|
|
8
|
-
version="0.
|
|
9
|
-
author="
|
|
10
|
-
author_email="
|
|
8
|
+
version="0.3.0",
|
|
9
|
+
author="Abstergo2003",
|
|
10
|
+
author_email="",
|
|
11
11
|
description="A CLI tool to compile .pamd files to Markdown.",
|
|
12
12
|
long_description=long_description,
|
|
13
13
|
long_description_content_type="text/markdown",
|
|
14
|
-
url="https://github.com/
|
|
14
|
+
url="https://github.com/Abstergo2003/PyAct",
|
|
15
15
|
packages=find_packages(),
|
|
16
16
|
classifiers=[
|
|
17
17
|
"Programming Language :: Python :: 3",
|
pyact_cli-0.1.0/PKG-INFO
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: pyact-cli
|
|
3
|
-
Version: 0.1.0
|
|
4
|
-
Summary: A CLI tool to compile .pamd files to Markdown.
|
|
5
|
-
Home-page: https://github.com/yourusername/pyact
|
|
6
|
-
Author: Your Name
|
|
7
|
-
Author-email: your.email@example.com
|
|
8
|
-
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
-
Classifier: Operating System :: OS Independent
|
|
11
|
-
Requires-Python: >=3.8
|
|
12
|
-
Description-Content-Type: text/markdown
|
|
13
|
-
Dynamic: author
|
|
14
|
-
Dynamic: author-email
|
|
15
|
-
Dynamic: classifier
|
|
16
|
-
Dynamic: description
|
|
17
|
-
Dynamic: description-content-type
|
|
18
|
-
Dynamic: home-page
|
|
19
|
-
Dynamic: requires-python
|
|
20
|
-
Dynamic: summary
|
|
21
|
-
|
|
22
|
-
# PyAct CLI
|
|
23
|
-
|
|
24
|
-
PyAct CLI is a tool designed to process `.pamd` files, which bundle Python logic and Markdown content together, similar to a Jupyter Notebook. This compiler resolves variables and dependencies to generate standard Markdown output.
|
|
25
|
-
|
|
26
|
-
## Installation
|
|
27
|
-
|
|
28
|
-
You can install it directly from source (or after uploading to PyPI):
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
pip install pyact-cli
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Usage
|
|
35
|
-
|
|
36
|
-
Compile a `.pamd` file and output to the terminal:
|
|
37
|
-
```bash
|
|
38
|
-
pyact path/to/your_file.pamd
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
Compile and save the output to a new Markdown file:
|
|
42
|
-
```bash
|
|
43
|
-
pyact path/to/your_file.pamd -o output.md
|
|
44
|
-
```
|
pyact_cli-0.1.0/README.md
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# PyAct CLI
|
|
2
|
-
|
|
3
|
-
PyAct CLI is a tool designed to process `.pamd` files, which bundle Python logic and Markdown content together, similar to a Jupyter Notebook. This compiler resolves variables and dependencies to generate standard Markdown output.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
You can install it directly from source (or after uploading to PyPI):
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
pip install pyact-cli
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
Compile a `.pamd` file and output to the terminal:
|
|
16
|
-
```bash
|
|
17
|
-
pyact path/to/your_file.pamd
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Compile and save the output to a new Markdown file:
|
|
21
|
-
```bash
|
|
22
|
-
pyact path/to/your_file.pamd -o output.md
|
|
23
|
-
```
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.0"
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: pyact-cli
|
|
3
|
-
Version: 0.1.0
|
|
4
|
-
Summary: A CLI tool to compile .pamd files to Markdown.
|
|
5
|
-
Home-page: https://github.com/yourusername/pyact
|
|
6
|
-
Author: Your Name
|
|
7
|
-
Author-email: your.email@example.com
|
|
8
|
-
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
-
Classifier: Operating System :: OS Independent
|
|
11
|
-
Requires-Python: >=3.8
|
|
12
|
-
Description-Content-Type: text/markdown
|
|
13
|
-
Dynamic: author
|
|
14
|
-
Dynamic: author-email
|
|
15
|
-
Dynamic: classifier
|
|
16
|
-
Dynamic: description
|
|
17
|
-
Dynamic: description-content-type
|
|
18
|
-
Dynamic: home-page
|
|
19
|
-
Dynamic: requires-python
|
|
20
|
-
Dynamic: summary
|
|
21
|
-
|
|
22
|
-
# PyAct CLI
|
|
23
|
-
|
|
24
|
-
PyAct CLI is a tool designed to process `.pamd` files, which bundle Python logic and Markdown content together, similar to a Jupyter Notebook. This compiler resolves variables and dependencies to generate standard Markdown output.
|
|
25
|
-
|
|
26
|
-
## Installation
|
|
27
|
-
|
|
28
|
-
You can install it directly from source (or after uploading to PyPI):
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
pip install pyact-cli
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Usage
|
|
35
|
-
|
|
36
|
-
Compile a `.pamd` file and output to the terminal:
|
|
37
|
-
```bash
|
|
38
|
-
pyact path/to/your_file.pamd
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
Compile and save the output to a new Markdown file:
|
|
42
|
-
```bash
|
|
43
|
-
pyact path/to/your_file.pamd -o output.md
|
|
44
|
-
```
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
pyact
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|