486 Commits

Author SHA1 Message Date
Tristan Nolde
fe7690620a Update src/aki_prj23_transparenzregister/utils/data_extraction/bundesanzeiger.py
Co-authored-by: Philipp Horstenkamp <philipp@horstenkamp.de>
2023-11-11 11:01:17 +01:00
TrisNol
fecf42d75a test: Unit test new KPI extraction 2023-11-11 11:01:17 +01:00
TrisNol
f8a0d58314 feat(data-extraction): Provide KPI table analysis in bundesanzeiger wrapper 2023-11-11 11:01:17 +01:00
TrisNol
815e08a8f1 checkpoint: Transform values to € and normalize column names 2023-11-11 11:01:17 +01:00
TrisNol
ec11ae13aa checkpoint: Parse table into dict of financial data 2023-11-11 11:01:17 +01:00
TrisNol
972fcd155e checkpoint: Normalize HTML tables fetched from Bundesanzeiger 2023-11-11 11:01:17 +01:00
Tristan Nolde
8781d746e7
hotfix: Add missing networkx dependency (#361)
Depyloment on Jupiter is currently broken due to missing `networkx`
dependency:

![image](https://github.com/fhswf/aki_prj23_transparenzregister/assets/56017812/8601fb23-e16b-4986-a52a-36a02c6bea29)

Should be fixed by the changes included
2023-11-10 22:52:18 +01:00
TrisNol
c333ad70c5 hotfix: Add missing networkx dependency 2023-11-10 21:47:34 +01:00
Tim Ronneburg
247719c76f
Feature/visualize verflechtungen (#324) 2023-11-10 19:33:19 +01:00
TrisNol
da72c3d0a8 lint: Format company_elements.py 2023-11-10 19:21:32 +01:00
TrisNol
a1d8e942a9 test: Adapt home.py to run unit tests 2023-11-10 19:20:49 +01:00
Tim
fdbb6b5fd4 Added Graph to Company page again 2023-11-10 18:57:11 +01:00
Tim
e5769b3c25 Added Tests
Co-authored-by: Tristan Nolde <TrisNol@users.noreply.github.com>
2023-11-10 18:56:51 +01:00
Tim
410b690873 Added test 2023-11-10 18:56:51 +01:00
Tim
41af7e2d18 Added test behaviour 2023-11-10 18:56:51 +01:00
Tim
4d2ca3b3e7 Refactored Session handling for Network analysis 2023-11-10 18:56:51 +01:00
Tim
ac46348cc8 Added Dash DAQ 2023-11-10 18:55:13 +01:00
Tim
c38460c740 fixed mypy errors 2023-11-10 18:54:30 +01:00
Tim
f38728450d now ruff confirm 2023-11-10 18:53:47 +01:00
Tim
f2ac0eda91 Added Realtion_count MEthod 2023-11-10 18:53:47 +01:00
Tim
76af89ff32 updated poetry lock 2023-11-10 18:53:32 +01:00
Tim
5b7f82a983 Bug fixes v2 2023-11-10 18:52:13 +01:00
Tim
152743597e Bug fixes 2023-11-10 18:52:13 +01:00
Tim
31d7098d48 Checkpoint commit 2023-11-10 18:52:13 +01:00
Tim
c5721362ac Test Bugs 2023-11-10 18:52:01 +01:00
Tim
4fe97dfd86 Bug fixes 2023-11-10 18:51:44 +01:00
Tim
deee0cd09d Added Datatable 2023-11-10 18:51:44 +01:00
Tim
b594add257 Added more customizing 2023-11-10 18:51:44 +01:00
Tim
30f9e4506f solved errors 2023-11-10 18:50:38 +01:00
Tim
7e8adfafd5 Test Version 2023-11-10 18:50:11 +01:00
Tim
891ed277b6 Added comments, descriptions and cleaned up. 2023-11-10 18:49:09 +01:00
Tim
bcb6df8e5d Added 2d and 3d network to dash 2023-11-10 18:48:51 +01:00
Tim
e45f3a3b98 Added 3D Network 2023-11-10 18:48:18 +01:00
Tim
077846d3be NetworkX experiments 2023-11-10 18:48:18 +01:00
Tim
5f4f732eb2 Added iGraph 2023-11-10 18:48:17 +01:00
TrisNol
5cd03306d6 feat: NetworkX in Plotly Dash 2023-11-10 18:48:17 +01:00
Tim
afb1c70460 added networkX styling 2023-11-10 18:48:17 +01:00
Tim
21c9e99ae3 Extracted Data-Extraction Metrhods into separate Files 2023-11-10 18:48:17 +01:00
Tim
e81b5fb518 Integrated NetworkX graphs into App 2023-11-10 18:46:08 +01:00
Tim
6a313f9803 On branch feature/visualize-verflechtungen 2023-11-10 18:45:26 +01:00
TrisNol
af0578bb00 feat: NetworkX in Plotly Dash 2023-11-10 18:45:26 +01:00
Tim
b9e9475050 added networkX styling 2023-11-10 18:45:25 +01:00
Tim
b06d553f75 Extracted Data-Extraction Metrhods into separate Files 2023-11-10 18:45:25 +01:00
Tim
3301726dea Integrated NetworkX graphs into App 2023-11-10 18:45:25 +01:00
Tim
6585a0ee11 On branch feature/visualize-verflechtungen 2023-11-10 18:45:25 +01:00
github-actions[bot]
d3158c4592
Update pre-commit hooks (#360)
Update versions of pre-commit hooks to latest version.

Co-authored-by: philipp-horstenkamp <philipp-horstenkamp@users.noreply.github.com>
2023-11-10 17:28:22 +00:00
github-actions[bot]
a24086f6e1
build(deps-dev): bump mypy from 1.6.1 to 1.7.0 (#359)
Bumps [mypy](https://github.com/python/mypy) from 1.6.1 to 1.7.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/python/mypy/blob/master/CHANGELOG.md">mypy's
changelog</a>.</em></p>
<blockquote>
<h1>Mypy Release Notes</h1>
<h2>Next release</h2>
<p>Stubgen will now include <code>__all__</code> in its output if it is
in the input file (PR <a
href="https://redirect.github.com/python/mypy/pull/16356">16356</a>).</p>
<h2>Mypy 1.7</h2>
<p>We’ve just uploaded mypy 1.7 to the Python Package Index (<a
href="https://pypi.org/project/mypy/">PyPI</a>). Mypy is a static type
checker for Python. This release includes new features, performance
improvements and bug fixes. You can install it as follows:</p>
<pre><code>python3 -m pip install -U mypy
</code></pre>
<p>You can read the full documentation for this release on <a
href="http://mypy.readthedocs.io">Read the Docs</a>.</p>
<h4>Using TypedDict for <code>**kwargs</code> Typing</h4>
<p>Mypy now has support for using <code>Unpack[...]</code> with a
TypedDict type to annotate <code>**kwargs</code> arguments enabled by
default. Example:</p>
<pre><code># Or 'from typing_extensions import ...'
from typing import TypedDict, Unpack
<p>class Person(TypedDict):
name: str
age: int</p>
<p>def foo(**kwargs: Unpack[Person]) -&gt; None:
...</p>
<p>foo(name=&quot;x&quot;, age=1)  # Ok
foo(name=1)  # Error
</code></pre></p>
<p>The definition of <code>foo</code> above is equivalent to the one
below, with keyword-only arguments <code>name</code> and
<code>age</code>:</p>
<pre><code>def foo(*, name: str, age: int) -&gt; None:
    ...
</code></pre>
<p>Refer to <a href="https://peps.python.org/pep-0692/">PEP 692</a> for
more information. Note that unlike in the current version of the PEP,
mypy always treats signatures with <code>Unpack[SomeTypedDict]</code> as
equivalent to their expanded forms with explicit keyword arguments, and
there aren't special type checking rules for TypedDict arguments.</p>
<p>This was contributed by Ivan Levkivskyi back in 2022 (PR <a
href="https://redirect.github.com/python/mypy/pull/13471">13471</a>).</p>
<h4>TypeVarTuple Support Enabled (Experimental)</h4>
<p>Mypy now has support for variadic generics (TypeVarTuple) enabled by
default, as an experimental feature. Refer to <a
href="https://peps.python.org/pep-0646/">PEP 646</a> for the
details.</p>
<p>TypeVarTuple was implemented by Jared Hance and Ivan Levkivskyi over
several mypy releases, with help from Jukka Lehtosalo.</p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="f6b9972329"><code>f6b9972</code></a>
Remove +dev from version</li>
<li><a
href="62bcae2d9b"><code>62bcae2</code></a>
Fix handling of tuple type context with unpacks (<a
href="https://redirect.github.com/python/mypy/issues/16444">#16444</a>)</li>
<li><a
href="c22294a80b"><code>c22294a</code></a>
Handle TypeVarTupleType when checking overload constraints (<a
href="https://redirect.github.com/python/mypy/issues/16428">#16428</a>)</li>
<li><a
href="8813968abb"><code>8813968</code></a>
Fix type narrowing in lambda expressions (<a
href="https://redirect.github.com/python/mypy/issues/16407">#16407</a>)</li>
<li><a
href="681e54cfe1"><code>681e54c</code></a>
Fix crash on unpack call special-casing (<a
href="https://redirect.github.com/python/mypy/issues/16381">#16381</a>)</li>
<li><a
href="f68f46351e"><code>f68f463</code></a>
Fix file reloading in dmypy with --export-types (<a
href="https://redirect.github.com/python/mypy/issues/16359">#16359</a>)</li>
<li><a
href="5624f401b3"><code>5624f40</code></a>
Fix daemon crash caused by deleted submodule (<a
href="https://redirect.github.com/python/mypy/issues/16370">#16370</a>)</li>
<li><a
href="ad0e183b0d"><code>ad0e183</code></a>
Enable Unpack/TypeVarTuple support (<a
href="https://redirect.github.com/python/mypy/issues/16354">#16354</a>)</li>
<li><a
href="b064a5c183"><code>b064a5c</code></a>
Fix dmypy inspect on Windows (<a
href="https://redirect.github.com/python/mypy/issues/16355">#16355</a>)</li>
<li><a
href="4e30e89648"><code>4e30e89</code></a>
Fix dmypy inspect for namespace packages (<a
href="https://redirect.github.com/python/mypy/issues/16357">#16357</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/python/mypy/compare/v1.6.1...v1.7.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=mypy&package-manager=pip&previous-version=1.6.1&new-version=1.7.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-10 18:08:18 +01:00
dependabot[bot]
2e30657c89
build(deps-dev): bump mypy from 1.6.1 to 1.7.0
Bumps [mypy](https://github.com/python/mypy) from 1.6.1 to 1.7.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v1.6.1...v1.7.0)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-10 16:09:36 +00:00
github-actions[bot]
39debf28f0
Update pre-commit hooks (#356)
Update versions of pre-commit hooks to latest version.

Co-authored-by: philipp-horstenkamp <philipp-horstenkamp@users.noreply.github.com>
2023-11-10 09:54:54 +01:00
4716eb9fe2
Added a frist rollback function on a pending Rollback error. (#346)
Possible fix for #341.
Rolls back stuck SQL sessions.
This only helps against the symptomps not the cause.
2023-11-09 19:48:26 +00:00