Skip to main content

WS Demo for file search

Project description

# 🤙 Aio File Search 😂 #hackyhollidays

## AioHTTP + Preact + Parcel + Websockets

Search your local files through a Browser interface

This is just a demo project on how to integrate WS Streaming responses
into a Preact Web App.


## Install

``` pip install aiofilesearch ```

## Run

``` fsearch ```

* You need to have installed The silver search, and sublime if you want
to open results with it.


## Interesting Parts

- The front side uses preact + parcel bundler. So easy to start!
- The backend part uses asyncio subprocess to launch the ag command and start searching
- Results are streamded from the ag command to the websocket frontend.


## Todo

- Add configuration params


## Screenshot

![alt text](https://github.com/jordic/aiofsearch/raw/master/assets/screenshot.png "Screenshot")

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

aiofilesearch-1.0.1.tar.gz (49.1 kB view hashes)

Uploaded Source

Supported by

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