MCPcopy
hub / github.com/marimo-team/marimo / get_github_src_url

Function get_github_src_url

marimo/_cli/files/file_path.py:35–39  ·  view source on GitHub ↗
(url: str)

Source from the content-addressed store, hash-verified

33
34
35def get_github_src_url(url: str) -> str:
36 # Change hostname to raw.githubusercontent.com
37 path = urllib.parse.urlparse(url).path
38 path = path.replace("/blob/", "/", 1)
39 return f"https://raw.githubusercontent.com{path}"
40
41
42def is_gist_src(url: str) -> bool:

Callers 2

load_external_fileFunction · 0.90
readMethod · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…