Linus Sehn
dc7d0982b2
All checks were successful
Deploy Nix Flake / deploy-nix-flake (push) Successful in 1s
|
||
---|---|---|
.gitea/workflows | ||
.vscode | ||
docs | ||
tedective_api | ||
tests | ||
.envrc | ||
.gitignore | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
poetry.lock | ||
pyproject.toml | ||
README.md |
TEDective API
The TEDective API makes use of the OCDS data stored in KuzuDB and Meilisearch, and allows to make requests for certain entities such as organizations, awards, contracts or releases. It can give responses in JSON as well as in react-force-graph-ready format.
Table of Contents
Background
The TEDective project aims to make European public procurement data from Tenders Electronic Daily (TED) explorable for non-experts. This repository contains all Python code used to build the API that on top of KuzuDB with (already converted to OCDSGraph) TED data.
Part of the TEDective Project
Install
This will be available on PyPi soon. Until then you can install it via Nix:
# Install flake into your profile
nix profile install git+https://git.fsfe.org/TEDective/api
app
Alternatively, you can clone this repository and build it via Nix yourself:
git clone https://git.fsfe.org/TEDective/api
cd api
nix-build
result/bin/app
Another way is to use poetry
directly:
poetry install
poetry run app
Usage
🚧 TODO: (probably put the reference to documentation)
Maintainers
Contributing
The easiest way to start developing is to use devenv via
the provided flake.nix
. So, clone this repository and run:
# If you have Nix installed
nix develop --impure
# This will drop you into a shell with all the dependencies installed
# If you want to bring up a meilisearch instance, simply run:
devenv up
Small note: If editing the README, please conform to the standard-readme specification. Also, please ensure that documentation is kept in sync with the code. Please note that the main documentation repository is added to this repository via git-subrepo. To update the documentation, please use the following commands:
git-subrepo pull docs
cd ./docs
# Make your changes
git commit -am "docs: update documentation for new feature"
# Preview your changes
pnpm install
pnpm run dev
# If you're happy with your changes, push them
git-subrepo push docs
License
EUPL-1.2 © 2024 Free Software Foundation Europe e.V.