{"id":25719191,"url":"https://github.com/tameronline/ollamalocal","last_synced_at":"2026-06-29T02:30:57.201Z","repository":{"id":279431826,"uuid":"938779501","full_name":"TamerOnLine/ollamalocal","owner":"TamerOnLine","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-25T14:12:25.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-21T14:50:26.659Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TamerOnLine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-02-25T13:45:01.000Z","updated_at":"2025-02-25T14:12:29.000Z","dependencies_parsed_at":"2025-02-25T15:20:21.412Z","dependency_job_id":null,"html_url":"https://github.com/TamerOnLine/ollamalocal","commit_stats":null,"previous_names":["tameronline/ollamalocal"],"tags_count":0,"template":false,"template_full_name":"TamerOnLine/venv","purl":"pkg:github/TamerOnLine/ollamalocal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2Follamalocal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2Follamalocal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2Follamalocal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2Follamalocal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TamerOnLine","download_url":"https://codeload.github.com/TamerOnLine/ollamalocal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2Follamalocal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34911134,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-02-25T16:37:10.967Z","updated_at":"2026-06-29T02:30:57.183Z","avatar_url":"https://github.com/TamerOnLine.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ollamalocal\n\n## 🚀 Overview\n`ollamalocal` is a lightweight and automated environment setup script designed to streamline the process of creating and activating a virtual environment across different operating systems (**Windows, Linux, and macOS**). This project ensures that Python dependencies are properly managed and integrated with your development workflow. It also includes **LangChain Ollama** support to interact with AI models seamlessly.\n\n## ✨ Features\n- **Cross-Platform Support**: Works seamlessly on Windows (`.bat`, `.ps1`), Linux (`.sh`), and macOS (`.sh`).\n- **Automated Virtual Environment Setup**: Detects Python installation, creates a virtual environment, and activates it.\n- **Pip Package Management**: Ensures the latest version of pip and installs dependencies from `requirements.txt`.\n- **Integrated with VS Code**: Provides a `.code-workspace` file for one-click environment activation in Visual Studio Code.\n- **Supports LangChain Ollama**: Easily interact with the `mistral` model for AI-driven responses.\n\n---\n\n## 📥 Installation\n\n### 🛠 Prerequisites\n- **Python 3.6+** (Check installation using: `python --version`)\n- **Git** (Optional) for cloning the project\n- **VS Code** (Optional) for an enhanced development experience\n\n### 🔧 Setup Instructions\n\n#### **Windows**\n1. **Using Command Prompt:**\n   ```cmd\n   cd path/to/ollamalocal\n   activate_project.bat\n   ```\n2. **Using PowerShell:**\n   ```powershell\n   cd path/to/ollamalocal\n   .\\activate_project.ps1\n   ```\n\n#### **Linux/macOS**\n1. Grant execution permission:\n   ```bash\n   cd path/to/ollamalocal\n   chmod +x activate_project.sh\n   ```\n2. Run the script:\n   ```bash\n   ./activate_project.sh\n   ```\n\n---\n\n## 📂 Project Structure\n```\nollamalocal/\n├── README.md                # Documentation\n├── LICENSE                  # License file\n├── activate_project.bat     # Windows CMD script\n├── activate_project.ps1     # Windows PowerShell script\n├── activate_project.sh      # Linux/macOS Bash script\n├── requirements.txt         # List of dependencies\n├── workspace.code-workspace # VS Code workspace configuration\n├── src/\n│   ├── __init__.py\n│   └── main.py              # Main script for interacting with Ollama LLM\n├── tests/\n│   ├── __init__.py\n│   └── test_example.py      # Basic test case\n└── .github/\n    └── workflows/\n        └── main.yml         # CI/CD workflow for testing the virtual environment\n```\n\n---\n\n## 🚀 Usage\n\n### ✅ **Activate the Virtual Environment**\nAfter running the setup script for your OS, the virtual environment will be activated automatically. You can confirm this by checking your terminal prompt:\n```bash\n(venv) user@machine:~/ollamalocal$\n```\n\n### 📦 **Install Dependencies**\nAfter activating the virtual environment, install the required dependencies:\n```bash\npip install -r requirements.txt\n```\n\n### 📝 **Run LangChain Ollama Script**\n```bash\npython src/main.py\n```\nYou will be prompted to enter a question, and the `mistral` model will provide a response.\n\n### ❌ **Deactivate the Virtual Environment**\n```bash\ndeactivate\n```\n\n---\n\n## 🔄 **Troubleshooting**\n| Issue | Solution |\n|-------|---------|\n| **Python Not Installed** | Ensure Python is installed and added to `PATH`. |\n| **Virtual Environment Creation Failed** | Delete the `venv` folder and rerun the activation script. |\n| **Permission Issues on macOS/Linux** | Run `chmod +x activate_project.sh` before executing the script. |\n\n---\n\n## 🤝 Contributing\nContributions are welcome! Feel free to submit **Pull Requests** or open **Issues** on the [GitHub repository](https://github.com/TamerOnLine/ollamalocal).\n\n---\n\n## 📜 License\nThis project is licensed under the **MIT License**. See [LICENSE](LICENSE) for details.\n\n---\n\n### 🔗 **Useful Links**\n- [GitHub Repository](https://github.com/TamerOnLine/ollamalocal)\n- [LangChain Ollama](https://python.langchain.com/docs/integrations/llms/ollama)\n\n---\n\nIf you need any modifications, let me know! 🚀","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftameronline%2Follamalocal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftameronline%2Follamalocal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftameronline%2Follamalocal/lists"}