mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-24 17:02:33 +02:00
Bumps [pandas-stubs](https://github.com/pandas-dev/pandas-stubs) from 2.1.1.230928 to 2.1.4.231218. <details> <summary>Commits</summary> <ul> <li><a href="2cd803a6f2
"><code>2cd803a</code></a> Version 2.1.4.231218</li> <li><a href="afb0db585d
"><code>afb0db5</code></a> Mypy 1.7.1 and fix <a href="https://redirect.github.com/pandas-dev/pandas-stubs/issues/827">#827</a> (<a href="https://redirect.github.com/pandas-dev/pandas-stubs/issues/829">#829</a>)</li> <li><a href="a950dbd8c4
"><code>a950dbd</code></a> Fix nightly CI again (<a href="https://redirect.github.com/pandas-dev/pandas-stubs/issues/824">#824</a>)</li> <li><a href="2aadf0ee9c
"><code>2aadf0e</code></a> Refine iterrows and itertuples return types (<a href="https://redirect.github.com/pandas-dev/pandas-stubs/issues/822">#822</a>)</li> <li><a href="536db83b1d
"><code>536db83</code></a> fix pyright and pytest --nightly (<a href="https://redirect.github.com/pandas-dev/pandas-stubs/issues/819">#819</a>)</li> <li><a href="94df875944
"><code>94df875</code></a> Fix: dataframe.loc int label could be warn (<a href="https://redirect.github.com/pandas-dev/pandas-stubs/issues/816">#816</a>)</li> <li><a href="271061693c
"><code>2710616</code></a> Add more valid options for compression= in to_parquet() (<a href="https://redirect.github.com/pandas-dev/pandas-stubs/issues/815">#815</a>)</li> <li><a href="8f1ae07159
"><code>8f1ae07</code></a> Use the new poetry dev dependency group (<a href="https://redirect.github.com/pandas-dev/pandas-stubs/issues/807">#807</a>)</li> <li><a href="717f4ddf39
"><code>717f4dd</code></a> Fix flavor param with incorrect type hint in read_html (<a href="https://redirect.github.com/pandas-dev/pandas-stubs/issues/772">#772</a>)</li> <li><a href="2fefa8adc8
"><code>2fefa8a</code></a> Update required python version to >= 3.9 in docs (<a href="https://redirect.github.com/pandas-dev/pandas-stubs/issues/806">#806</a>)</li> <li>Additional commits viewable in <a href="https://github.com/pandas-dev/pandas-stubs/compare/v2.1.1.230928...v2.1.4.231218">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
aki_prj23_transparenzregister
Contributions
See the CONTRIBUTING.md about how code should be formatted and what kind of rules we set ourselves.
Available entrypoints
The project has currently the following entrypoint available:
- data-transformation > Transfers all the data from the mongodb into the sql db to make it available as production data.
- data-processing > Processes the data using NLP methods and transfers matched data into the SQL table ready for use.
- reset-sql > Resets all sql tables in the connected db.
- copy-sql > Copys the content of a db to another db.
- webserver > Starts the webserver showing the analysis results.
DB Connection settings
To connect to the SQL db see sql/connector.py To connect to the Mongo db see [connect]
Create a secrets.json
in the root of this repo with the following structure (values to be replaces by desired config):
The sqlite db is alternative to the postgres section.
{
"sqlite": "path-to-sqlite.db",
"postgres": {
"username": "username",
"password": "password",
"host": "localhost",
"database": "db-name",
"port": 5432
},
"mongo": {
"username": "username",
"password": "password",
"host": "localhost",
"database": "transparenzregister",
"port": 27017
}
}
Alternatively, the secrets can be provided as environment variables. One option to do so is to add a .env
file with
the following layout:
PYTHON_POSTGRES_USERNAME=postgres
PYTHON_POSTGRES_PASSWORD=postgres
PYTHON_POSTGRES_HOST=postgres
PYTHON_POSTGRES_DATABASE=postgres
PYTHON_POSTGRES_PORT=5432
PYTHON_MONGO_USERNAME=username
PYTHON_MONGO_HOST=mongodb
PYTHON_MONGO_PASSWORD=password
PYTHON_MONGO_PORT=27017
PYTHON_MONGO_DATABASE=transparenzregister
PYTHON_SQLITE_PATH=PathToSQLite3.db # An overwrite path to an sqllite db
PYTHON_DASH_LOGIN_USERNAME=some-login-to-webgui
PYTHON_DASH_LOGIN_PW=some-pw-to-login-to-webgui
PYTHON_INGEST_SCHEDULE=12 # Every x hours
CR=ghcr.io/fhswf/aki_prj23_transparenzregister
TAG=latest
HTTP_PORT=80
The prefix PYTHON_
can be customized by setting a different prefix
when constructing the ConfigProvider.
Description
Languages
Jupyter Notebook
84.5%
HTML
12.1%
Python
3.3%