Skip to main content

A framework for building API servers for Vapi custom tools with integrated service providers

Project description

VapiServe

VapiServe Logo

PyPI Version Python Versions License Documentation

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 @tool decorator
  • 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

vapiserve-0.0.4.tar.gz (172.0 kB view details)

Uploaded Source

Built Distribution

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

vapiserve-0.0.4-py3-none-any.whl (51.0 kB view details)

Uploaded Python 3

File details

Details for the file vapiserve-0.0.4.tar.gz.

File metadata

  • Download URL: vapiserve-0.0.4.tar.gz
  • Upload date:
  • Size: 172.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.6

File hashes

Hashes for vapiserve-0.0.4.tar.gz
Algorithm Hash digest
SHA256 64e480c3134b55127086fc38c81d12583ed022eb1ebe87816ed23b067fb8a2d2
MD5 805bd87d9b850e06db5b18807b457571
BLAKE2b-256 cd9a24d2a03b4c47e0db88486d4fcac735cc90c1f547ad6857e58e569b329e33

See more details on using hashes here.

File details

Details for the file vapiserve-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: vapiserve-0.0.4-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

Hashes for vapiserve-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 abd4c72be3afd86e6a8e823265b034273acf24479e20dfa2cc592e2802d38aa5
MD5 3000bf208ea97dce686a2dd0fd053a37
BLAKE2b-256 46303fac1bf0e8f5dd2084721ecc8f9b8d10e1af8f57d670732d8f3a10c4e625

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