afterpython 0.0.1.dev1__py3-none-any.whl → 0.0.1.dev2__py3-none-any.whl

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.
afterpython/README.py ADDED
@@ -0,0 +1,158 @@
1
+ import marimo
2
+
3
+ __generated_with = "0.13.15"
4
+ app = marimo.App()
5
+
6
+
7
+ @app.cell
8
+ def _():
9
+ import marimo as mo
10
+ center = lambda text: mo.center(mo.md(text))
11
+ return center, mo
12
+
13
+
14
+ @app.cell
15
+ def _(center):
16
+ center("# What is `afterpython`?")
17
+ return
18
+
19
+
20
+ @app.cell
21
+ def _(mo):
22
+ mo.Html(f'''
23
+ <p style="font-size: 24px; text-align: center;">
24
+ Why AfterPython?
25
+ - It is a simple and easy-to-use tool for creating websites.
26
+ - It is designed to be used by Python developers.
27
+ - It is open source and free to use.
28
+ </p>
29
+ ''')
30
+ return
31
+
32
+
33
+ @app.cell
34
+ def _(center, mo):
35
+ mo.callout(
36
+ center("## *`Every Python project deserves a standalone website, not just a README.md`*"),
37
+ kind="info"
38
+ )
39
+ return
40
+
41
+
42
+ @app.cell
43
+ def _(center):
44
+ center("# Why use `afterpython`?")
45
+ return
46
+
47
+
48
+ @app.cell
49
+ def _(mo):
50
+ mo.Html(f'''
51
+ <p style="font-size: 24px; text-align: center; margin-bottom: 2.8rem;">
52
+ Why AfterPython?
53
+ - It is a simple and easy-to-use tool for creating websites.
54
+ - It is designed to be used by Python developers.
55
+ - It is open source and free to use.
56
+ <hr>
57
+ </p>
58
+ ''')
59
+ return
60
+
61
+
62
+ @app.cell
63
+ def _(center):
64
+ center(
65
+ r"""
66
+ # Features
67
+ - one
68
+ - two
69
+ - three
70
+ """
71
+ ).style({"margin": "2.8rem"})
72
+ return
73
+
74
+
75
+ @app.cell
76
+ def _(center):
77
+ center("""
78
+ # Steps to create a website
79
+ - one
80
+ - two
81
+ - three
82
+ """
83
+ ).style({"margin-bottom": "2.8rem"})
84
+ return
85
+
86
+
87
+ @app.cell
88
+ def _(center):
89
+ center("# Examples using `afterpython`:").style({"padding-bottom": "1.2rem"})
90
+ return
91
+
92
+
93
+ @app.cell
94
+ def _(mo):
95
+ mo.carousel([
96
+ mo.md("### Example 1"),
97
+ mo.md("### Example 2"),
98
+ # mo.md("![marimo moss ball](https://marimo.app/logotype-wide.svg)"),
99
+ mo.md("### Example 3"),
100
+ ]).style({"margin-bottom": "2.8rem"})
101
+ return
102
+
103
+
104
+ @app.cell
105
+ def _(center):
106
+ center("# Community")
107
+ return
108
+
109
+
110
+ @app.cell
111
+ def _(mo):
112
+ active_users = mo.stat(
113
+ value="1.2M",
114
+ label="Active Users",
115
+ caption="12k from last month",
116
+ direction="increase"
117
+ )
118
+
119
+ revenue = mo.stat(
120
+ value="$4.5M",
121
+ label="Revenue",
122
+ caption="8k from last quarter",
123
+ direction="increase"
124
+ )
125
+
126
+ conversion = mo.stat(
127
+ value="3.8",
128
+ label="Conversion Rate",
129
+ caption="0.5 from last week",
130
+ direction="decrease",
131
+ )
132
+
133
+ mo.hstack([active_users, revenue, conversion], justify="center", gap="2rem")
134
+ return
135
+
136
+
137
+ @app.cell
138
+ def _(center):
139
+ center("# FAQs").style({"margin-top": "2.8rem"})
140
+ return
141
+
142
+
143
+ @app.cell
144
+ def _(mo):
145
+ mo.accordion(
146
+ {
147
+ "Question 1": mo.md("Nothing!"),
148
+ "Question 2": mo.md("Nothing!"),
149
+ "Question 3": mo.md(
150
+ "![goat](https://images.unsplash.com/photo-1524024973431-2ad916746881)"
151
+ ),
152
+ }
153
+ )
154
+ return
155
+
156
+
157
+ if __name__ == "__main__":
158
+ app.run()
@@ -1,16 +1,19 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: afterpython
3
- Version: 0.0.1.dev1
3
+ Version: 0.0.1.dev2
4
4
  Summary:
5
5
  License: Apache-2.0
6
6
  Author: Stephen Yau
7
7
  Author-email: softwareentrepreneer+afterpython@gmail.com
8
- Requires-Python: >=3.12
8
+ Requires-Python: >=3.10
9
9
  Classifier: License :: OSI Approved :: Apache Software License
10
10
  Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Classifier: Programming Language :: Python :: 3.11
11
13
  Classifier: Programming Language :: Python :: 3.12
12
14
  Classifier: Programming Language :: Python :: 3.13
13
- Requires-Dist: marimo[recommended] (>=0.13.10)
15
+ Requires-Dist: click (>=8.2.1)
16
+ Requires-Dist: marimo[recommended] (>=0.13.15)
14
17
  Description-Content-Type: text/markdown
15
18
 
16
19
  # afterpython
@@ -1,9 +1,9 @@
1
+ afterpython/README.py,sha256=ZKjA9RB_oYuXNpG_QPHMCepF1boz-yXvzWLsiOsE8EM,2980
1
2
  afterpython/images/favicon.ico,sha256=4ZYFWo7mU5MDzJuDpv4eDolOW-yJfbpThIewI1ctFUk,24951
2
3
  afterpython/images/logo-trace.svg,sha256=5Lzput7D8z7i7V0erPLlICfCGC5vdmHNoWW65Judrj4,1236956
3
4
  afterpython/images/logo.png,sha256=2nfROHU3-JEkVv6MYrJ9qZR6glOAAJInCd4oeputkGE,658769
4
5
  afterpython/images/logo.svg,sha256=p9cX9uZGYcctlTjO6VA2C-ZPS3fD0ouKW75Jl3vCs1s,828
5
- afterpython/main.py,sha256=uyVAmHJTW7HxSMpVqPczFlJ2JzJL2iCRXJo4HBCfs4k,90
6
- afterpython-0.0.1.dev1.dist-info/LICENSE,sha256=S_a0wVgQiwg8YlDn6KqFXe-oAnTg0YIZPVLingCI-Zs,11345
7
- afterpython-0.0.1.dev1.dist-info/METADATA,sha256=_tyrKbVxtnZUGKsqkKNlc0l87vQ3y71rTgy_1KghZck,507
8
- afterpython-0.0.1.dev1.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
9
- afterpython-0.0.1.dev1.dist-info/RECORD,,
6
+ afterpython-0.0.1.dev2.dist-info/LICENSE,sha256=S_a0wVgQiwg8YlDn6KqFXe-oAnTg0YIZPVLingCI-Zs,11345
7
+ afterpython-0.0.1.dev2.dist-info/METADATA,sha256=NH01QeE98KsX85-VtUPYjvDjVzckAGw02eaJkDPOB4w,640
8
+ afterpython-0.0.1.dev2.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
9
+ afterpython-0.0.1.dev2.dist-info/RECORD,,
afterpython/main.py DELETED
@@ -1 +0,0 @@
1
- # TODO: first task, render marimo and typst in mystmd, create a separate project for this?