passio 1.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
passio-1.1.1/PKG-INFO ADDED
@@ -0,0 +1,13 @@
1
+ Metadata-Version: 2.4
2
+ Name: passio
3
+ Version: 1.1.1
4
+ Summary: simple Password strength checker & generator
5
+ Home-page: https://github.com/ezioauditore206c-blip/passio
6
+ Author: Ez__iO
7
+ Author-email: ezioauditore206c@gmail.com
8
+ Requires-Python: >=3.8
9
+ Dynamic: author
10
+ Dynamic: author-email
11
+ Dynamic: home-page
12
+ Dynamic: requires-python
13
+ Dynamic: summary
@@ -0,0 +1,53 @@
1
+ import random
2
+
3
+ class Passio:
4
+ def __init__(self, password):
5
+ self.password = password
6
+
7
+
8
+ @classmethod
9
+ def generate_simple_password(cls, length=8):
10
+ if length < 8:
11
+ length = 8
12
+
13
+ lower = "abcdefghijklmnopqrstuvwxyz"
14
+ upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
15
+ digits = "0123456789"
16
+ all_chars = lower + upper + digits
17
+
18
+
19
+ password = [
20
+ random.choice(lower),
21
+ random.choice(upper),
22
+ random.choice(digits),
23
+ ]
24
+
25
+ for _ in range(length - 3):
26
+ password.append(random.choice(all_chars))
27
+
28
+ random.shuffle(password)
29
+
30
+ return "".join(password)
31
+
32
+ def get_feedback(self):
33
+ feedback = []
34
+ if len (self.password) < 8:
35
+ feedback.append("Password too short")
36
+ if not any(c.isupper() for c in self.password):
37
+ feedback.append("Add at least one uppercase letter")
38
+ if not any(c.islower() for c in self.password):
39
+ feedback.append("Add at least one lowercase letter")
40
+ if not any(c.isdigit() for c in self.password):
41
+ feedback.append("Add at least one number")
42
+ if not feedback:
43
+ return "Password looks strong"
44
+ return ", ".join(feedback)
45
+
46
+
47
+
48
+
49
+ def check_strength(self):
50
+ return self.get_feedback() == "Password looks strong"
51
+ @staticmethod
52
+ def greet():
53
+ return "Welcome To passio"
passio-1.1.1/README.md ADDED
@@ -0,0 +1,5 @@
1
+ New Version of Passio!!
2
+ -removed bugs
3
+ -added password creator
4
+ Stat tuned for next updates
5
+ Author`s gmail : ezioauditore206c@gmail.com
@@ -0,0 +1,13 @@
1
+ Metadata-Version: 2.4
2
+ Name: passio
3
+ Version: 1.1.1
4
+ Summary: simple Password strength checker & generator
5
+ Home-page: https://github.com/ezioauditore206c-blip/passio
6
+ Author: Ez__iO
7
+ Author-email: ezioauditore206c@gmail.com
8
+ Requires-Python: >=3.8
9
+ Dynamic: author
10
+ Dynamic: author-email
11
+ Dynamic: home-page
12
+ Dynamic: requires-python
13
+ Dynamic: summary
@@ -0,0 +1,7 @@
1
+ README.md
2
+ setup.py
3
+ Passio/__init__.py
4
+ passio.egg-info/PKG-INFO
5
+ passio.egg-info/SOURCES.txt
6
+ passio.egg-info/dependency_links.txt
7
+ passio.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ Passio
passio-1.1.1/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
passio-1.1.1/setup.py ADDED
@@ -0,0 +1,12 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name="passio",
5
+ version="1.1.1",
6
+ packages=find_packages(),
7
+ description="simple Password strength checker & generator",
8
+ author="Ez__iO",
9
+ author_email="ezioauditore206c@gmail.com",
10
+ url="https://github.com/ezioauditore206c-blip/passio",
11
+ python_requires=">=3.8",
12
+ )