File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,10 @@ pip install -e .
2525``` python
2626import os
2727from gen3_metadata.parser import Gen3MetadataParser
28+ from dotenv import load_dotenv
2829
30+ load_dotenv()
31+ key_file = os.getenv(' credentials_path' )
2932# Set up credentials path
3033key_file = os.getenv(' credentials_path' )
3134
Original file line number Diff line number Diff line change 1919 },
2020 {
2121 "cell_type" : " code" ,
22- "execution_count" : null ,
22+ "execution_count" : 2 ,
2323 "metadata" : {},
2424 "outputs" : [],
2525 "source" : [
2626 " import os\n " ,
27+ " from dotenv import load_dotenv\n " ,
2728 " from gen3_metadata.gen3_metadata_parser import Gen3MetadataParser\n " ,
29+ " load_dotenv()\n " ,
30+ " key_file = os.getenv('credentials_path')"
31+ ]
32+ },
33+ {
34+ "cell_type" : " code" ,
35+ "execution_count" : null ,
36+ "metadata" : {},
37+ "outputs" : [],
38+ "source" : [
2839 " \n " ,
29- " key_file = os.getenv('credentials_path')\n " ,
3040 " gen3metadata = Gen3MetadataParser(key_file)\n " ,
3141 " gen3metadata.authenticate()"
3242 ]
Original file line number Diff line number Diff line change 33setuptools
44pytest
55PyJWT
6- ipykernel
6+ ipykernel
7+ dotenv
You can’t perform that action at this time.
0 commit comments