🐍🏗️ Pyvider
Pyvider is a Python framework for building Terraform providers. Write infrastructure providers using Python's elegance, type safety, and rich ecosystem while maintaining full compatibility with Terraform Plugin Protocol v6.
✨ Key Features
- 🐍 Pure Python - Write providers using familiar Python patterns and libraries
- 🎯 Type-Safe - Leverage type hints and attrs for robust code
- 🚀 Decorator-Based - Simple registration system handles protocol complexity
- 📦 Protocol v6 - Full Terraform Plugin Protocol v6 implementation
- ⚡ Async - Built on modern async/await for high performance
- 🧪 Testable - Comprehensive testing with pytest integration
Quick Start
from pyvider.providers import register_provider, BaseProvider
from pyvider.resources import register_resource, BaseResource
from pyvider.schema import s_resource, a_str
import attrs
@register_provider("mycloud")
class MyCloudProvider(BaseProvider):
"""Your cloud provider"""
pass
@register_resource("server")
class Server(BaseResource):
"""Manages a server"""
@classmethod
def get_schema(cls):
return s_resource({
"name": a_str(required=True),
"id": a_str(computed=True),
})
async def _create_apply(self, ctx):
# Create your resource
return State(id="srv-123", name=ctx.config.name), None
async def read(self, ctx):
# Read current state
return ctx.state
See the full example in the Quick Start Guide →
Documentation
📖 Read the Full Documentation →
Quick Links
- Installation Guide - Get up and running
- Quick Start Tutorial - Build your first provider in 5 minutes
- Architecture Overview - Understand how Pyvider works
- API Reference - Complete API documentation
- Examples - 100+ working examples
Development
Quick Start
# Set up environment
uv sync
# Run common tasks
we run test # Run tests
we run lint # Check code
we run format # Format code
we tasks # See all available commands
Available Commands
This project uses wrknv for task automation. Run we tasks to see all available commands.
Common tasks:
we run test- Run all testswe run test.coverage- Run tests with coveragewe run test.parallel- Run tests in parallelwe run lint- Check code qualitywe run lint.fix- Auto-fix linting issueswe run format- Format codewe typecheck- Run type checker
See CLAUDE.md for detailed development instructions and architecture information.
🤝 Contributing
Contributions welcome! See Contributing Guidelines and the Development section above for setup instructions.
📄 License
Apache 2.0 - See LICENSE for details.
📦 Installation
# Using uv (recommended)
uv add pyvider
🚦 Project Status
Version: 0.0.x (Alpha) Protocol: Terraform Plugin Protocol v6 Python: 3.11+
⚠️ Pre-release - APIs may change before 1.0 release. Best suited for internal tooling, experimentation, and learning.
🔗 Links
- Examples - Working examples
- PyPI - Package repository
- Discussions - Community support
Copyright (c) provide.io LLC.
Metadata
Release files for pyvider 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyvider-0.6.0.tar.gz | 206.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyvider-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 480.2 kB
Release files / pyvider-0.6.0.tar.gz
| Download URL | pyvider-0.6.0.tar.gz |
|---|---|
| Size | 206.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b710ee93365dacfc62e57669c47237f6059681ae3f5fe5f1d48624df0231c1c4
|
|
BLAKE2b-256 checksum How to use checksums |
d3f4d6351db85660a288cf6ce3ad7fbd72fa4d420ee3c4391042239e335c7e3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 30, 2026.
Transparency logRelease files / pyvider-0.6.0-py3-none-any.whl
| Download URL | pyvider-0.6.0-py3-none-any.whl |
|---|---|
| Size | 273.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7bbdfe22074d215236691b37a2661352bf90f70d0891c9a5d6db89d8a99a7e43
|
|
BLAKE2b-256 checksum How to use checksums |
581c816b5f7f296f37ed3614419b765869b10d312d2ec239ac83a16285383ba7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 30, 2026.
Transparency log