Added PyPi package

This commit is contained in:
Alexandre Possebom 2014-09-22 17:16:38 -03:00
parent 0933985cad
commit 438dce9faa
2 changed files with 19 additions and 1 deletions

18
setup.py Normal file
View File

@ -0,0 +1,18 @@
from setuptools import setup, find_packages
import sys, os
version = '0.1'
setup(name='twik',
version=version,
description="Twik is an application that makes it easier to generate secure and different passwords for each website.",
keywords='twik password hash',
author='Alexandre Possebom',
author_email='alexandrepossebom@gmail.com',
url='https://github.com/coxande/Twik',
license='GPLv3',
packages=['twik'],
entry_points = {
'console_scripts': ['twik = twik:main'],
},
)

2
twik → twik/__init__.py Executable file → Normal file
View File

@ -126,7 +126,7 @@ def getpassword(tag, private_key, master_key, length, password_type):
password = generatehash(hash, master_key, length, password_type)
print "Your password is %s" % password
if __name__ == "__main__":
def main():
global PasswordType
PasswordType = enum(ALPHANUMERIC_AND_SPECIAL_CHARS=1, ALPHANUMERIC=2,
NUMERIC=3)