django-social-auth和python-social-auth有什么区别?

时间:2015-03-04 10:52:57

标签: django django-socialauth python-social-auth

我非常困惑,因为django-social-auth和python-social-auth似乎是相同的,但事实并非如此。事实上,python-social-auth基于django-social-auth。

现在我无法找到任何可以比较这两者的资源。我甚至无法在python-social-auth docs中找到一个声明,为什么他们创建自己的项目而不是仅使用django-social-auth。

对于我的项目,我需要选择其中一个。你可以帮我做出这个选择吗?

想想你的时间。

2 个答案:

答案 0 :(得分:2)

django-social-auth已被弃用,转而支持python-social-auth。它甚至说in the django-social-auth README

python-social-auth是使用django-social-auth作为基础构建的。主要优点/区别在于它现在支持多个框架。

答案 1 :(得分:0)

最新版本是python-social-auth,而django-socail-auth已经被删除。

python-social-auth是一个非常模块化的库,旨在提供在Python项目中实现社交认证/授权的基础工具。出于这个原因,该项目分为较小的组件,专注于提供更简单的功能。一些组件是:

social-auth-core Core library that the rest depends on, this contains the basic functionality to establish an authentication/authorization flow with the diferent supported providers.
social-auth-storage-sqlalchemy, social-auth-storage-peewee, social-auth-storage-mongoengine Different storage solutions that can be reused accross the supported frameworks or newer implementations.
social-auth-app-django, social-auth-app-django-mongoengine Django framework integration
social-auth-app-flask, social-auth-app-flask-sqlalchemy, social-auth-app-flask-mongoengine, social-auth-app-flask-peewee Flask framework integration
social-auth-app-pyramid Pyramid framework integration
social-auth-app-cherrypy Cherrypy framework integration
social-auth-app-tornado Tornado framework integration
social-auth-app-webpy Webpy framework integration