Skip to content
Snippets Groups Projects

Draft: endpoint connections and signature security

Closed Kenechukwu Orjiene requested to merge kenechukwu-orjiene/pyfed:main into main
20 files
+ 1728
788
Compare changes
  • Side-by-side
  • Inline
Files
20
+ 46
4
from .actors import Actor
from .objects import Object
from .activities import Activity
from typing import Union
__all__ = ["Actor", "Object", "Activity"]
# from .base import APBase, APObject, APLink, APActivity
from .actors import (
APActor, APPerson, APGroup, APOrganization, APApplication, APService
)
from .objects import (
APEvent, APPlace, APProfile, APRelationship, APTombstone,
APArticle, APAudio, APDocument, APImage, APNote, APPage, APVideo, APObject
)
from .collections import (
APCollection, APOrderedCollection, APCollectionPage, APOrderedCollectionPage
)
from .activities import (
APCreate, APUpdate, APDelete,
APFollow, APUndo, APLike, APAnnounce
)
from .links import APLink, APMention
# # List of all models
# ALL_MODELS = [
# APObject, APEvent, APPlace, APProfile, APRelationship, APTombstone,
# APArticle, APAudio, APDocument, APImage, APNote, APPage, APVideo,
# APActor, APPerson, APGroup, APOrganization, APApplication, APService,
# APLink,
# APCollection, APOrderedCollection, APCollectionPage, APOrderedCollectionPage,
# APCreate, APUpdate, APDelete,
# APFollow, APUndo, APLike, APAnnounce, APMention
# ]
# def update_forward_refs():
# """Update forward references for all models"""
# # update_model_refs()
# for model in ALL_MODELS:
# model.update_forward_refs()
# # Update all models
# update_forward_refs()
# Export all classes
__all__ = [
'APBase', 'APObject', 'APLink', 'APActivity',
'APActor', 'APPerson', 'APGroup', 'APOrganization', 'APApplication', 'APService',
'APEvent', 'APPlace', 'APProfile', 'APRelationship', 'APTombstone', 'APArticle', 'APAudio', 'APDocument', 'APImage', 'APNote', 'APPage', 'APVideo',
'APCollection', 'APOrderedCollection', 'APCollectionPage', 'APOrderedCollectionPage',
'APCreate', 'APUpdate', 'APDelete', 'APFollow', 'APUndo', 'APLike', 'APAnnounce', 'APMention'
]
Loading