Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Commit fcf7fc7

Browse files
committed
Restructure repo
1 parent 64ca5d6 commit fcf7fc7

File tree

1,127 files changed

+43
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,127 files changed

+43
-0
lines changed

postgres_wasm/__init__.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
"""
2+
Return config on servers to start for postgres_wasm
3+
See https://jupyter-server-proxy.readthedocs.io/en/latest/server-process.html
4+
for more information.
5+
"""
6+
7+
import os
8+
import importlib.resources
9+
10+
11+
def setup_postgres_wasm():
12+
with importlib.resources.path("postgres_wasm", "static") as fpath:
13+
command = ["python3", "-m", "http.server", "--directory", str(fpath), "{port}"]
14+
icon_path = os.path.join(
15+
os.path.dirname(os.path.abspath(__file__)), "icons", "postgresql.svg"
16+
)
17+
return {
18+
"command": command,
19+
"environment": {},
20+
"launcher_entry": {"title": "postgres_wasm", "icon_path": icon_path},
21+
}

postgres_wasm/icons/postgresql.svg

Lines changed: 22 additions & 0 deletions
File renamed without changes.

0 commit comments

Comments
 (0)