mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-05-14 06:08:47 +02:00
[//]: # (dependabot-start) ⚠️ **Dependabot is rebasing this PR** ⚠️ Rebasing might not happen immediately, so don't worry if this takes some time. Note: if you make any changes to this PR yourself, they will take precedence over the rebase. --- [//]: # (dependabot-end) Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.4.49 to 1.4.50. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/sqlalchemy/sqlalchemy/releases">sqlalchemy's releases</a>.</em></p> <blockquote> <h1>1.4.50</h1> <p>Released: October 29, 2023</p> <h2>orm</h2> <ul> <li> <p><strong>[orm] [bug]</strong> Fixed fundamental issue which prevented some forms of ORM "annotations" from taking place for subqueries which made use of <code>_sql.Select.join()</code> against a relationship target. These annotations are used whenever a subquery is used in special situations such as within <code>_orm.PropComparator.and_()</code> and other ORM-specific scenarios.</p> <p>References: <a href="https://www.sqlalchemy.org/trac/ticket/10223">#10223</a></p> </li> </ul> <h2>sql</h2> <ul> <li> <p><strong>[sql] [bug]</strong> Fixed issue where using the same bound parameter more than once with <code>literal_execute=True</code> in some combinations with other literal rendering parameters would cause the wrong values to render due to an iteration issue.</p> <p>References: <a href="https://www.sqlalchemy.org/trac/ticket/10142">#10142</a></p> </li> <li> <p><strong>[sql] [bug]</strong> Fixed issue where unpickling of a <code>_schema.Column</code> or other <code>_sql.ColumnElement</code> would fail to restore the correct "comparator" object, which is used to generate SQL expressions specific to the type object.</p> <p>References: <a href="https://www.sqlalchemy.org/trac/ticket/10213">#10213</a></p> </li> </ul> <h2>schema</h2> <ul> <li> <p><strong>[schema] [bug]</strong> Modified the rendering of the Oracle only <code>Identity.order</code> parameter that's part of both <code>Sequence</code> and <code>Identity</code> to only take place for the Oracle backend, and not other backends such as that of PostgreSQL. A future release will rename the <code>Identity.order</code>, <code>Sequence.order</code> and <code>Identity.on_null</code> parameters to Oracle-specific names, deprecating the old names, these parameters only apply to Oracle.</p> <p>References: <a href="https://www.sqlalchemy.org/trac/ticket/10207">#10207</a></p> </li> </ul> <h2>mysql</h2> <ul> <li><strong>[mysql] [usecase]</strong> Updated aiomysql dialect since the dialect appears to be maintained again. Re-added to the ci testing using version 0.2.0.</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/sqlalchemy/sqlalchemy/commits">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> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.
- 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=localhost
PYTHON_POSTGRES_DATABASE=postgres
PYTHON_POSTGRES_PORT=5432
PYTHON_MONGO_USERNAME=username
PYTHON_MONGO_HOST=localhost
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
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%