-
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.
Merge pull request #9 from NorwegianVeterinaryInstitute/dev_ML
Transferred code into a package managed by uv.
- Loading branch information
Showing
14 changed files
with
1,395 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
__pycache__ | ||
api-key.txt | ||
__pycache__/ | ||
/src/shinylims/__pycache__ | ||
*.pyc |
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 @@ | ||
3.11.5 |
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,7 @@ | ||
Copyright 2024 Magnus Leithaug | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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 |
---|---|---|
@@ -1,26 +1,21 @@ | ||
### Shinylims | ||
|
||
A Python Shiny app for LIMS reporting. | ||
|
||
Environment setup: | ||
This python package is managed with uv (https://docs.astral.sh/uv). To run it, clone the repository and install the package with: | ||
|
||
``` | ||
python -m venv pyshiny-env | ||
cd pyshiny-env | ||
source bin/activate | ||
pip install -r requirements.txt | ||
uv sync | ||
``` | ||
|
||
Then clone the repo, and open the app. | ||
|
||
Runs locally with: | ||
Then, run the shiny app with: | ||
|
||
``` | ||
shiny run app.py | ||
uv run uvicorn shinylims.app:app | ||
``` | ||
|
||
Remember to update the manifest before making commits | ||
|
||
``` | ||
rsconnect write-manifest shiny . --overwrite | ||
``` | ||
uvx --from rsconnect-python --python .venv/Scripts/python.exe rsconnect write-manifest shiny . --overwrite --entrypoint shinylims.app:app | ||
``` | ||
|
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
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,19 @@ | ||
[project] | ||
name = "shinylims-uv" | ||
version = "0.1.0" | ||
authors = [ | ||
{ name="Magnus Leithaug", email="[email protected]" }, | ||
] | ||
|
||
description = "A shiny app to display lab metadata from clarity LIMS" | ||
readme = "README.md" | ||
requires-python = ">=3.11.5" | ||
dependencies = [ | ||
"faicons==0.2.2", | ||
"itables==2.0.1", | ||
"pandas==2.2.2", | ||
"pins==0.8.5", | ||
"seaborn==0.13.2", | ||
"shiny==0.9.0", | ||
"shinyswatch==0.6.1", | ||
] |
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 |
---|---|---|
@@ -1,8 +1,73 @@ | ||
shiny==0.9.0 | ||
seaborn==0.13.2 | ||
pandas==2.2.2 | ||
# This file was autogenerated by uv via the following command: | ||
# uv export --no-hashes -o requirements.txt | ||
-e . | ||
anyio==4.6.2.post1 | ||
appdirs==1.4.4 | ||
asgiref==3.8.1 | ||
asttokens==2.4.1 | ||
certifi==2024.8.30 | ||
charset-normalizer==3.4.0 | ||
click==8.1.7 ; platform_system != 'Emscripten' | ||
colorama==0.4.6 ; sys_platform == 'win32' or platform_system == 'Windows' | ||
contourpy==1.3.0 | ||
cycler==0.12.1 | ||
decorator==5.1.1 | ||
executing==2.1.0 | ||
faicons==0.2.2 | ||
fonttools==4.54.1 | ||
fsspec==2024.10.0 | ||
h11==0.14.0 ; platform_system != 'Emscripten' | ||
htmltools==0.5.3 | ||
humanize==4.11.0 | ||
idna==3.10 | ||
importlib-metadata==8.5.0 | ||
importlib-resources==6.4.5 | ||
ipython==8.18.0 | ||
itables==2.0.1 | ||
rsconnect-python==1.23.0 | ||
jedi==0.19.1 | ||
jinja2==3.1.4 | ||
joblib==1.4.2 | ||
kiwisolver==1.4.7 | ||
linkify-it-py==2.0.3 | ||
markdown-it-py==3.0.0 | ||
markupsafe==3.0.2 | ||
matplotlib==3.9.2 | ||
matplotlib-inline==0.1.7 | ||
mdit-py-plugins==0.4.2 | ||
mdurl==0.1.2 | ||
numpy==2.1.2 | ||
packaging==24.1 | ||
pandas==2.2.2 | ||
parso==0.8.4 | ||
pexpect==4.9.0 ; sys_platform != 'win32' | ||
pillow==11.0.0 | ||
pins==0.8.5 | ||
faicons==0.2.2 | ||
prompt-toolkit==3.0.36 | ||
ptyprocess==0.7.0 ; sys_platform != 'win32' | ||
pure-eval==0.2.3 | ||
pygments==2.18.0 | ||
pyparsing==3.2.0 | ||
python-dateutil==2.9.0.post0 | ||
python-multipart==0.0.12 | ||
pytz==2024.2 | ||
pyyaml==6.0.2 | ||
questionary==2.0.1 ; platform_system != 'Emscripten' | ||
requests==2.32.3 | ||
seaborn==0.13.2 | ||
shiny==0.9.0 | ||
shinyswatch==0.6.1 | ||
six==1.16.0 | ||
sniffio==1.3.1 | ||
stack-data==0.6.3 | ||
starlette==0.41.0 | ||
traitlets==5.14.3 | ||
typing-extensions==4.12.2 | ||
tzdata==2024.2 | ||
uc-micro-py==1.0.3 | ||
urllib3==2.2.3 | ||
uvicorn==0.32.0 ; platform_system != 'Emscripten' | ||
watchfiles==0.24.0 ; platform_system != 'Emscripten' | ||
wcwidth==0.2.13 | ||
websockets==13.1 | ||
xxhash==3.5.0 | ||
zipp==3.20.2 |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.