coleifer / scout Goto Github PK
View Code? Open in Web Editor NEWRESTful search server written in Python, powered by SQLite.
Home Page: http://scout.readthedocs.org/en/latest/
License: MIT License
RESTful search server written in Python, powered by SQLite.
Home Page: http://scout.readthedocs.org/en/latest/
License: MIT License
on running python scout/ /path/to/search-index.db
conn = sqlite3.connect(self.database, timeout=self._timeout,
peewee.OperationalError: unable to open database file
Search Not working for substrings.
Example:
scout.create_document("hello this is just a dummy text","articles")
and searching http://localhost:8000/articles/?q=ello
does not give any result
Is scout a webbased (flask) tool for searching sql lite?
Are there any screen shots or live examples you can share?
Can you help me fix this, I'm getting this error
Traceback (most recent call last): File "/home/jacob/.local/bin/scout", line 11, in <module> load_entry_point('scout==3.0.2', 'console_scripts', 'scout')() File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 476, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2700, in load_entry_point return ep.load() File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2318, in load return self.resolve() File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/home/jacob/.local/lib/python3.6/site-packages/scout/server.py", line 10, in <module> from scout.models import database File "/home/jacob/.local/lib/python3.6/site-packages/scout/models.py", line 14, in <module> from werkzeug import secure_filename ImportError: cannot import name 'secure_filename'
Hello,
Scout allows you to use a global key to get a full access to the API (GET, POST, ...).
It would have been nice to allow public access without requiring the key for read access (GET endpoints) when an key access is configured, eventually with a quota per IP address.
Other solutions: provide a way to generate readonly token for a more robust solution or provide basic auth mecanism
Best regards and thanks for this useful and simple project !
$ docker run -it --rm -p 9004:9004 coleifer/scout
Traceback (most recent call last):
File "/srv/server.py", line 14, in <module>
from gevent.wsgi import WSGIServer
ModuleNotFoundError: No module named 'gevent.wsgi'
I am trying to run this command on python v3:
client.create_index('test')
and I got this error
TypeError: the JSON object must be str, not 'bytes'
Even if I try to use client.get_index('sample') it gives me same error.
Can you help me out with this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.