Skip to main content

dumb web interface to search/browse indexed text files

Project description

dumb web search

  • index a directory of text files in sqlite database
  • web browse this directory
  • web search this directory with indexed text

how to run

locally

./index.py --docroot /path/to/markdown/dir --database /path/to/database.sqlite index

HTTP_SERVER_BASEURL=/reverse/proxy/subpath HTTP_SERVER_PORT=1234 INDEX_DIR=/path/to/markdown/dir INDEX_DATABASE=/path/to/database.sqlite ./browse.wsgi

in a docker/podman container:

docker run -d -v /path/to/your/markdown/files:/text -v dumbwebsearch-db:/database -e HTTP_SERVER_BASEURL=/reverse/proxy/subpath -p 8000:8000 registry.gitlab.com/hydrargyrum/dumbwebsearch:latest

requirements

  • python3
  • sqlite to index/search text
  • wsgi to expose said app
  • jinja2 + bottle as web framework
  • pandoc

security

  • no authentication: put a reverse proxy in front of it with some login
  • no optimization for performance: put a reverse proxy to prevent hammering
  • pandoc is run to render markdown files, which may have its own problems

what could be better done

  • don't make markdown so much ingrained in this app

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dumbwebsearch-0.3.1.tar.gz (11.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dumbwebsearch-0.3.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file dumbwebsearch-0.3.1.tar.gz.

File metadata

  • Download URL: dumbwebsearch-0.3.1.tar.gz
  • Upload date:
  • Size: 11.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for dumbwebsearch-0.3.1.tar.gz
Algorithm Hash digest
SHA256 b6dd8283ae781102709a93ea6b2f305d59009fd84fe8f2933556a2b3c067fa9c
MD5 38b81b78923d8c00e5ad25e914e521ab
BLAKE2b-256 2e5a39677e9ebd7b371491d00cc30f090f4cb0f1675a3857481f0744a4baa8ed

See more details on using hashes here.

File details

Details for the file dumbwebsearch-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: dumbwebsearch-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for dumbwebsearch-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 04097ca0032f344194f6aa9419547f082f767a1d0009f327be8ee8a2972cface
MD5 c2615af65f4c934d793ae6ed8fd8b1f3
BLAKE2b-256 7be5b62d6dbe1192e9b8cdf0ecad0870822ecc7359a61d262f917c9bd2ce8fd7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page