Skip to content

examples of how to hide api keys, examples using python import, json, yaml and environmental variables

Notifications You must be signed in to change notification settings

ucla-data-science-center/hiding_api_keys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hiding your API keys and tokens

examples of how to hide api keys, examples using python import, json, yaml and environmental variables

using .gitignore

Note: my example has the config files commented out so I can include them here. Would be ignored in real usage.

Note:

This example assumes the script and json files with the keys and/or tokens are all in the same directory.

config.py   <- these are the config files that hold the api keys or tokens
config.json
config.yml
config.py
__init__.py
__pycache__
.ipynb_checkpoints
Untitled*.ipynb

api_security.ipynb <- jupyter notebook with examples

Articles Referenced:

About

examples of how to hide api keys, examples using python import, json, yaml and environmental variables

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published