Python library to abstract social web federation protocols like ActivityPub, Diaspora and Matrix.
 
 
Go to file
Jason Robinson 0f2c97adf8 Validate entities that are created through message_to_objects
To safeguard invalid entities being passed on to library users, validate entities that are created in the message_to_objects calls. Any failures are logged as errors.

This means for Diaspora Profile messages we must fetch the remote GUID from the hcard. Diaspora Profile XML message does not contain the guid but our data structure enforces GUID as a required attribute. This ensures library users will get a full profile back always. Implement in the Diaspora entities a hook fill_extra_attributes that is called in message_to_objects.
2016-09-15 23:02:55 +03:00
federation Validate entities that are created through message_to_objects 2016-09-15 23:02:55 +03:00
.coveragerc
.gitignore
.travis.yml Always install test reqs with -U flag 2016-09-12 22:02:27 +03:00
CHANGELOG.md Validate entities that are created through message_to_objects 2016-09-15 23:02:55 +03:00
LICENSE.txt
MANIFEST.in
README.md
pytest.ini
setup.cfg
setup.py
test-requirements.txt Add pytest-warnings to test reqs 2016-09-12 21:51:00 +03:00

README.md

PyPI version Build Status codecov.io Code Health Requirements Status PyPI downloads Stories in Ready

Social-Federation

Python library to abstract social federation protocols. Currently supports a subset of the Diaspora protocol with full support intended, and additional protocols after that.

Requirements

  • Python 3.x

Testing

Install requirements:

pip install -r test-requirements.txt

Run tests:

py.test

License

BSD 3-clause license (https://www.tldrlegal.com/l/bsd3).