easy-basicauth
WARNING! THIS LIBRARY IS IN PROGRESS! ANYTHING CAN CHANGE AT ANY MOMENT WITHOUT ANY NOTICE!
Installation
pip install easy-basicauth
Usage
It's very easy and simple: just do this:
from basicauth.decorator import basic_auth_required
@basic_auth_required
def some_view(request, user):
pass
In case you prefer classes to functions:
class SomeClass(View):
@basic_auth_required
def get(request, user):
pass
NOTE: You should add user
as one of the parameters.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.