github-actions[bot] f3f6c40a49
build(deps): bump pymongo from 4.5.0 to 4.6.0 (#304)
Bumps [pymongo](https://github.com/mongodb/mongo-python-driver) from
4.5.0 to 4.6.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/mongodb/mongo-python-driver/releases">pymongo's
releases</a>.</em></p>
<blockquote>
<h2>PyMongo 4.6.0</h2>
<p>Release notes: <a
href="https://www.mongodb.com/community/forums/t/pymongo-4-6-0-released/251866">https://www.mongodb.com/community/forums/t/pymongo-4-6-0-released/251866</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/mongodb/mongo-python-driver/blob/master/doc/changelog.rst">pymongo's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<h2>Changes in Version 4.6</h2>
<p>PyMongo 4.6 brings a number of improvements including:</p>
<ul>
<li>
<p>Added the <code>serverMonitoringMode</code> URI and keyword argument
to :class:<code>~pymongo.mongo_client.MongoClient</code>.</p>
</li>
<li>
<p>Improved client performance and reduced connection requirements in
Function-as-a-service (FaaS)
environments like AWS Lambda, Google Cloud Functions, and Microsoft
Azure Functions.</p>
</li>
<li>
<p>Added the
:attr:<code>pymongo.monitoring.CommandSucceededEvent.database_name</code>
property.</p>
</li>
<li>
<p>Added the
:attr:<code>pymongo.monitoring.CommandFailedEvent.database_name</code>
property.</p>
</li>
<li>
<p>Allow passing a <code>dict</code> to sort/create_index/hint.</p>
</li>
<li>
<p>Added :func:<code>repr</code> support to the write result classes:
:class:<code>~pymongo.results.BulkWriteResult</code>,
:class:<code>~pymongo.results.DeleteResult</code>,
:class:<code>~pymongo.results.InsertManyResult</code>,
:class:<code>~pymongo.results.InsertOneResult</code>,
:class:<code>~pymongo.results.UpdateResult</code>, and
:class:<code>~pymongo.encryption.RewrapManyDataKeyResult</code>. For
example:</p>
<blockquote>
<blockquote>
<blockquote>
<p>client.t.t.insert_one({})
InsertOneResult(ObjectId('65319acdd55bb3a27ab5502b'), acknowledged=True)
client.t.t.insert_many([{} for _ in range(3)])
InsertManyResult([ObjectId('6532f85e826f2b6125d6ce39'),
ObjectId('6532f85e826f2b6125d6ce3a'),
ObjectId('6532f85e826f2b6125d6ce3b')], acknowledged=True)</p>
</blockquote>
</blockquote>
</blockquote>
</li>
<li>
<p>:meth:<code>~pymongo.uri_parser.parse_uri</code> now considers the
delimiting slash (<code>/</code>)
between hosts and connection options optional. For example,
&quot;mongodb://example.com?tls=true&quot; is now a valid URI.</p>
</li>
<li>
<p>Fixed a bug where PyMongo would incorrectly promote all cursors to
exhaust cursors
when connected to load balanced MongoDB clusters or Serverless
clusters.</p>
</li>
<li>
<p>Added the :ref:<code>network-compression-example</code> documentation
page.</p>
</li>
<li>
<p>Added more timeout information to network errors.</p>
</li>
</ul>
<h2>Changes in Version 4.5</h2>
<p>PyMongo 4.5 brings a number of improvements including:</p>
<ul>
<li>Added new helper methods for Atlas Search Index (requires MongoDB
Server 7.0+):
:meth:<code>~pymongo.collection.Collection.list_search_indexes</code>,
:meth:<code>~pymongo.collection.Collection.create_search_index</code>,
:meth:<code>~pymongo.collection.Collection.create_search_indexes</code>,
:meth:<code>~pymongo.collection.Collection.drop_search_index</code>,

:meth:<code>~pymongo.collection.Collection.update_search_index</code></li>
<li>Added :meth:<code>~pymongo.database.Database.cursor_command</code>
and :meth:<code>~pymongo.command_cursor.CommandCursor.try_next</code> to
support
executing an arbitrary command that returns a cursor.</li>
<li><code>cryptography</code> 2.5 or later is now required for
:ref:<code>OCSP</code> support.</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="8e25ce1ca8"><code>8e25ce1</code></a>
BUMP 4.6.0</li>
<li><a
href="a17e412fee"><code>a17e412</code></a>
Updated changelog with timeout info change (<a
href="https://redirect.github.com/mongodb/mongo-python-driver/issues/1417">#1417</a>)</li>
<li><a
href="a09a03e5df"><code>a09a03e</code></a>
PYTHON-3930 Add docs page for network compression (<a
href="https://redirect.github.com/mongodb/mongo-python-driver/issues/1415">#1415</a>)</li>
<li><a
href="4b9c5b9a1e"><code>4b9c5b9</code></a>
PYTHON-3968 Fix mockupdb tox config (<a
href="https://redirect.github.com/mongodb/mongo-python-driver/issues/1416">#1416</a>)</li>
<li><a
href="c146017de1"><code>c146017</code></a>
PYTHON-4012 Adopt more RST static checks (<a
href="https://redirect.github.com/mongodb/mongo-python-driver/issues/1412">#1412</a>)</li>
<li><a
href="8faa910f3c"><code>8faa910</code></a>
PYTHON-3743 Bump minServerVersion for CSFLE deterministic encryption …
(<a
href="https://redirect.github.com/mongodb/mongo-python-driver/issues/1411">#1411</a>)</li>
<li><a
href="06653c9e21"><code>06653c9</code></a>
PYTHON-3926 Add more information to connection errors and timeouts (<a
href="https://redirect.github.com/mongodb/mongo-python-driver/issues/1375">#1375</a>)</li>
<li><a
href="28250580d1"><code>2825058</code></a>
PYTHON-3950 Add PyMongo 3.13 Changelog Entry to Current Branch (<a
href="https://redirect.github.com/mongodb/mongo-python-driver/issues/1410">#1410</a>)</li>
<li><a
href="7bb9a73b2f"><code>7bb9a73</code></a>
PYTHON-3968 Allow pymongo to be installed in tox when C extension fails
to bu...</li>
<li><a
href="58a36e9838"><code>58a36e9</code></a>
PYTHON-4010 Fix test_timeout_kills_cursor_asynchronously (<a
href="https://redirect.github.com/mongodb/mongo-python-driver/issues/1408">#1408</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/mongodb/mongo-python-driver/compare/4.5.0...4.6.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pymongo&package-manager=pip&previous-version=4.5.0&new-version=4.6.0)](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>
2023-11-02 17:18:09 +01:00
2023-10-26 19:06:45 +02:00
2023-10-21 10:58:54 +02:00
2023-10-20 16:36:54 +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%