devshakti-ai


Namedevshakti-ai JSON
Version 0.1.2 PyPI version JSON
download
home_pagehttps://shakti-one.vercel.app
SummaryPython SDK for Shakti LLM API - OpenAI compatible
upload_time2025-08-12 12:16:45
maintainerNone
docs_urlNone
authorShivnath Tathe
requires_python>=3.7
licenseNone
keywords shakti ai llm api sdk openai
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # DevShakti AI SDK

Python SDK for Shakti AI - An OpenAI-compatible LLM API.

## 🚀 Installation

```bash
pip install devshakti-ai
```

## 📚 Documentation

Full documentation, interactive playground, and API reference available at:

### **🔗 https://shakti-one.vercel.app**

## ⚡ Quick Start

```python
from shakti import ChatShakti
import json

# Initialize client
client = ChatShakti(api_key="sk-your-api-key")

# Simple completion
response = client.chat.completions.create(
    messages=[{"role": "user", "content": "Hello"}]
)
print(response['choices'][0]['message']['content'])
```

## 🎯 Streaming Example

```python
from shakti import ChatShakti
import json

client = ChatShakti(api_key="sk-your-api-key")

# Streaming response
for chunk in client.chat.completions.create(
    messages=[{"role": "user", "content": "Tell me a story"}],
    stream=True
):
    chunk_dict = json.loads(chunk)
    content = chunk_dict['choices'][0]['delta'].get('content', '')
    if content:
        print(content, end='', flush=True)
```

## 🎨 Custom Configuration

```python
from shakti import ChatShakti

# Custom base URL and parameters
client = ChatShakti(
    api_key="sk-your-api-key",
    base_url="https://devshakti.serveo.net"  # Optional
)

response = client.chat.completions.create(
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Hello!"}
    ],
    model="shakti-01-chat",
    temperature=0.7,
    max_tokens=1024,
    stream=False
)
```

## ✨ Features

- ✅ **OpenAI-compatible API** - Easy migration from OpenAI
- ✅ **Streaming support** - Real-time token streaming
- ✅ **Simple Python interface** - Clean, intuitive SDK
- ✅ **Free tier available** - Get started at no cost
- ✅ **Fast responses** - 2-3 second average latency
- ✅ **Rate limiting** - 60 requests/min, 150k tokens/min

## 🔧 API Endpoints

- **Base URL**: `https://devshakti.serveo.net`
- **Chat Completions**: `/v1/chat/completions`
- **Models**: `/v1/models`
- **Health Check**: `/health`

## 📝 Basic Usage

### Simple Request

```python
response = client.chat.completions.create(
    messages=[{"role": "user", "content": "What is Python?"}]
)
```

### With System Prompt

```python
response = client.chat.completions.create(
    messages=[
        {"role": "system", "content": "You are a coding expert."},
        {"role": "user", "content": "Explain async/await"}
    ]
)
```

### Streaming Tokens

```python
for chunk in client.chat.completions.create(
    messages=[{"role": "user", "content": "Write a poem"}],
    stream=True
):
    # Process each token as it arrives
    chunk_dict = json.loads(chunk)
    content = chunk_dict['choices'][0]['delta'].get('content', '')
    if content:
        print(content, end='', flush=True)
```

## 🔑 Get Your API Key

Visit **https://shakti-one.vercel.app** to:
- 🔐 Generate your free API key
- 🎮 Try the interactive playground  
- 📖 Read full documentation
- 💻 See more code examples

## 📊 Rate Limits

- **Requests**: 60 per minute
- **Tokens**: 150,000 per minute
- **Concurrent**: 10 requests

## 🛠️ Requirements

- Python 3.7+
- `requests` library (installed automatically)

## 🤝 Support

- **Documentation**: https://shakti-one.vercel.app
- **GitHub Issues**: https://github.com/shivnathtathe/shakti-sdk/issues
- **Email**: sptathe2001@gmail.com

## 📄 License

MIT License - See [LICENSE](LICENSE) file for details.

## 🌟 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

---

<div align="center">
Made with ❤️ by Shivnath Tathe

**[Get Started →](https://shakti-one.vercel.app)**
</div>

            

Raw data

            {
    "_id": null,
    "home_page": "https://shakti-one.vercel.app",
    "name": "devshakti-ai",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "shakti ai llm api sdk openai",
    "author": "Shivnath Tathe",
    "author_email": "sptathe2001@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/aa/8f/6b1e95e196c354a4e280575b4165b58e29e5290edc4c961a895f3af1b449/devshakti_ai-0.1.2.tar.gz",
    "platform": null,
    "description": "# DevShakti AI SDK\r\n\r\nPython SDK for Shakti AI - An OpenAI-compatible LLM API.\r\n\r\n## \ud83d\ude80 Installation\r\n\r\n```bash\r\npip install devshakti-ai\r\n```\r\n\r\n## \ud83d\udcda Documentation\r\n\r\nFull documentation, interactive playground, and API reference available at:\r\n\r\n### **\ud83d\udd17 https://shakti-one.vercel.app**\r\n\r\n## \u26a1 Quick Start\r\n\r\n```python\r\nfrom shakti import ChatShakti\r\nimport json\r\n\r\n# Initialize client\r\nclient = ChatShakti(api_key=\"sk-your-api-key\")\r\n\r\n# Simple completion\r\nresponse = client.chat.completions.create(\r\n    messages=[{\"role\": \"user\", \"content\": \"Hello\"}]\r\n)\r\nprint(response['choices'][0]['message']['content'])\r\n```\r\n\r\n## \ud83c\udfaf Streaming Example\r\n\r\n```python\r\nfrom shakti import ChatShakti\r\nimport json\r\n\r\nclient = ChatShakti(api_key=\"sk-your-api-key\")\r\n\r\n# Streaming response\r\nfor chunk in client.chat.completions.create(\r\n    messages=[{\"role\": \"user\", \"content\": \"Tell me a story\"}],\r\n    stream=True\r\n):\r\n    chunk_dict = json.loads(chunk)\r\n    content = chunk_dict['choices'][0]['delta'].get('content', '')\r\n    if content:\r\n        print(content, end='', flush=True)\r\n```\r\n\r\n## \ud83c\udfa8 Custom Configuration\r\n\r\n```python\r\nfrom shakti import ChatShakti\r\n\r\n# Custom base URL and parameters\r\nclient = ChatShakti(\r\n    api_key=\"sk-your-api-key\",\r\n    base_url=\"https://devshakti.serveo.net\"  # Optional\r\n)\r\n\r\nresponse = client.chat.completions.create(\r\n    messages=[\r\n        {\"role\": \"system\", \"content\": \"You are a helpful assistant.\"},\r\n        {\"role\": \"user\", \"content\": \"Hello!\"}\r\n    ],\r\n    model=\"shakti-01-chat\",\r\n    temperature=0.7,\r\n    max_tokens=1024,\r\n    stream=False\r\n)\r\n```\r\n\r\n## \u2728 Features\r\n\r\n- \u2705 **OpenAI-compatible API** - Easy migration from OpenAI\r\n- \u2705 **Streaming support** - Real-time token streaming\r\n- \u2705 **Simple Python interface** - Clean, intuitive SDK\r\n- \u2705 **Free tier available** - Get started at no cost\r\n- \u2705 **Fast responses** - 2-3 second average latency\r\n- \u2705 **Rate limiting** - 60 requests/min, 150k tokens/min\r\n\r\n## \ud83d\udd27 API Endpoints\r\n\r\n- **Base URL**: `https://devshakti.serveo.net`\r\n- **Chat Completions**: `/v1/chat/completions`\r\n- **Models**: `/v1/models`\r\n- **Health Check**: `/health`\r\n\r\n## \ud83d\udcdd Basic Usage\r\n\r\n### Simple Request\r\n\r\n```python\r\nresponse = client.chat.completions.create(\r\n    messages=[{\"role\": \"user\", \"content\": \"What is Python?\"}]\r\n)\r\n```\r\n\r\n### With System Prompt\r\n\r\n```python\r\nresponse = client.chat.completions.create(\r\n    messages=[\r\n        {\"role\": \"system\", \"content\": \"You are a coding expert.\"},\r\n        {\"role\": \"user\", \"content\": \"Explain async/await\"}\r\n    ]\r\n)\r\n```\r\n\r\n### Streaming Tokens\r\n\r\n```python\r\nfor chunk in client.chat.completions.create(\r\n    messages=[{\"role\": \"user\", \"content\": \"Write a poem\"}],\r\n    stream=True\r\n):\r\n    # Process each token as it arrives\r\n    chunk_dict = json.loads(chunk)\r\n    content = chunk_dict['choices'][0]['delta'].get('content', '')\r\n    if content:\r\n        print(content, end='', flush=True)\r\n```\r\n\r\n## \ud83d\udd11 Get Your API Key\r\n\r\nVisit **https://shakti-one.vercel.app** to:\r\n- \ud83d\udd10 Generate your free API key\r\n- \ud83c\udfae Try the interactive playground  \r\n- \ud83d\udcd6 Read full documentation\r\n- \ud83d\udcbb See more code examples\r\n\r\n## \ud83d\udcca Rate Limits\r\n\r\n- **Requests**: 60 per minute\r\n- **Tokens**: 150,000 per minute\r\n- **Concurrent**: 10 requests\r\n\r\n## \ud83d\udee0\ufe0f Requirements\r\n\r\n- Python 3.7+\r\n- `requests` library (installed automatically)\r\n\r\n## \ud83e\udd1d Support\r\n\r\n- **Documentation**: https://shakti-one.vercel.app\r\n- **GitHub Issues**: https://github.com/shivnathtathe/shakti-sdk/issues\r\n- **Email**: sptathe2001@gmail.com\r\n\r\n## \ud83d\udcc4 License\r\n\r\nMIT License - See [LICENSE](LICENSE) file for details.\r\n\r\n## \ud83c\udf1f Contributing\r\n\r\nContributions are welcome! Please feel free to submit a Pull Request.\r\n\r\n---\r\n\r\n<div align=\"center\">\r\nMade with \u2764\ufe0f by Shivnath Tathe\r\n\r\n**[Get Started \u2192](https://shakti-one.vercel.app)**\r\n</div>\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Python SDK for Shakti LLM API - OpenAI compatible",
    "version": "0.1.2",
    "project_urls": {
        "Homepage": "https://shakti-one.vercel.app"
    },
    "split_keywords": [
        "shakti",
        "ai",
        "llm",
        "api",
        "sdk",
        "openai"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "ae9318a02bd734ed019dcaece2a3392e6e04e504604c7f9e61df506bc7915d63",
                "md5": "a3e4358ade315447010b0174066ed67f",
                "sha256": "04ce340c0dbd43121a502c69b7231760704dfc0fa0deb9e1ccbf452d9e058fa7"
            },
            "downloads": -1,
            "filename": "devshakti_ai-0.1.2-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a3e4358ade315447010b0174066ed67f",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.7",
            "size": 6468,
            "upload_time": "2025-08-12T12:16:44",
            "upload_time_iso_8601": "2025-08-12T12:16:44.121044Z",
            "url": "https://files.pythonhosted.org/packages/ae/93/18a02bd734ed019dcaece2a3392e6e04e504604c7f9e61df506bc7915d63/devshakti_ai-0.1.2-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "aa8f6b1e95e196c354a4e280575b4165b58e29e5290edc4c961a895f3af1b449",
                "md5": "821a0a3759dfd72f060909f83e49a771",
                "sha256": "04000b606c6730ada0eedfebf86869fa9ad9570ece9e9abbe5c0364eee4f1d98"
            },
            "downloads": -1,
            "filename": "devshakti_ai-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "821a0a3759dfd72f060909f83e49a771",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 5781,
            "upload_time": "2025-08-12T12:16:45",
            "upload_time_iso_8601": "2025-08-12T12:16:45.467921Z",
            "url": "https://files.pythonhosted.org/packages/aa/8f/6b1e95e196c354a4e280575b4165b58e29e5290edc4c961a895f3af1b449/devshakti_ai-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-12 12:16:45",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "devshakti-ai"
}
        
Elapsed time: 2.45330s