{"id":46044101,"url":"https://github.com/kshula/einstein-ai","last_synced_at":"2026-03-01T07:05:51.608Z","repository":{"id":236992775,"uuid":"793584279","full_name":"kshula/Einstein-AI","owner":"kshula","description":"Einstein AI Assistant","archived":false,"fork":false,"pushed_at":"2024-04-29T13:54:02.000Z","size":457,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-29T15:03:34.303Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kshula.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-29T13:51:15.000Z","updated_at":"2024-04-29T15:03:37.836Z","dependencies_parsed_at":"2024-05-03T20:01:45.700Z","dependency_job_id":null,"html_url":"https://github.com/kshula/Einstein-AI","commit_stats":null,"previous_names":["kshula/einstein-ai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kshula/Einstein-AI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshula%2FEinstein-AI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshula%2FEinstein-AI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshula%2FEinstein-AI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshula%2FEinstein-AI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kshula","download_url":"https://codeload.github.com/kshula/Einstein-AI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshula%2FEinstein-AI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29963120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T06:55:38.174Z","status":"ssl_error","status_checked_at":"2026-03-01T06:53:04.810Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-03-01T07:05:49.583Z","updated_at":"2026-03-01T07:05:51.600Z","avatar_url":"https://github.com/kshula.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Einstein AI Assistant\n\nEinstein is an AI assistant built in Python that can perform various tasks based on user commands. It uses natural language processing (NLP) for interpreting input and executing actions accordingly.\n\n## Features\n\n- **Natural Language Understanding (NLU)**: Parses user input to extract actions and targets using part-of-speech tagging.\n- **Action Execution**: Executes corresponding actions based on parsed commands, such as opening websites, playing music, managing tasks, and more.\n- **Database Interaction**: Supports CRUD (Create, Read, Update, Delete) operations for managing books, recipes, tasks, notes, movies, music, contacts, and quotes in a SQLite database.\n- **Modular Architecture**: Organized into separate modules (`language`, `action_executor`, and `database`) for better code structure and maintainability.\n  \n## Usage\n\n1. **Setup**:\n   - Ensure Python 3.x is installed on your system.\n   - Install required libraries using `pip`:\n     ```bash\n     pip install nltk newsapi-python sqlite3\n     ```\n\n2. **Configuration**:\n   - Obtain a News API key from [NewsAPI](https://newsapi.org/) and update `api_key.py` with your key.\n   - Customize the `dictionary` in `list.py` to define supported commands.\n\n3. **Execution**:\n   - Run `main.py` to start the Einstein AI assistant.\n   - Enter commands in natural language (e.g., \"Open Google\", \"Add a book\").\n\n4. **Supported Actions**:\n   - **Open**: Open specific websites (e.g., Google, YouTube).\n   - **Play**: Play music or movies.\n   - **Create**: Create folders.\n   - **Get**: Fetch news headlines, books, recipes, tasks, notes, movies, music, contacts, or quotes.\n   - **Add**: Add new entries to the database (e.g., books, recipes, tasks).\n   - **Update**: Update existing entries in the database (e.g., update a book).\n   - **Delete**: Delete entries from the database (e.g., delete a task).\n\n## File Structure\n\n- `brain.py`: Entry point for the Einstein AI assistant.\n- `language.py`: Module for natural language processing and interpretation.\n- `action_executor.py`: Module for executing actions based on interpreted commands.\n- `database.py`: Module for interacting with the SQLite database.\n- `api_key.py`: Stores API keys (e.g., NewsAPI key).\n- `list.py`: Defines the dictionary mapping commands to actions.\n- `data/brain.db`: SQLite database file for storing persistent data.\n\n## Contributions\n\nContributions to improve the functionality and code quality of this project are welcome! If you have any suggestions, feel free to open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkshula%2Feinstein-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkshula%2Feinstein-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkshula%2Feinstein-ai/lists"}