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.1.tar.gz (40.2 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.1-py3-none-any.whl (51.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for vapiserve-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4e5ab0a2bd1c1aa25dd731869a224548346bf34075d1d642f7efc4be7fd7532d
MD5 49584c96a27ecefd408b58cbbacd4eea
BLAKE2b-256 38f37f5551ae39e9c312d1855897bde5ec1e03f32516acd7c68dc522621bd46f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vapiserve-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0f5b28db838e18e259afc27080eb925987d385f764d693bf7e61dcbcfa9fad75
MD5 dd4fe4661d18342155548979a75fb1e2
BLAKE2b-256 c381a646cf1ebd96d5b02d7c7ad8c55ec73a11c8436e1df9cbaa3ff70e598479

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