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.
@@ -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.
@@ -1,5 +1,5 @@
1
1
  import inspect
2
- from .py2tex import py2tex
2
+ from pyact.py2tex import py2tex
3
3
 
4
4
  def equation(func: function, values: list) -> str:
5
5
  source = inspect.getsource(func)
@@ -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.
@@ -1,9 +1,9 @@
1
1
  README.md
2
2
  setup.py
3
+ pamd_helpers/__init__.py
3
4
  pyact/__init__.py
4
5
  pyact/cli.py
5
6
  pyact/core.py
6
- pyact/helpers.py
7
7
  pyact/py2tex.py
8
8
  pyact_cli.egg-info/PKG-INFO
9
9
  pyact_cli.egg-info/SOURCES.txt
@@ -0,0 +1,2 @@
1
+ pamd_helpers
2
+ pyact
@@ -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.1.0",
9
- author="Your Name",
10
- author_email="your.email@example.com",
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/yourusername/pyact",
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