- A simple RESTful API built with Django and Django REST Framework (DRF) for analyzing strings. It supports storing analyzed strings, filtering them via query parameters or natural language queries, retrieving individual analyses, and deleting entries.
- POST /strings/: Analyze and store a new string (computes length, palindrome check, unique characters, word count, SHA256 hash, and character frequency).
- GET /strings/: Retrieve all strings or filter by properties (e.g., ?is_palindrome=true&word_count=2).
- GET /strings/filter-by-natural-language/: Filter using natural language queries (e.g., ?query=all single word palindromic strings).
- GET /strings/{string_value}/: Retrieve analysis for a specific string.
- DELETE /strings/{string_value}/: Delete a specific string.
- In-memory storage for simplicity (non-persistent; data lost on restart).
- python -m venv venv
- source venv/bin/activate # On Windows: venv\Scripts\activate
- pip install -r requirements.txt