/perdu

Recycle your code ♻️

Primary LanguageJavaScriptMIT LicenseMIT

Perdu

Perdu is a local and minimalist search engine for Python code. Perdu explores all python scripts and jupyter notebooks to index them with Cherche. It is a very useful tool to search for a piece of code that you have lost somewhere in a notebook.

Installation

pip install git+https://github.com/raphaelsty/perdu

Quick start

You will first need to index documents. The -p parameter allows to choose the set of folders to be indexed.

perdu scan -p .

To start the app, run:

perdu start

The flask app will run by default on the port 5000.

To open the web app, run:

perdu open

You can close the app using ctrl+c.

Index

It is necessary to have launched the application with perdu start to index the documents.

Debug

The application runs in the background and we may be forced to close the process without being able to use ctrl+c. To find the process identifier (PID) Flask:

lsof -i:5000

To force the process to stop:

kill -9 <PID>