Skip to content

Commit

Permalink
fix: use env var for q3as secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
Angel-Dijoux committed Nov 25, 2024
1 parent 92fd749 commit 2f889d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion template/assets/use_case/template/pyproject.toml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ requires-python = ">={{ python_version }}"

# You can add dependencies with `aqora add`
dependencies = [
"q3as>=0.1.3",
"q3as>=0.1.3",
"python-dotenv>=1.0.1",
]

[build-system]
Expand Down
8 changes: 6 additions & 2 deletions template/assets/use_case/template/submission/q3as_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@
"outputs": [],
"source": [
"from q3as import Client, Credentials\n",
"from dotenv import load_dotenv\n",
"import os\n",
"\n",
"id = \"your-id\"\n",
"secret = \"your-secret\"\n",
"load_dotenv()\n",
"\n",
"id = os.getenv(\"Q3AS_ID\")\n",
"secret = os.getenv(\"Q3AS_SECRET\")\n",
"\n",
"client = Client(Credentials(id=id, secret=secret))"
]
Expand Down

0 comments on commit 2f889d2

Please sign in to comment.