sistine 0.2.3__tar.gz → 0.2.5__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sistine
3
- Version: 0.2.3
3
+ Version: 0.2.5
4
4
  Summary: HTML builder with server routing for Python
5
5
  Author: Ararya Arka Anugraha
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "sistine"
7
- version = "0.2.3"
7
+ version = "0.2.5"
8
8
  description = "HTML builder with server routing for Python"
9
9
  authors = [
10
10
  {name = "Ararya Arka Anugraha"},
@@ -43,9 +43,7 @@ class Sistine:
43
43
  self._global_head.append(tag)
44
44
 
45
45
  def use_tailwind(self) -> None:
46
- self._global_scripts.append(
47
- '<script src="https://cdn.tailwindcss.com"></script>'
48
- )
46
+ self.head('<script src="https://cdn.tailwindcss.com"></script>')
49
47
 
50
48
  def sistine(self, path: str) -> Callable[[Callable[..., Any]], Callable[..., Any]]:
51
49
  def decorator(fn: Callable[..., Any]) -> Callable[..., Any]:
@@ -58,7 +58,7 @@ class StreamlitServer:
58
58
  .stApp { margin: 0; padding: 0; background: transparent !important; }
59
59
  body { margin: 0; padding: 0; }
60
60
  .sistine-wrap { position:fixed;inset:0;overflow-y:auto; }
61
- .sistine-wrap, .sistine-wrap * { margin: 0; padding: 0; box-sizing: border-box; }
61
+ .sistine-wrap, .sistine-wrap * { box-sizing: border-box; }
62
62
  </style>
63
63
  """,
64
64
  unsafe_allow_html=True,
@@ -70,7 +70,7 @@ class StreamlitServer:
70
70
  if not is_running_in_streamlit():
71
71
  script = sys.argv[0]
72
72
  print(
73
- f"\n \033[1mSistine v0.2.3\033[0m — Starting Streamlit backend on http://{host}:{port}...\n"
73
+ f"\n \033[1mSistine v0.2.5\033[0m — Starting Streamlit backend on http://{host}:{port}...\n"
74
74
  )
75
75
 
76
76
  import subprocess
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sistine
3
- Version: 0.2.3
3
+ Version: 0.2.5
4
4
  Summary: HTML builder with server routing for Python
5
5
  Author: Ararya Arka Anugraha
6
6
  License-Expression: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes