Skip to content

v3.0.0 #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 110 commits into from
May 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
314f72e
Bump fastapi from 0.111.0 to 0.111.1
dependabot[bot] Jul 15, 2024
85774e6
Merge pull request #121 from investigativedata/dependabot/pip/develop…
simonwoerpel Jul 16, 2024
00cd5b4
Bump structlog from 24.2.0 to 24.4.0
dependabot[bot] Jul 17, 2024
3106992
Bump pytest from 8.2.2 to 8.3.1
dependabot[bot] Jul 22, 2024
3575af5
Merge pull request #123 from investigativedata/dependabot/pip/develop…
simonwoerpel Jul 23, 2024
ac0e503
Merge branch 'develop' into dependabot/pip/develop/pytest-8.3.1
simonwoerpel Jul 23, 2024
8a16298
Merge pull request #124 from investigativedata/dependabot/pip/develop…
simonwoerpel Jul 23, 2024
ef27041
Bump mypy from 1.10.1 to 1.11.0
dependabot[bot] Jul 23, 2024
dc7c639
Merge pull request #125 from investigativedata/dependabot/pip/develop…
simonwoerpel Jul 23, 2024
ea60548
🩹 (views) Pickle everything
simonwoerpel Jul 23, 2024
89a920e
⬆️ anystore 0.1.7
simonwoerpel Jul 23, 2024
261914f
👽️ Move utils to ftmq
simonwoerpel Jul 24, 2024
6a68aa8
Bump pytest from 8.3.1 to 8.3.2
dependabot[bot] Jul 25, 2024
ca93eaf
Merge pull request #126 from investigativedata/dependabot/pip/develop…
simonwoerpel Jul 25, 2024
c01d6a3
♻️ get_cache_key
simonwoerpel Jul 25, 2024
c856ff6
✨ fts search via `ftmqs`
simonwoerpel Jul 25, 2024
7a1aad8
⚡️ make a bit async
simonwoerpel Jul 25, 2024
d299b53
⚡️ (view) Don't fetch inverted adjacents for nested
simonwoerpel Jul 25, 2024
60fc159
📌
simonwoerpel Jul 25, 2024
4df3b35
🔖 Bump version: 2.2.1 → 2.2.2
simonwoerpel Jul 25, 2024
a49eb0c
🐛 (async) Fix caching for async views
simonwoerpel Jul 26, 2024
b1fde33
💚 (make) Fix data build for github test environment
simonwoerpel Jul 26, 2024
03860f7
⚡️ (store) Use global cache for entities
simonwoerpel Jul 26, 2024
c7b66af
⬆️ anystore, ftmq
simonwoerpel Jul 26, 2024
4107dbc
Bump flake8 from 7.1.0 to 7.1.1
dependabot[bot] Aug 5, 2024
ec64ed0
Merge pull request #135 from investigativedata/dependabot/pip/develop…
simonwoerpel Aug 15, 2024
d4dcb93
Bump coverage from 7.6.0 to 7.6.1
dependabot[bot] Aug 15, 2024
6085a2a
Merge pull request #134 from investigativedata/dependabot/pip/develop…
simonwoerpel Aug 15, 2024
664f69c
Bump ftmq from 0.6.11 to 0.6.12
dependabot[bot] Aug 15, 2024
6c3ccee
Merge pull request #127 from investigativedata/dependabot/pip/develop…
simonwoerpel Aug 15, 2024
5716a43
Bump pre-commit from 3.7.1 to 3.8.0
dependabot[bot] Aug 15, 2024
b101aea
Merge pull request #128 from investigativedata/dependabot/pip/develop…
simonwoerpel Aug 15, 2024
b70e605
Bump fastapi from 0.111.1 to 0.112.0
dependabot[bot] Aug 15, 2024
d25df8b
Merge pull request #132 from investigativedata/dependabot/pip/develop…
simonwoerpel Aug 15, 2024
1b18c64
Bump fakeredis from 2.23.3 to 2.23.5
dependabot[bot] Aug 15, 2024
6da3a23
Merge pull request #133 from investigativedata/dependabot/pip/develop…
simonwoerpel Aug 15, 2024
e21f10e
Revert "⚡️ make a bit async"
simonwoerpel Jul 26, 2024
55dc0e5
➕ Add missing test dependency httpx
simonwoerpel Aug 16, 2024
46da97e
🐛 (store) Pickle cached entity
simonwoerpel Aug 16, 2024
adf6dd4
🐛 (views) Add missing request argument
simonwoerpel Aug 16, 2024
67a7dfb
Bump black from 24.4.2 to 24.8.0
dependabot[bot] Aug 16, 2024
7f87b9b
Merge pull request #131 from investigativedata/dependabot/pip/develop…
simonwoerpel Aug 16, 2024
7eb75b2
Bump mypy from 1.11.0 to 1.11.1
dependabot[bot] Aug 16, 2024
20f1b77
Merge pull request #130 from investigativedata/dependabot/pip/develop…
simonwoerpel Aug 16, 2024
b302a65
Bump httpx from 0.27.0 to 0.27.2
dependabot[bot] Aug 27, 2024
3d3c246
Bump fastapi from 0.112.0 to 0.113.0
dependabot[bot] Sep 5, 2024
02afd98
Merge pull request #144 from investigativedata/dependabot/pip/develop…
simonwoerpel Sep 6, 2024
7b872d6
Merge branch 'develop' into dependabot/pip/develop/httpx-0.27.2
simonwoerpel Sep 6, 2024
eb3d45f
Merge pull request #143 from investigativedata/dependabot/pip/develop…
simonwoerpel Sep 6, 2024
6ceb4f4
⬆️ all the things
simonwoerpel Sep 6, 2024
897d802
Merge branch 'main' into develop
simonwoerpel Sep 6, 2024
b69b3bc
⚡️ Tweak cache decoration
simonwoerpel Sep 6, 2024
b31c968
Bump anystore from 0.1.10 to 0.1.11
dependabot[bot] Sep 9, 2024
5b283fd
Bump pytest-env from 1.1.3 to 1.1.4
dependabot[bot] Sep 9, 2024
606d9ec
Merge pull request #148 from investigativedata/dependabot/pip/develop…
simonwoerpel Sep 10, 2024
225b3df
Merge branch 'develop' into dependabot/pip/develop/anystore-0.1.11
simonwoerpel Sep 10, 2024
d0b9ad2
Merge pull request #147 from investigativedata/dependabot/pip/develop…
simonwoerpel Sep 10, 2024
e661034
Bump fastapi from 0.113.0 to 0.115.0
dependabot[bot] Sep 18, 2024
49e27e2
Merge pull request #153 from investigativedata/dependabot/pip/develop…
simonwoerpel Sep 30, 2024
b90773c
Bump pytest-env from 1.1.4 to 1.1.5
dependabot[bot] Sep 30, 2024
2bf4de6
Bump pytest from 8.3.2 to 8.3.3
dependabot[bot] Sep 30, 2024
19ce6e5
Bump black from 24.8.0 to 24.10.0
dependabot[bot] Oct 8, 2024
c6fae17
Bump pre-commit from 3.8.0 to 4.0.1
dependabot[bot] Oct 8, 2024
3aaf0e6
Bump pytest-cov from 5.0.0 to 6.0.0
dependabot[bot] Oct 30, 2024
4ca226c
Bump anystore from 0.1.11 to 0.1.13
dependabot[bot] Nov 6, 2024
157f7f6
Merge pull request #172 from investigativedata/dependabot/pip/develop…
simonwoerpel Nov 12, 2024
ed8ff30
Merge branch 'develop' into dependabot/pip/develop/pytest-cov-6.0.0
simonwoerpel Nov 12, 2024
32d33a2
Merge pull request #170 from investigativedata/dependabot/pip/develop…
simonwoerpel Nov 12, 2024
5faac46
Bump fakeredis from 2.24.1 to 2.26.1
dependabot[bot] Nov 12, 2024
73ba5f7
Bump pyicu from 2.13.1 to 2.14
dependabot[bot] Nov 12, 2024
697aefe
Merge pull request #169 from investigativedata/dependabot/pip/develop…
simonwoerpel Nov 12, 2024
aefeb1e
Merge branch 'develop' into dependabot/pip/develop/fakeredis-2.26.1
simonwoerpel Nov 12, 2024
b21b5c2
Merge pull request #168 from investigativedata/dependabot/pip/develop…
simonwoerpel Nov 12, 2024
9d45ca8
📌
simonwoerpel Nov 12, 2024
8c18329
Bump coverage from 7.6.4 to 7.6.8
dependabot[bot] Nov 25, 2024
b67f93e
Bump httpx from 0.27.2 to 0.28.0
dependabot[bot] Nov 28, 2024
d4812d8
Merge pull request #178 from investigativedata/dependabot/pip/develop…
simonwoerpel Nov 29, 2024
e842f15
Merge branch 'develop' into dependabot/pip/develop/coverage-7.6.8
simonwoerpel Nov 29, 2024
3d43ccd
Merge pull request #177 from investigativedata/dependabot/pip/develop…
simonwoerpel Nov 29, 2024
a30a4e2
Merge branch 'develop' into dependabot/pip/develop/pre-commit-4.0.1
simonwoerpel Nov 29, 2024
4850cb0
Merge pull request #157 from investigativedata/dependabot/pip/develop…
simonwoerpel Nov 29, 2024
988923b
Merge branch 'develop' into dependabot/pip/develop/pytest-8.3.3
simonwoerpel Nov 29, 2024
7e7bb34
Merge pull request #149 from investigativedata/dependabot/pip/develop…
simonwoerpel Nov 29, 2024
d18d613
Merge branch 'develop' into dependabot/pip/develop/pytest-env-1.1.5
simonwoerpel Nov 29, 2024
ce0c64b
Merge pull request #152 from investigativedata/dependabot/pip/develop…
simonwoerpel Nov 29, 2024
c95cc66
Bump fastapi from 0.115.4 to 0.115.5
dependabot[bot] Nov 29, 2024
9868956
Merge branch 'develop' into dependabot/pip/develop/black-24.10.0
simonwoerpel Nov 29, 2024
06ac5ed
Merge pull request #156 from investigativedata/dependabot/pip/develop…
simonwoerpel Nov 29, 2024
a218c89
Merge branch 'develop' into dependabot/pip/develop/fastapi-0.115.5
simonwoerpel Nov 29, 2024
0e3bc90
Merge pull request #173 from investigativedata/dependabot/pip/develop…
simonwoerpel Nov 29, 2024
86bd469
📌 Fix poetry deps
simonwoerpel Nov 29, 2024
94077d6
♻️ ftmstore_fastapi -> ftmq_api
simonwoerpel Nov 29, 2024
12c8c5b
🧐 Add async test script
simonwoerpel Nov 29, 2024
793810e
Bump pytest from 8.3.3 to 8.3.4
dependabot[bot] Dec 3, 2024
aeafc18
Merge pull request #180 from investigativedata/dependabot/pip/develop…
simonwoerpel Dec 4, 2024
9a85471
🚧 Tweaks
simonwoerpel Apr 28, 2025
4360b4b
⬆️ All the things
simonwoerpel May 5, 2025
eabcd23
👽️ (query) Adjust schema filters
simonwoerpel May 5, 2025
7d10f15
✨ Add similar endpoint, drop Resolver
simonwoerpel May 5, 2025
15eace0
✨ (settings) Switch to pydantic_settings
simonwoerpel May 5, 2025
f807c2f
📦 (docker) Fix base image and compose
simonwoerpel May 5, 2025
fef0d2e
⚡️ (serialization) Simplify Dataset / Catalog responses
simonwoerpel May 5, 2025
73e216e
⬆️ ftmq-search v0.0.3
simonwoerpel May 5, 2025
c77ade8
🩹 (make) Tweak env vars
simonwoerpel May 5, 2025
4b4856a
👷 (github/python) Add python 3.13 to tests
simonwoerpel May 5, 2025
5a0e107
📄 Switch to AGPLv3+
simonwoerpel May 5, 2025
533af34
🔖 Bump version: 2.2.2 → 3.0.0
simonwoerpel May 5, 2025
e509bd0
🎉 Documentation
simonwoerpel May 5, 2025
625d817
💚 (github/Docker) Fix image repo
simonwoerpel May 5, 2025
7de7d99
Merge branch 'main' into develop
simonwoerpel May 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 2.2.1
current_version = 3.0.0
commit = True
tag = True
message = 🔖 Bump version: {current_version} → {new_version}
Expand All @@ -8,4 +8,4 @@ message = 🔖 Bump version: {current_version} → {new_version}

[bumpversion:file:pyproject.toml]

[bumpversion:file:ftmstore_fastapi/__init__.py]
[bumpversion:file:ftmq_api/__init__.py]
2 changes: 1 addition & 1 deletion .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/investigativedata/ftmstore-fastapi
images: ghcr.io/dataresearchcenter/ftmq-api
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
python-version: ["3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -67,4 +67,4 @@ jobs:
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: "run-3.11,run-3.12"
carryforward: "run-3.11,run-3.12,run-3.13"
17 changes: 7 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# * Run "pre-commit install".
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -20,24 +20,24 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
rev: v3.19.1
hooks:
- id: pyupgrade
args: [ "--py310-plus" ]
args: [ "--py311-plus" ]

- repo: https://github.com/MarcoGorelli/absolufy-imports
rev: v0.3.1
hooks:
- id: absolufy-imports

- repo: https://github.com/pycqa/isort
rev: 5.13.2
rev: 6.0.1
hooks:
- id: isort
args: ["--profile", "black"]

- repo: https://github.com/psf/black
rev: 24.4.2
rev: 25.1.0
hooks:
- id: black

Expand All @@ -50,7 +50,7 @@ repos:
exclude: (test_[\w]+\.py)$

- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell
exclude: (test_[\w]+\.py|\.csv|\.json|\.lock)$
Expand All @@ -68,10 +68,7 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/python-poetry/poetry
rev: 1.8.0
rev: 2.1.3
hooks:
- id: poetry-check
- id: poetry-lock
args: ["--no-update"]
- id: poetry-export
args: ["--dev", "-f", "requirements.txt", "-o", "requirements.txt"]
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ghcr.io/investigativedata/ftm-docker:latest
FROM ghcr.io/dataresearchcenter/ftmq:latest

COPY ftmstore_fastapi /app/ftmstore_fastapi
COPY ftmq_api /app/ftmq_api
COPY setup.py /app/setup.py
COPY pyproject.toml /app/pyproject.toml
COPY README.md /app/README.md
Expand All @@ -11,7 +11,7 @@ RUN pip install .

USER 1000

ENV FTM_STORE_URI=sqlite:////data/followthemoney.store
ENV CATALOG=/data/catalog.json
ENV NOMENKLATURA_DB_URL=sqlite:////data/nomenklatura.db
ENV FTMQ_API_CATALOG=/data/catalog.json

ENTRYPOINT ["gunicorn", "ftmstore_fastapi.api:app", "--bind", "0.0.0.0:8000", "--worker-class", "uvicorn.workers.UvicornWorker"]
ENTRYPOINT ["gunicorn", "ftmq_api.api:app", "--bind", "0.0.0.0:8000", "--worker-class", "uvicorn.workers.UvicornWorker"]
149 changes: 68 additions & 81 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007

Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

Preamble

The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.

The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
software for all its users.

When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
Expand All @@ -26,44 +24,34 @@ them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.

Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.

A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.

The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.

An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.

The precise terms and conditions for copying, distribution and
modification follow.
Expand All @@ -72,7 +60,7 @@ modification follow.

0. Definitions.

"This License" refers to version 3 of the GNU General Public License.
"This License" refers to version 3 of the GNU Affero General Public License.

"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
Expand Down Expand Up @@ -549,35 +537,45 @@ to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

13. Use with the GNU Affero General Public License.
13. Remote Network Interaction; Use with the GNU General Public License.

Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.

Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.

14. Revised Versions of this License.

The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.

If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

Expand Down Expand Up @@ -635,40 +633,29 @@ the "copyright" line and a pointer to where the full notice is found.
Copyright (C) <year> <name of author>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
GNU Affero General Public License for more details.

You should have received a copy of the GNU General Public License
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.

You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.

The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
31 changes: 18 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
export LOG_LEVEL ?= info
export COMPOSE ?= docker-compose.yml
export FTM_STORE_URI = sqlite:///followthemoney.store
export NOMENKLATURA_DB_URL = sqlite:///nomenklatura.db

api: followthemoney.store
CATALOG=./tests/fixtures/catalog.json DEBUG=1 uvicorn ftmstore_fastapi.api:app --reload --port 5000
api: nomenklatura.db
FTMQ_API_CATALOG=./tests/fixtures/catalog.json DEBUG=1 uvicorn ftmq_api.api:app --reload --port 5000

followthemoney.store:
poetry run ftmq --store-dataset ec_meetings -i ./tests/fixtures/ec_meetings.ftm.json -o $(FTM_STORE_URI)
poetry run ftmq --store-dataset eu_authorities -i ./tests/fixtures/eu_authorities.ftm.json -o $(FTM_STORE_URI)
poetry run ftmq --store-dataset gdho -i ./tests/fixtures/gdho.ftm.json -o $(FTM_STORE_URI)
nomenklatura.db:
poetry run ftmq -i ./tests/fixtures/ec_meetings.ftm.json -o $(NOMENKLATURA_DB_URL)
poetry run ftmq -i ./tests/fixtures/eu_authorities.ftm.json -o $(NOMENKLATURA_DB_URL)
poetry run ftmq -i ./tests/fixtures/gdho.ftm.json -o $(NOMENKLATURA_DB_URL)
cat ./tests/fixtures/*.ftm.json | poetry run ftmqs transform | poetry run ftmqs --uri $(NOMENKLATURA_DB_URL) index

test: followthemoney.store
poetry run pytest -s --cov=ftmstore_fastapi --cov-report lcov -v
test: nomenklatura.db
poetry run pytest -s --cov=ftmq_api --cov-report lcov -v

typecheck:
# pip install types-python-jose
# pip install types-passlib
# pip install pandas-stubs
poetry run mypy ftmstore_fastapi
poetry run mypy ftmq_api

lint:
poetry run flake8 ftmstore_fastapi --count --select=E9,F63,F7,F82 --show-source --statistics
poetry run flake8 ftmstore_fastapi --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
poetry run flake8 ftmq_api --count --select=E9,F63,F7,F82 --show-source --statistics
poetry run flake8 ftmq_api --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

docker:
docker-compose -f $(COMPOSE) up -d
Expand All @@ -30,4 +31,8 @@ redis:
docker run -p 6379:6379 redis

clean:
rm -rf followthemoney.store
rm -rf nomenklatura.db

documentation:
mkdocs build
aws --profile nbg1 --endpoint-url https://s3.investigativedata.org s3 sync ./site s3://docs.investigraph.dev/lib/ftmq-api
10 changes: 10 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FTMQ, (C) 2023 Simon Wörpel
FTMQ, (C) 2024-2025 investigativedata.io

This product includes software developed at investigativedata.io
(https://investigativedata.io)

FTMQ contains unmodified subcomponents too with separate copyright notices
and license terms. Your use of the source code for these subcomponents is
subject to the terms and conditions of GNU Affero General Public License 3.0 or
later.
Loading