MCPcopy Index your code
hub / github.com/plotly/plotly.py / overwrite_schema

Function overwrite_schema

commands.py:119–126  ·  view source on GitHub ↗

Replace plot-schema.json with web copy.

(url)

Source from the content-addressed store, hash-verified

117
118
119def overwrite_schema(url):
120 """Replace plot-schema.json with web copy."""
121
122 req = requests.get(url)
123 assert req.status_code == 200
124 path = os.path.join(PROJECT_ROOT, "codegen", "resources", "plot-schema.json")
125 with open(path, "wb") as f:
126 f.write(req.content)
127
128
129def overwrite_bundle_local(uri):

Callers 2

update_schemaFunction · 0.85

Calls 2

getMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected