dependabot[bot] eeddfe91e6
build(deps): bump actions/setup-python from 2 to 4 (#242)
Bumps [actions/setup-python](https://github.com/actions/setup-python)
from 2 to 4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/setup-python/releases">actions/setup-python's
releases</a>.</em></p>
<blockquote>
<h2>v4.0.0</h2>
<h3>What's Changed</h3>
<ul>
<li>Support for <code>python-version-file</code> input: <a
href="https://redirect.github.com/actions/setup-python/issues/336">#336</a></li>
</ul>
<p>Example of usage:</p>
<pre lang="yaml"><code>- uses: actions/setup-python@v4
  with:
python-version-file: '.python-version' # Read python version from a file
- run: python my_script.py
</code></pre>
<p>There is no default python version for this <code>setup-python</code>
major version, the action requires to specify either
<code>python-version</code> input or <code>python-version-file</code>
input. If the <code>python-version</code> input is not specified the
action will try to read required version from file from
<code>python-version-file</code> input.</p>
<ul>
<li>Use pypyX.Y for PyPy <code>python-version</code> input: <a
href="https://redirect.github.com/actions/setup-python/issues/349">#349</a></li>
</ul>
<p>Example of usage:</p>
<pre lang="yaml"><code>- uses: actions/setup-python@v4
  with:
    python-version: 'pypy3.9' # pypy-X.Y kept for backward compatibility
- run: python my_script.py
</code></pre>
<ul>
<li>
<p><code>RUNNER_TOOL_CACHE</code> environment variable is equal
<code>AGENT_TOOLSDIRECTORY</code>: <a
href="https://redirect.github.com/actions/setup-python/issues/338">#338</a></p>
</li>
<li>
<p>Bugfix: create missing <code>pypyX.Y</code> symlinks: <a
href="https://redirect.github.com/actions/setup-python/issues/347">#347</a></p>
</li>
<li>
<p><code>PKG_CONFIG_PATH</code> environment variable: <a
href="https://redirect.github.com/actions/setup-python/issues/400">#400</a></p>
</li>
<li>
<p>Added <code>python-path</code> output: <a
href="https://redirect.github.com/actions/setup-python/issues/405">#405</a>
<code>python-path</code> output contains Python executable path.</p>
</li>
<li>
<p>Updated <code>zeit/ncc</code> to <code>vercel/ncc</code> package: <a
href="https://redirect.github.com/actions/setup-python/issues/393">#393</a></p>
</li>
<li>
<p>Bugfix: fixed output for prerelease version of poetry: <a
href="https://redirect.github.com/actions/setup-python/issues/409">#409</a></p>
</li>
<li>
<p>Made <code>pythonLocation</code> environment variable consistent for
Python and PyPy: <a
href="https://redirect.github.com/actions/setup-python/issues/418">#418</a></p>
</li>
<li>
<p>Bugfix for <code>3.x-dev</code> syntax: <a
href="https://redirect.github.com/actions/setup-python/issues/417">#417</a></p>
</li>
<li>
<p>Other improvements: <a
href="https://redirect.github.com/actions/setup-python/issues/318">#318</a>
<a
href="https://redirect.github.com/actions/setup-python/issues/396">#396</a>
<a
href="https://redirect.github.com/actions/setup-python/issues/384">#384</a>
<a
href="https://redirect.github.com/actions/setup-python/issues/387">#387</a>
<a
href="https://redirect.github.com/actions/setup-python/issues/388">#388</a></p>
</li>
</ul>
<h2>v3.1.4</h2>
<h2>What's Changed</h2>
<p>In the scope of this patch release, the warning for deprecating
Python 2.x was added in <a
href="https://redirect.github.com/actions/setup-python/pull/674">actions/setup-python#674</a>
by <a
href="https://github.com/dmitry-shibanov"><code>@​dmitry-shibanov</code></a></p>
<p>For more information, check out <a
href="https://redirect.github.com/actions/setup-python/issues/672">actions/setup-python#672</a></p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="65d7f2d534"><code>65d7f2d</code></a>
Add range validation for toml files (<a
href="https://redirect.github.com/actions/setup-python/issues/726">#726</a>)</li>
<li><a
href="f97b83114c"><code>f97b831</code></a>
Bump word-wrap from 1.2.3 to 1.2.4 (<a
href="https://redirect.github.com/actions/setup-python/issues/702">#702</a>)</li>
<li><a
href="61a6322f88"><code>61a6322</code></a>
Fix typos found by codespell (<a
href="https://redirect.github.com/actions/setup-python/issues/650">#650</a>)</li>
<li><a
href="ea5b57fccc"><code>ea5b57f</code></a>
Bump semver from 7.3.8 to 7.5.2 (<a
href="https://redirect.github.com/actions/setup-python/issues/692">#692</a>)</li>
<li><a
href="014d32a830"><code>014d32a</code></a>
Bump tough-cookie and <code>@​azure/ms-rest-js</code> (<a
href="https://redirect.github.com/actions/setup-python/issues/697">#697</a>)</li>
<li><a
href="c16c4b8d18"><code>c16c4b8</code></a>
Fix pipenv jobs (<a
href="https://redirect.github.com/actions/setup-python/issues/699">#699</a>)</li>
<li><a
href="0d5da6a89a"><code>0d5da6a</code></a>
Read python version from pyproject.toml (fix <a
href="https://redirect.github.com/actions/setup-python/issues/542">#542</a>)
(<a
href="https://redirect.github.com/actions/setup-python/issues/669">#669</a>)</li>
<li><a
href="3f824b7ca6"><code>3f824b7</code></a>
remove python 2.7 from the tests (<a
href="https://redirect.github.com/actions/setup-python/issues/687">#687</a>)</li>
<li><a
href="bd6b4b6205"><code>bd6b4b6</code></a>
Add warning for python 2.7 (<a
href="https://redirect.github.com/actions/setup-python/issues/673">#673</a>)</li>
<li><a
href="0cbcb9a3d7"><code>0cbcb9a</code></a>
Merge pull request <a
href="https://redirect.github.com/actions/setup-python/issues/668">#668</a>
from akv-platform/disallow-implicit-dependencies</li>
<li>Additional commits viewable in <a
href="https://github.com/actions/setup-python/compare/v2...v4">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=actions/setup-python&package-manager=github_actions&previous-version=2&new-version=4)](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>
2023-10-19 19:26:10 +02:00
2023-10-16 19:54:24 +02:00
2023-10-16 19:54:24 +02:00

aki_prj23_transparenzregister

python Actions status Ruff pre-commit Checked with mypy Documentation Status Code style: black

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
No description provided
Readme 138 MiB
Languages
Jupyter Notebook 84.5%
HTML 12.1%
Python 3.3%