forked from LiveCarta/ContentAutomation
Implemented content upload app with tests and pre-commit hooks
This commit is contained in:
12
src/content_automation/interfaces.py
Normal file
12
src/content_automation/interfaces.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Protocol
|
||||
|
||||
|
||||
class SocialNetworkAdapter(Protocol):
|
||||
"""Contract for social network posting adapters."""
|
||||
|
||||
name: str
|
||||
|
||||
def post_media(self, media_url: str, caption: str) -> str:
|
||||
"""Publish media and return an external post identifier."""
|
||||
Reference in New Issue
Block a user