fxdgear / nocoactivitypubsub

Activyt Pub for Something About Python
Apache License 2.0
0 stars 1 forks source link

Discuss Framework options #2

Open fxdgear opened 4 years ago

fxdgear commented 4 years ago

Please leave a comment on this issue to explain why you want a particular framework. We can vote by using the :+1: or :-1: emojis on each one.

fxdgear commented 4 years ago

Django

I vote we do this in Django.

Reasons

1. Django Rest Framework

A lot of our data coming in and out of the ActivityPub server will be transferred in JSON. Django restframework has built in handling for:

2. Batteries Included

Django has support for the following out of the box without having to install/maintain other packages:

4. Admin

referenced in the previous section the Django Admin makes it really easy to access the data/view the data in our database without having to write out own tools/html for inspecting our data.

5. Django ORM

Django's ORM is great for treating data in a database as if it were a native python object. Which makes our interface to CRUD data that much easier.

6. Rich django ecosysm

We will have to utilize some external libs to capture the full requirements of ActivityPub. One of which is oauth. There exists a django oauth lib https://github.com/jazzband/django-oauth-toolkit which integrates into Django's auth backend already, so implementing oauth becomes mostly "plug and play".


I know django's tooling might not be the best in any one particular category. BUT the fact that it's all bundled nicely together makes it incredibly easy to use. Easy to get started with, and easy to maintain.