A Python library for running DeepSeek-Coder locally using Ollama.
Project description
DeepSeek-Local
🚀 DeepSeek-Local is a Python package that allows you to run DeepSeek-Coder locally using Ollama. With this package, you can generate and modify code using DeepSeek-Coder, all without requiring an internet connection!
✨ Features
- Offline AI Coding Assistance – Run DeepSeek-Coder locally via Ollama.
- Simple Installation – Easy setup with
pip install. - Seamless Integration – Use the package in any Python project.
- No Internet Required – Works entirely on your local machine.
📥 Installation
1️⃣ Prerequisites
Ensure you have the following installed on your system:
- Python 3.8+
- Ollama (Download Here)
2️⃣ Install DeepSeek-Local
pip install deepseek-local
🚀 Usage
✅ Check if Ollama is Installed
from deepseek_local.utils import is_ollama_installed
if is_ollama_installed():
print("Ollama is installed and ready to use!")
else:
print("Please install Ollama first.")
🔄 Install DeepSeek-Coder Model
from deepseek_local import install_deepseek
install_deepseek()
🤖 Run DeepSeek-Coder
from deepseek_local import run_deepseek
response = run_deepseek("Write a Python function to reverse a string.")
print(response)
⚡ Troubleshooting
If you encounter issues, try the following:
- Ensure Ollama is installed and accessible from the terminal:
ollama list - If
run_deepseek()doesn’t return a response, verify that DeepSeek-Coder is installed:ollama run deepseek-coder "Test query"
- If problems persist, restart your terminal and ensure Python can detect Ollama.
🌍 Contributing
We welcome contributions! To contribute:
- Fork this repository 🍴
- Create a feature branch (
git checkout -b feature-name) - Commit your changes (
git commit -m "Added feature XYZ") - Push to GitHub (
git push origin feature-name) - Submit a Pull Request 🛠️
📄 License
This project is licensed under the MIT License.
📬 Contact
Have questions or suggestions? Open an issue or reach out!
💻 Email: [saadaibani3@gmail.com]
⭐ If you find this project useful, give it a star! ⭐
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deepseek_local-0.1.1.tar.gz.
File metadata
- Download URL: deepseek_local-0.1.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
559efa87b123418f8484ac3fc9b23ac1abbc5466ad7aad463c17e4054be32e57
|
|
| MD5 |
ebddd4d243705d926348ad4dbee227c4
|
|
| BLAKE2b-256 |
b4667d78cc9fce5ea63f3d2b3727fc86af426865a6758354f76a34452534b63d
|
File details
Details for the file deepseek_local-0.1.1-py3-none-any.whl.
File metadata
- Download URL: deepseek_local-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4093059d6c21be3938780ea547444d8f6d97f45f999667bd868106b18fcd4a5f
|
|
| MD5 |
b4e796fa00423c07a55103aef2f67b09
|
|
| BLAKE2b-256 |
0322d8107162aea6a5c64e147e6757b126aa17fac8a810982f7c02ae6d096904
|