Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to save a dataset template as a local file for future use #166

Open
davecap opened this issue May 9, 2017 · 1 comment
Open

Comments

@davecap
Copy link
Member

davecap commented May 9, 2017

It would be nice to be able to save a template to a local JSON file for future use.

@jsh2134
Copy link
Contributor

jsh2134 commented Apr 24, 2020

To save locally:

dataset_template = dataset.template()
with open('template.json', 'w') as fp:
    json.dump(dataset_template, fp)

To save on SolveBio in the same folder:

import json
Object.get_or_create_by_full_path(dataset.full_path + '.template.json', object_type='file', contents=json.dumps(dataset.template()))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants