Skip to content

Commit

Permalink
uploaded to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
kencochrane committed Feb 15, 2015
1 parent 88c388e commit a61ebab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ check the database on each login attempt. The first version will be based on
Redis, but the goal is to make this configurable so that people can use what
they want for a backend, so it is configurable.

Version 0.1 will be very limited in features, it will only do a few things, but
the goal is to do those things very well, and have full unit tests with docs.

Build status
------------

Expand All @@ -22,8 +19,8 @@ Sites using Defender:
=====================
- https://hub.docker.com

Goals for 0.1
=============
0.1 Features
============

- Log all login attempts to the database
- support for reverse proxies with different headers for IP addresses
Expand All @@ -40,13 +37,12 @@ Goals for 0.1
- key_prefix
- block length
- number of incorrect attempts before block
- 100% code coverage
- 95% code coverage
- full documentation
- admin pages
- list of blocked usernames and ip's
- ability to unblock people
- list of recent login attempts
- search by username for recent login attempts

Long term goals
===============
Expand Down Expand Up @@ -145,7 +141,6 @@ blocked list, and then goto step 5. If not over the limit goto step 4.
4. login was invalid, but not over the limit. Send them back to the login screen
to try again.


5. User is blocked: Send them to the blocked page, telling them they are
blocked, and give an estimate on when they will be unblocked.

Expand All @@ -172,9 +167,11 @@ Installing Django-defender

Download code, and run setup.

TODO: add to pypi once stable.

```
$ pip install django-defender
or
$ python setup.py install
or
Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@
'Development Status :: 4 - Beta',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache 2 License',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: PyPy',
Expand All @@ -37,6 +36,6 @@
author_email='kencochrane@gmail.com',
license='Apache 2',
packages=['defender'],
install_requires=['Django>=1.6,<1.8', 'redis==2.10.3', 'hiredis==0.1.4', ],
install_requires=['Django>=1.6,<1.8', 'redis==2.10.3', 'hiredis==0.1.4'],
tests_require=['mock', 'mockredispy', 'coverage', 'celery'],
)

0 comments on commit a61ebab

Please sign in to comment.