generated from mlibrary/python-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import typer | ||
|
||
app = typer.Typer() | ||
|
||
|
||
@app.command() | ||
def add_to_db(barcode: str): | ||
print(f'Adding barcode "{barcode}" to database') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import typer | ||
import aim.cli.digifeeds as digifeeds | ||
|
||
app = typer.Typer() | ||
app.add_typer(digifeeds.app, name="digifeeds") | ||
|
||
|
||
if __name__ == "__main__": | ||
app() |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,9 @@ authors = ["Monique Rio <[email protected]>", "David Fulmer <[email protected]>"] | |
readme = "README.md" | ||
packages = [{include = "aim"}] | ||
|
||
[tool.poetry.scripts] | ||
aim = "aim.cli.main:app" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.11" | ||
requests = "^2.31.0" | ||
|
@@ -14,6 +17,7 @@ mysqlclient = "^2.2.4" | |
fastapi = {extras = ["standard"], version = "^0.114.2"} | ||
httpx = "^0.27.2" | ||
alembic = "^1.13.2" | ||
typer = "^0.12.5" | ||
|
||
|
||
[tool.poetry.group.dev.dependencies] | ||
|