Skip to main content

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:

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:

  1. Fork this repository 🍴
  2. Create a feature branch (git checkout -b feature-name)
  3. Commit your changes (git commit -m "Added feature XYZ")
  4. Push to GitHub (git push origin feature-name)
  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deepseek_local-0.1.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deepseek_local-0.1.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

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

Hashes for deepseek_local-0.1.1.tar.gz
Algorithm Hash digest
SHA256 559efa87b123418f8484ac3fc9b23ac1abbc5466ad7aad463c17e4054be32e57
MD5 ebddd4d243705d926348ad4dbee227c4
BLAKE2b-256 b4667d78cc9fce5ea63f3d2b3727fc86af426865a6758354f76a34452534b63d

See more details on using hashes here.

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

Hashes for deepseek_local-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4093059d6c21be3938780ea547444d8f6d97f45f999667bd868106b18fcd4a5f
MD5 b4e796fa00423c07a55103aef2f67b09
BLAKE2b-256 0322d8107162aea6a5c64e147e6757b126aa17fac8a810982f7c02ae6d096904

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page