Search database stored in .txt file format?

  • Solutions I could think of using Python and Pandas to get the records out and store them Postgres. Then search the database. That would be ideal.

  • Another would be to use javascript to search the text data records without extracting them.
    Not a best practice.

Which brings me to my question: Is there a clean way to extract databases stored in text files using Python?