From 4de4ba78c9292375173e6fd3e92bd1633c2208bb Mon Sep 17 00:00:00 2001 From: Jpk2n <156768950+Jpk2n@users.noreply.github.com> Date: Sun, 12 May 2024 07:10:06 +0000 Subject: [PATCH] Pending changes exported from your codespace --- .vscode/settings.json | 7 ++++++ bio space | 52 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..d171c9998 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "python.testing.pytestArgs": [ + "app" + ], + "python.testing.unittestEnabled": false, + "python.testing.pytestEnabled": true +} \ No newline at end of file diff --git a/bio space b/bio space index 22476849c..377fcf90f 100644 --- a/bio space +++ b/bio space @@ -1,2 +1,52 @@ -~$ +# +import os +import json + +def get_config(): +    config = {} +    with open('config.json') as f: +        config = json.load(f) +    return config + +def get_secret_key(): +    config = get_config() +    return config['secret_key'] + +def get_database_url(): +    config = get_config() +    return config['database_url'] + +def main(): +    secret_key = get_secret_key() +    database_url = get_database_url() +    print(f"Secret Key: {secret_key}") +    print(f"Database URL: {database_url}") + +if __name__ == "__main__": +    main()# +import os +import json + +def get_config(): +    config = {} +    with open('config.json') as f: +        config = json.load(f) +    return config + +def get_secret_key(): +    config = get_config() +    return config['secret_key'] + +def get_database_url(): +    config = get_config() +    return config['database_url'] + +def main(): +    secret_key = get_secret_key() +    database_url = get_database_url() +    print(f"Secret Key: {secret_key}") +    print(f"Database URL: {database_url}") + +if __name__ == "__main__": +    main()~$ ;+**;0,0; \ No newline at end of file