searxng/searx/data
Markus Heiser 848c8d0544
[mod] data: implement a simple currencies (SQL) database (#4836)
To reduce the memory footprint, this patch no longer loads the JSON data
completely into memory.  Instead, there is an SQL database based on
`ExpireCacheSQLite`.

The class CurrenciesDB is a simple DB application that encapsulates the
DB (queries and initialization) and provides convenient methods like
`name_to_iso4217` and `iso4217_to_name`.

Related:

- https://github.com/searxng/searxng/discussions/1892
- https://github.com/searxng/searxng/pull/3458#issuecomment-2900807671
- https://github.com/searxng/searxng/pull/4650

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2025-05-25 10:40:57 +02:00
..
__init__.py [mod] data: implement a simple currencies (SQL) database (#4836) 2025-05-25 10:40:57 +02:00
ahmia_blacklist.txt [data] update searx.data - update_ahmia_blacklist.py (#4739) 2025-05-09 07:09:00 +02:00
core.py [mod] data: implement a simple currencies (SQL) database (#4836) 2025-05-25 10:40:57 +02:00
currencies.json [data] update searx.data - update_currencies.py (#4740) 2025-05-09 07:08:26 +02:00
currencies.py [mod] data: implement a simple currencies (SQL) database (#4836) 2025-05-25 10:40:57 +02:00
engine_descriptions.json [data] update searx.data - update_engine_descriptions.py (#4742) 2025-05-09 07:06:52 +02:00
engine_traits.json [data] update searx.data - update_engine_traits.py (#4741) 2025-05-09 07:07:33 +02:00
external_bangs.json [data] update searx.data - update_external_bangs.py 2025-04-29 07:06:10 +02:00
external_urls.json
lid.176.ftz
locales.json [l10n] update translations from Weblate 2025-01-10 08:13:22 +01:00
osm_keys_tags.json [data] update searx.data - make data.all 2025-01-13 08:02:01 +01:00
useragents.json [data] update searx.data - update_firefox_version.py 2025-04-29 07:06:26 +02:00
wikidata_units.json [data] update searx.data - update_wikidata_units.py (#4738) 2025-05-09 07:09:58 +02:00