Dogsheep search index
Project description
dogsheep-beta
Dogsheep search index
Installation
Install this tool like so:
$ pip install dogsheep-beta
Usage
Run the indexer using the dogsheep-beta
command-line tool:
$ dogsheep-beta index dogsheep.db config.yml
The config.yml
file contains details of the databases and tables that should be indexed:
twitter.db:
tweets:
sql: |-
select
tweets.id as key,
'Tweet by @' || users.screen_name as title,
tweets.created_at as timestamp,
tweets.full_text as search_1
from tweets join users on tweets.user = users.id
users:
sql: |-
select
id as key,
name || ' @' || screen_name as title,
created_at as timestamp,
description as search_1
from users
This will create a search_index
table in the dogsheep.db
database populated by data from those SQL queries.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd dogsheep-beta
python3 -mvenv venv
source venv/bin/activate
Or if you are using pipenv
:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dogsheep-beta-0.1a2.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file dogsheep-beta-0.1a2.tar.gz
.
File metadata
- Download URL: dogsheep-beta-0.1a2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 994024f448b5f714b08720d91ee85faddc312450baedd79e4bb656b436cd97bd |
|
MD5 | f3207ada7ac7058d29966283f33a5fb5 |
|
BLAKE2b-256 | 6cda3ae4d922e6de5f4e52890aea13b1be582b80dfbd83884ead945d80095897 |
File details
Details for the file dogsheep_beta-0.1a2-py3-none-any.whl
.
File metadata
- Download URL: dogsheep_beta-0.1a2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4276345de246d298adea6d33d551cb20589e4ad7241dd79171d179e9fc6f33fe |
|
MD5 | f3d4caae8ae1c4241ada2c14d55d6aa8 |
|
BLAKE2b-256 | bbce3d2a6176113c5ecc4a70a87c9e79ea3c645ac3d2a3c11431a81a00e096ba |