Ben Finney [Wed, 2 Mar 2016 05:10:43 +0000 (16:10 +1100)]
Migrate command-line parsing to ‘argparse’.
Ben Finney [Wed, 2 Mar 2016 04:43:44 +0000 (15:43 +1100)]
Get command-line arguments as a parameter to ‘main’.
This makes the ‘main’ function more easily tested: no need for special
patches just for the command-line arguments.
Ben Finney [Wed, 2 Mar 2016 04:42:04 +0000 (15:42 +1100)]
Parse the explicit sequence of command-line arguments.
Ben Finney [Wed, 2 Mar 2016 04:40:40 +0000 (15:40 +1100)]
Explicitly derive the command name from command-line arguments.
Ben Finney [Wed, 2 Mar 2016 04:38:42 +0000 (15:38 +1100)]
Refactor command-line parser to a custom class for this program.
Steven Tobin [Mon, 22 Feb 2016 15:47:48 +0000 (15:47 +0000)]
increment build
Ben Finney [Sat, 13 Feb 2016 10:21:05 +0000 (21:21 +1100)]
Add the code examples to the Distutils manifest.
This ensures the code examples, which are not part of any Python
package, will be part of the source distribution (“sdist”).
Ben Finney [Sat, 13 Feb 2016 10:19:58 +0000 (21:19 +1100)]
Move the code examples to a non-package directory.
Code examples are intended for direct inspection by the end user, not
for import as modules from the distribution. Move the code examples to a
separate top-level ‘examples/’ directory.
Steven Tobin [Tue, 26 Jan 2016 22:01:52 +0000 (22:01 +0000)]
add tests to release package
Steven Tobin [Tue, 26 Jan 2016 22:00:42 +0000 (22:00 +0000)]
clarify entropy in verbose flag
Steven Tobin [Wed, 25 Nov 2015 00:27:34 +0000 (00:27 +0000)]
adds a filtered wordlist and warning in the README
Steven Tobin [Mon, 26 Oct 2015 16:15:38 +0000 (16:15 +0000)]
update version and contributors
Steven Tobin [Mon, 26 Oct 2015 16:13:13 +0000 (16:13 +0000)]
Merge pull request #29 from noschinl/master
Allow duplicate words in passphrases
Lars Noschinski [Mon, 26 Oct 2015 13:13:04 +0000 (14:13 +0100)]
Allow duplicate words in passphrases
Steven Tobin [Thu, 1 Oct 2015 09:05:30 +0000 (10:05 +0100)]
update version number
Steven Tobin [Thu, 1 Oct 2015 09:01:45 +0000 (10:01 +0100)]
Update contributor list
Steven Tobin [Thu, 1 Oct 2015 09:00:02 +0000 (10:00 +0100)]
update tests as needed (wordlist size, new parameter names)
Steven Tobin [Thu, 1 Oct 2015 08:57:23 +0000 (09:57 +0100)]
Merge pull request #28 from shacker/master
Module args match CLI, add JSON example, documentation tweaks
Scot Hacker [Thu, 1 Oct 2015 04:51:44 +0000 (21:51 -0700)]
Mention accepted module args in readme
Scot Hacker [Thu, 1 Oct 2015 04:50:32 +0000 (21:50 -0700)]
Add Django integration example
Scot Hacker [Thu, 1 Oct 2015 04:33:31 +0000 (21:33 -0700)]
Rename module args to match CLI versions
Resolves https://github.com/redacted/XKCD-password-generator/issues/27
Steven Tobin [Sun, 24 May 2015 16:45:50 +0000 (17:45 +0100)]
Merge pull request #25 from gitter-badger/gitter-badge
Add a Gitter chat badge to README.rst
The Gitter Badger [Sun, 24 May 2015 16:45:20 +0000 (16:45 +0000)]
Added Gitter badge
Steven Tobin [Sun, 25 Jan 2015 18:59:43 +0000 (18:59 +0000)]
extended default wordlist
Steven Tobin [Sun, 25 Jan 2015 18:46:21 +0000 (18:46 +0000)]
improved acknowledgement of 12dicts
Steven Tobin [Sun, 25 Jan 2015 18:34:39 +0000 (18:34 +0000)]
added initial files for a man page
Steven Tobin [Sat, 17 Jan 2015 23:13:43 +0000 (23:13 +0000)]
forgot to increment version for bugfix
Steven Tobin [Sat, 17 Jan 2015 23:11:47 +0000 (23:11 +0000)]
update contributor list
Steven Tobin [Sat, 17 Jan 2015 23:08:17 +0000 (23:08 +0000)]
Merge pull request #21 from svisser/patch-1
Updated Python 3 version check to use sys.version_info
Simeon Visser [Sat, 17 Jan 2015 22:12:44 +0000 (22:12 +0000)]
Updated Python 3 version check to use sys.version_info
Steven Tobin [Sat, 17 Jan 2015 19:19:28 +0000 (19:19 +0000)]
fixed pep8 issues
Steven Tobin [Sat, 17 Jan 2015 19:14:03 +0000 (19:14 +0000)]
added license to manifest
Steven Tobin [Sat, 17 Jan 2015 19:09:29 +0000 (19:09 +0000)]
updated contributor and copyright
Ben Finney [Fri, 16 Jan 2015 22:33:07 +0000 (09:33 +1100)]
Rewrite help for command-line options.
The re-write describes each option consistently in terms of “make the
program do FOO”, and uses the ‘metavar’ feature to reference option
arguments.
Signed-off-by: Steven Tobin <steventtobin (at) gmail.com>
Steven Tobin [Tue, 11 Nov 2014 08:09:35 +0000 (19:09 +1100)]
Included explicit BSD license
Steven Tobin [Tue, 9 Sep 2014 02:24:09 +0000 (12:24 +1000)]
python3 compatibility in example_import
Steven Tobin [Tue, 9 Sep 2014 02:22:44 +0000 (12:22 +1000)]
removed commented-out code from example
Steven Tobin [Tue, 9 Sep 2014 02:19:25 +0000 (12:19 +1000)]
Improved example_import and added information to docs
Steven Tobin [Mon, 8 Sep 2014 08:05:01 +0000 (18:05 +1000)]
bump version number
Steven Tobin [Mon, 8 Sep 2014 01:37:57 +0000 (11:37 +1000)]
extracted wordfile detection code to function
Steven Tobin [Mon, 14 Jul 2014 01:53:01 +0000 (11:53 +1000)]
fixed docstring typo (thanks to kimslawson for the spot)
Steven Tobin [Sat, 12 Jul 2014 09:08:34 +0000 (19:08 +1000)]
version bump for large improvement to acrostic function
Steven Tobin [Sat, 12 Jul 2014 05:20:38 +0000 (15:20 +1000)]
Improved acrostic generation algorithm
Preload wordlist into a dictionary keyed by letter, allows for
reliable generation and actual error handling
Steven Tobin [Sat, 12 Jul 2014 02:17:36 +0000 (12:17 +1000)]
version number increment to match pypi
Steven Tobin [Sat, 12 Jul 2014 02:13:44 +0000 (12:13 +1000)]
updated contributors list
Steven Tobin [Sat, 12 Jul 2014 02:10:42 +0000 (12:10 +1000)]
Merge branch 'dmbaturin-unit-test-enhancements'
Daniil Baturin [Thu, 10 Jul 2014 18:36:53 +0000 (01:36 +0700)]
Python3 compatibility fix in commandline_count.
.count() doesn't work with strings in it, likely because strings
are unicode by default. Explicit b"" byte string argument works.
Daniil Baturin [Thu, 10 Jul 2014 18:29:24 +0000 (01:29 +0700)]
Replace hardcoded data with a regex match check in the delimiter test.
Daniil Baturin [Thu, 10 Jul 2014 18:11:50 +0000 (01:11 +0700)]
Remove hardcoded data dependency from acrostic test so it doesn't randomly fail if data file is modified.
Steven Tobin [Fri, 6 Jun 2014 09:40:28 +0000 (19:40 +1000)]
Merge pull request #16 from thiderman/py3
Python3 fix for example import
Lowe Thiderman [Fri, 6 Jun 2014 09:14:35 +0000 (11:14 +0200)]
Python3 fix for example import
Because of a print statement in the example, the module will not install
cleanly on Python3.
Also bamp version.
Steven Tobin [Thu, 5 Jun 2014 12:33:37 +0000 (22:33 +1000)]
version bump for pypi
Steven Tobin [Thu, 5 Jun 2014 10:14:29 +0000 (20:14 +1000)]
updated README
Steven Tobin [Mon, 2 Jun 2014 12:15:07 +0000 (22:15 +1000)]
reordered README for legibility
Steven Tobin [Mon, 2 Jun 2014 11:58:06 +0000 (21:58 +1000)]
added pip install instructions to README
Steven Tobin [Mon, 2 Jun 2014 08:59:22 +0000 (18:59 +1000)]
fixed setup.py for new readme
Steven Tobin [Mon, 2 Jun 2014 08:47:59 +0000 (18:47 +1000)]
fix pep8 issues
Steven Tobin [Mon, 2 Jun 2014 08:43:49 +0000 (18:43 +1000)]
Convert README to rst for pypi push
Steven Tobin [Mon, 2 Jun 2014 08:35:28 +0000 (18:35 +1000)]
tweaked readme due to changes to default wordlists
Steven Tobin [Mon, 2 Jun 2014 08:28:06 +0000 (18:28 +1000)]
Merge branch 'thiderman-packaging'
Steven Tobin [Mon, 2 Jun 2014 08:27:34 +0000 (18:27 +1000)]
fixed tests, removed unneeded files
Steven Tobin [Mon, 2 Jun 2014 08:22:06 +0000 (18:22 +1000)]
Merge branch 'master' of github.com:redacted/XKCD-password-generator
Steven Tobin [Mon, 2 Jun 2014 08:21:48 +0000 (18:21 +1000)]
Merge pull request #13 from thiderman/packaging
Add packaging
Steven Tobin [Fri, 30 May 2014 03:03:23 +0000 (13:03 +1000)]
Testing default.txt solution
Steven Tobin [Fri, 30 May 2014 03:03:23 +0000 (13:03 +1000)]
Testing default.txt solution
Steven Tobin [Fri, 30 May 2014 02:58:03 +0000 (12:58 +1000)]
Merge branch 'packaging' of https://github.com/thiderman/XKCD-password-generator into thiderman-packaging
Lowe Thiderman [Thu, 29 May 2014 12:41:10 +0000 (14:41 +0200)]
Add thiderman to contributors
Lowe Thiderman [Thu, 29 May 2014 12:40:31 +0000 (14:40 +0200)]
Add packaged support for provided wordlists
Lowe Thiderman [Thu, 29 May 2014 12:21:04 +0000 (14:21 +0200)]
Move cracklib to top of suggested word lists
Steven Tobin [Tue, 27 May 2014 23:23:28 +0000 (09:23 +1000)]
Increased default password length required increase in test wordlist
Lowe Thiderman [Tue, 27 May 2014 22:37:14 +0000 (00:37 +0200)]
Move example import into package
Lowe Thiderman [Tue, 27 May 2014 22:36:32 +0000 (00:36 +0200)]
Add cracklib-small as a default wordlist
cracklib should be available on most (all, even?) Linux machines and provides
a more than solid foundation as a basis.
Lowe Thiderman [Tue, 27 May 2014 22:34:43 +0000 (00:34 +0200)]
"Fix" tests
Due to the changes incurred by the packaging, the tests needed some changes as
well. I've fixed those, but three tests still fail. However, I ran the tests on
origin/master, and three of them were failing.
I can help with that, but it's out of scope for this PR. ;)
Lowe Thiderman [Tue, 27 May 2014 22:16:44 +0000 (00:16 +0200)]
Modify main code for packaging
Add main() function that setuptools can use as an executable entry point.
Also pass the `parser` variable to `validate_options()`. Since the parser is
now created within the function scope of `main()` it cannot be seen by
`validate_options()` anymore.
Lowe Thiderman [Tue, 27 May 2014 22:13:58 +0000 (00:13 +0200)]
Move static files into module directory
To be able to distribute the package, we need to include the static word lists
into the package module.
Also, add MANIFEST.in to tell setup.py that it's able to include the files. The
MANIFEST.in file is generic and any new added files into xkcdpass/static/ will
be added into new versions of the package.
Lowe Thiderman [Tue, 27 May 2014 22:10:25 +0000 (00:10 +0200)]
Add generic Python project gitignore
Lowe Thiderman [Tue, 27 May 2014 21:51:36 +0000 (23:51 +0200)]
Move main file into a module
Lowe Thiderman [Tue, 27 May 2014 21:51:00 +0000 (23:51 +0200)]
Add setup.py
Steven Tobin [Wed, 2 Apr 2014 05:10:34 +0000 (16:10 +1100)]
Updated default password length to 6 (from 4)
Noting that Diceware creator Arnold Reinhold now recommends using 6
words in his (similar) system, update the defaults to 6 for our code as
well.
Steven Tobin [Mon, 6 Jan 2014 06:06:38 +0000 (17:06 +1100)]
Updated licence for 2014
Steven Tobin [Mon, 15 Jul 2013 14:50:35 +0000 (15:50 +0100)]
small change to readme
Steven Tobin [Mon, 15 Jul 2013 14:49:40 +0000 (15:49 +0100)]
hotlink original xkcd comic
Steven Tobin [Fri, 14 Jun 2013 01:16:18 +0000 (02:16 +0100)]
change non-interactive code to return passwd
Steven Tobin [Fri, 14 Jun 2013 01:09:53 +0000 (02:09 +0100)]
fixed error in README
Steven Tobin [Fri, 14 Jun 2013 01:06:14 +0000 (02:06 +0100)]
updated contributor list
Steven Tobin [Fri, 14 Jun 2013 01:05:31 +0000 (02:05 +0100)]
updated README with delimiters
Steven Tobin [Fri, 14 Jun 2013 01:03:02 +0000 (02:03 +0100)]
changes to delimiter code
Steven Tobin [Fri, 14 Jun 2013 00:52:18 +0000 (01:52 +0100)]
Merge branch 'master' of https://github.com/zbstof/XKCD-password-generator into zbstof-delim
Steven Tobin [Thu, 13 Jun 2013 10:37:56 +0000 (11:37 +0100)]
moved test wordfile to tests dir
Steven Tobin [Thu, 13 Jun 2013 10:35:47 +0000 (11:35 +0100)]
added unit tests
Steven Tobin [Tue, 11 Jun 2013 12:43:31 +0000 (13:43 +0100)]
removed dependence on options parsing for verbose_reports
Stanislav Bytsko [Tue, 11 Jun 2013 08:59:40 +0000 (11:59 +0300)]
Add option to have custom word delimiters
Steven Tobin [Sat, 9 Mar 2013 20:39:45 +0000 (20:39 +0000)]
tweak to readme
Steven Tobin [Mon, 4 Mar 2013 18:11:51 +0000 (18:11 +0000)]
fixed a couple more pep8 issues
Steven Tobin [Mon, 4 Mar 2013 17:26:05 +0000 (17:26 +0000)]
updated readme
Steven Tobin [Mon, 4 Mar 2013 17:22:04 +0000 (17:22 +0000)]
added import example. renamed main script to allow import
xkcd-password.py is renamed to xkcd_password.py to fix an issue with
python's import command
Steven Tobin [Mon, 4 Mar 2013 17:02:47 +0000 (17:02 +0000)]
fiexed some small pep8 and indentation issues
Steven Tobin [Mon, 4 Mar 2013 16:57:48 +0000 (16:57 +0000)]
Updated contributor list
Steven Tobin [Mon, 4 Mar 2013 16:56:20 +0000 (08:56 -0800)]
Merge pull request #10 from kimslawson/master
Added acrostic option
Kim Slawson [Mon, 4 Mar 2013 16:51:06 +0000 (11:51 -0500)]
Factor out acrostic code into its own function (DRY)