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