Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions .env.local
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
#Note specify the values within double-quotes("")
ENVIRONMENT=development

AWS_BUCKET_NAME=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=

GEMINI_API=
GITHUB_TOKEN="github_pat_your_github_token"
GROQ_API="gsk_your_groq_api_key_X"

MONGODB_URI="mongodb://admin:1234@127.0.0.1:27017/?retryWrites=true&w=majority&appName=sample"
DATABASE_NAME="tz-server"
MONGODB_URI="mongodb://<user>:<password>@127.0.0.1:27017/?retryWrites=true&w=majority&appName=sample"
DATABASE_NAME="sample"
2 changes: 1 addition & 1 deletion .streamlit/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ toolbarMode = "viewer"
hideTopBar = false

[theme]
base = "light"
base = "dark"
primaryColor = "#4b9fffff"
backgroundColor = "#FFFFFFFF"
secondaryBackgroundColor = "#F0F2F6FF"
Expand Down
2 changes: 1 addition & 1 deletion .streamlit/secrets.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ GROQ_API = "gsk_"

[mongodb]
MONGODB_URI = "mongodb://admin:1234@127.0.0.1:27017/sample-server?authSource=admin&retryWrites=true&w=majority&appName=sample"
DATABASE_NAME = "tz-server"
DATABASE_NAME = "sample"
2 changes: 1 addition & 1 deletion .vscode/Python.code-profile

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .vscode/dictionaries/project-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ stefanzweifel
streamlit
Succesfully
sucess
Threadzip
Sample
tobytes
torchvision
txtl
Expand Down
7 changes: 4 additions & 3 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"aaron-bond.better-comments",
"Heron.firefox-devtools-theme",
"GitHub.github-vscode-theme",
"ms-python.python",
"yzhang.markdown-all-in-one"
"yzhang.markdown-all-in-one",
"tamasfe.even-better-toml",
"ms-python.vscode-python-envs"
]
}
}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ All notable changes to this repository will be documented in this file.
- Initial release.

Following version changes are required to be documented.

## [0.0.5]

- update env.sample
27 changes: 18 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Ensure below files are configured (create if not exist) properly to run the proj

```bash
poetry lock --no-cache --regenerate
poetry install --with dev
poetry install --all-extras --with dev
```

Or manually
Expand Down Expand Up @@ -126,22 +126,35 @@ pip install sample

current version will be printed on start of above commands.

## Install GIT hooks

these hooks will

- Check for lint and audit for security before commit
- Append branch name in commit message
- Generate requirements.txt on checkout on new branch

```bash
# Install git hooks
poetry run ./scripts/setup-hooks.sh
```

there is `.vscode/Python.code-profile` file; import this as a profile in vscode which include necessary extension for python development.

## Troubleshooting

sometimes there might be chances that virtual environment get corrupted then delete the old virtual environment and start afresh.

```sh
poetry env info
# this will provide virtual environment name
poetry env info
# this will provide virtual environment name
poetry env remove <environment-full-name>
```
```

## License

[MIT](./LICENSE)


## References

- [Python Downloads](https://www.python.org/downloads)
Expand All @@ -150,7 +163,3 @@ poetry env remove <environment-full-name>
- [Poetry Docs](https://python-poetry.org/docs/)
- [MyPy Docs](https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports)
- [Useful Poetry commands](./docs//POETRY_COMMANDS.md)




6 changes: 0 additions & 6 deletions packages.txt

This file was deleted.

119 changes: 117 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[project]
name = "sample"
version = "0.0.3"
description = "A package template for Recursive zero."
version = "0.0.5"
description = "A python template for fastapi and streamlit projects."
authors = [{ name = "sample", email = "recursivezero@outlook.com" }]
license = "MIT"
readme = "README.md"
requires-python = ">=3.10,<3.13"
keywords = ["image", "fastapi", "streamlit"]
keywords = ["python", "fastapi", "streamlit"]
classifiers = [
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Image Recognition",
Expand All @@ -16,6 +16,7 @@ dependencies = [
"streamlit>=1.49.0",
"python-box (>=7.3.2,<8.0.0)",
"uvicorn (>=0.40.0,<0.41.0)",
"pymongo (>=4.15.5,<5.0.0)",
]


Expand Down
Loading