File tree 6 files changed +56
-10
lines changed
6 files changed +56
-10
lines changed Original file line number Diff line number Diff line change
1
+ language : python
2
+ python :
3
+ - " 3.4"
4
+ - " 3.5"
5
+ - " 3.6"
6
+ # command to install dependencies
7
+ install :
8
+ - pip install .
9
+ # command to run tests
10
+ script :
11
+ - pytest tests/*.py
Original file line number Diff line number Diff line change @@ -19,3 +19,13 @@ git clone https://github.com/ismailtasdelen/Python-Randon-Password-Generator.git
19
19
```
20
20
git clone [email protected] :ismailtasdelen/Python-Randon-Password-Generator.git
21
21
```
22
+
23
+ ## Run pip3 install to set up this script
24
+ ```
25
+ pip3 install .
26
+ ```
27
+
28
+ ## Generating a password via following command
29
+ ```
30
+ python3 run.py
31
+ ```
Original file line number Diff line number Diff line change 2
2
# -*- conding:utf-8 -*-
3
3
4
4
import os
5
+ from source import rpg
5
6
6
7
## Running
7
- os .system ("python source/rpg.py" )
8
+ rpg .random_password_generator_ico ()
9
+ print ("Password : " + rpg .random_password_generator ())
Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+
3
+ from setuptools import setup
4
+
5
+ setup (name = 'rpg' ,
6
+ version = '0.1' ,
7
+ description = 'Python - Random Password Generator ( R.P.G. )' ,
8
+ url = 'https://github.com/ismailtasdelen/Python-Random-Password-Generator' ,
9
+ author = 'İSMAİL TAŞDELEN' ,
10
+
11
+ license = 'MIT' ,
12
+ packages = ['source' ],
13
+ python_requires = ">=3" ,
14
+ zip_safe = False )
Original file line number Diff line number Diff line change 4
4
import string
5
5
import random
6
6
7
- def random_password_genertor ():
7
+ def random_password_generator ():
8
8
chars = string .ascii_uppercase + string .ascii_lowercase + string .digits
9
9
size = 8
10
- return '' .join (random .choice (chars ) for x in range (size ,20 ))
10
+ return '' .join (random .choice (chars ) for x in range (size , 20 ))
11
11
12
- def random_password_genertor_ico ():
13
- random_password_genertor_ico = """
12
+ def random_password_generator_ico ():
13
+ random_password_generator_ico = """
14
14
#############################################################
15
15
# PYTHON - Random Password Generetor (RPG) - GH0ST S0FTWARE #
16
- #############################################################
16
+ #############################################################
17
17
# CONTACT #
18
18
#############################################################
19
19
# DEVELOPER : İSMAİL TAŞDELEN #
@@ -22,7 +22,4 @@ def random_password_genertor_ico():
22
22
# Whatsapp : + 90 534 295 94 31 #
23
23
#############################################################
24
24
"""
25
- print random_password_genertor_ico
26
-
27
- random_password_genertor_ico ()
28
- print ("Password : " + random_password_genertor ())
25
+ print (random_password_generator_ico )
Original file line number Diff line number Diff line change
1
+ # -*- coding:utf-8 -*-
2
+
3
+ import unittest
4
+
5
+ from source import rpg
6
+
7
+ class rpg_test (unittest .TestCase ):
8
+ def test_random_password_generator (self ):
9
+ result_password = len (rpg .random_password_generator ())
10
+
11
+ self .assertGreaterEqual (result_password , 8 )
12
+ self .assertLessEqual (result_password , 20 )
You can’t perform that action at this time.
0 commit comments