Skip to main content

Image Searching For Flask and Flask-SQLAlchemy.

Project description

https://img.shields.io/pypi/v/flask_image_search.svg CI/CD Build status Documentation Status

Flask Image Search is an extension for Flask that adds content-based image search to a Flask + Flask-SQLAlchemy app. Features are extracted with a PyTorch CNN and stored alongside your model rows; queries are ranked by L2 distance.

Features

  • Works with Flask-SQLAlchemy — search your database directly.

  • Indexes update automatically when rows are added, edited, or deleted.

  • Pluggable storage backends: works on any SQL dialect; opts into sqlite-vec or pgvector when available for ANN-accelerated KNN.

Install

pip install flask-image-search

See the documentation for usage, backend options, and the migration guide from 1.x.

Development

Requires Python 3.9+ and pip 25.1+:

pip install -e . --group dev
pre-commit install --hook-type pre-commit --hook-type pre-push

Common tasks (poe --help lists everything):

poe test          # run tests
poe lint          # ruff check
poe docs          # live-reload docs server
poe example       # run the demo Flask app

Cutting a release:

bump-my-version bump patch    # or: minor / major
git push --tags               # CI publishes to PyPI

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

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

flask_image_search-2.0.0rc1.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

flask_image_search-2.0.0rc1-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file flask_image_search-2.0.0rc1.tar.gz.

File metadata

  • Download URL: flask_image_search-2.0.0rc1.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for flask_image_search-2.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 db3c55c6c73704a54d11d9a1b036f4358b92a3d3c988f1f1638b4c887143a6fc
MD5 a46522a243a08aec2d044fb180b5f61d
BLAKE2b-256 af289db9f25fd6a01a26bdff4e48ecfd724ac8e24d25d6cf180b4d34379508ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for flask_image_search-2.0.0rc1.tar.gz:

Publisher: action-ci-cd.yml on hananf11/flask_image_search

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flask_image_search-2.0.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for flask_image_search-2.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 abff037ca92fefe1b6050857532db7ff370ba5a9b7cb8c1a3a71b28db28c5a08
MD5 f389469f4cdadfc9192ab0816605fd9e
BLAKE2b-256 8641ad539eec1ef91323d4ba546eeae6f0f423bf4690241bb49e9d25d4f2f4ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for flask_image_search-2.0.0rc1-py3-none-any.whl:

Publisher: action-ci-cd.yml on hananf11/flask_image_search

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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