kopia lustrzana https://gitlab.com/jaywink/federation
0f2c97adf8
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. |
||
---|---|---|
federation | ||
.coveragerc | ||
.gitignore | ||
.travis.yml | ||
CHANGELOG.md | ||
LICENSE.txt | ||
MANIFEST.in | ||
README.md | ||
pytest.ini | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt |
README.md
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).