COSCUP-ap-demo/demo/actor.py

12 lines
210 B
Python
Raw Permalink Normal View History

2023-06-19 08:34:03 +02:00
#!/usr/bin/env python3
"""ActivityPub Actor"""
import demo.activitypub as ap
def fetch_actor(
actor_url: str,
) -> dict:
"""Fetch actor"""
ap_object = ap.fetch(actor_url)
return ap_object