coleifer/scout — dự án backend — đang có 315 sao GitHub trong nhóm Backend. RESTful search server written in Python, powered by SQLite.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
scout is a restful search server written in python with a focus on using
lightweight components:
search powered by sqlite's full-text search extension
database access coordinated using peewee ORM
web application built with flask framework
Scout aims to be a lightweight, RESTful search server in the spirit of
ElasticSearch, powered by the SQLite full-text search
extension. In addition to search, Scout can be used as a document database,
supporting complex filtering operations. Arbitrary files can be attached to
documents and downloaded through the REST API.
Scout is simple to use, simple to deploy and just works.
Features:
multiple search indexes present in a single database.
Scout requires Python 3.8+ and a version of SQLite compiled with the
FTS5 extension (included by default since SQLite 3.9.0, released 2015). You
can verify FTS5 support by running:
python -c "import sqlite3; sqlite3.connect(':memory:').execute('CREATE VIRTUAL TABLE t USING fts5(x)')"
If this command fails, your SQLite build does not include FTS5 and you will
need to install or compile a version that does.
Scout can be installed from PyPI using pip or from source using git. Should
you install from PyPI you will run the latest version, whereas installing from
git ensures you have the latest changes.
Alternatively, you can run scout using docker and
the provided Dockerfile.
Installation using pip:
pip install scout
You can also install the latest master branch using pip:
If you wish to install from source, first clone the code and run setup.py install:
git clone https://github.com/coleifer/scout.git
cd scout/
pip install .
Using either of the above methods will also ensure the project's Python
dependencies are installed: flask and
peewee.
Check out the documentation for more information about the project.
Running scout
If you installed using pip, you should be able to simply run:
scout /path/to/search-index.db
If you've just got a copy of the source code, you can run:
python scout/ /path/to/search-index.db
Production-ready server
Scout comes with a production-ready WSGI server powered by gevent. To use this
server instead, you can run:
scout_wsgi /path/to/search-index.db
Docker
The Docker image runs Scout on port 9004 (rather than the default 8000)
using the built-in gevent WSGI server. The database path defaults to
/data/search-index.db and is controlled by the SCOUT_DATABASE environment
variable. The /data directory is declared as a volume.
To run scout using docker, you can use the provided Dockerfile or simply pull
the coleifer/scout image:
docker run -d \
--name scout \
-p 9004:9004 \
-v /path/to/data:/data \
ghcr.io/coleifer/scout:latest
# scout is now running on localhost:9004
Note: Always mount a volume to /data (as shown above) to persist your
search index across container restarts.
Có — coleifer/scout phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/coleifer/scout.
coleifer/scout có trang demo không?
Dự án có trang chủ ở http://scout.readthedocs.org/en/latest/. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
coleifer/scout dùng license gì?
coleifer/scout phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
coleifer/scout là gì?
coleifer/scout (coleifer/scout) là dự án Python trên GitHub. Theo mô tả gốc: RESTful search server written in Python, powered by SQLite.
Cùng nhóm Backend còn repo nào?
coleifer/scout thuộc nhóm Backend trên TopGit, cùng 6 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về coleifer/scout ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/coleifer/scout là nguồn chính thức.
Vì sao coleifer/scout được xếp vào nhóm Backend?
TopGit xếp coleifer/scout vào nhóm Backend dựa trên GitHub topics và mô tả của repo (gắn thẻ: "flask", "full-text-search", "python"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về scout?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về scout.