A framework for building API servers for Vapi custom tools with integrated service providers
Project description
VapiServe
A lightweight framework for creating and deploying API servers for Vapi custom tools.
Installation
pip install vapiserve
Quick Example
from vapiserve import tool, serve
@tool(name="echo")
async def echo(message: str = "Hello") -> dict:
# Add your tool logic here
...
message = f"You said: {message}"
return {"message": message}
if __name__ == "__main__":
serve(echo, port=8000)
Your tool is now available at http://localhost:8000/tools/echo.
Features
- Create tools with simple
@tooldecorator - Built on FastAPI for high performance
- Structured error handling and validation
- Multiple service integrations in modular design
- Expose local servers with ngrok for development
- Comprehensive type hints and documentation
Service Integrations
VapiServe provides integrations across various categories:
- Scheduling: Google Calendar, Outlook Calendar
- Tasks: Todoist
- Communication: Slack, Twilio
- Storage: AWS S3, Google Cloud Storage
- Email: SendGrid
- AI: OpenAI, Anthropic
Documentation
Kindly refer to our documentation for detailed usage instructions.
Contributing
Contributions are welcome. Kindly fork the repository, create a feature branch, and submit a pull request.
License
This project is licensed under the MIT License.
Made with ❤️ by Mahimai Raja
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
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 vapiserve-0.0.2.tar.gz.
File metadata
- Download URL: vapiserve-0.0.2.tar.gz
- Upload date:
- Size: 171.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce2d9473cb82657789ecb0328a1ec5fd02b33d2f804acc759fd993cd33a3e726
|
|
| MD5 |
c4ba025d70ff294d45d11a93f7bb4f8e
|
|
| BLAKE2b-256 |
f7560f6330a78f300b3a369ee85bdf53723d5b29da84f788da110b1c434f93c2
|
File details
Details for the file vapiserve-0.0.2-py3-none-any.whl.
File metadata
- Download URL: vapiserve-0.0.2-py3-none-any.whl
- Upload date:
- Size: 51.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1b3936eae01956023e4b6f8f6ce4854d8fc035ca4c526a908d777d2f362a53a
|
|
| MD5 |
a435a965608841197b7bedc471a31042
|
|
| BLAKE2b-256 |
676c8fd68f2ec205fd19e5e398fd03de9657eea9c8640a04d1cfd019224412ba
|