Skip to content

Commit 38d9e4f

Browse files
Initial commit
0 parents  commit 38d9e4f

File tree

11 files changed

+210
-0
lines changed

11 files changed

+210
-0
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Deepak Raj
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Random-Profile-Generator
2+
Pip Module To Generate Random Profile

build/lib/randomname/__init__.py

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
'''
2+
python random name generator module
3+
author : codeperfectplus
4+
language : python 3.0 ++
5+
github : codeperfectplus
6+
'''
7+
import random
8+
first_names = ['John', 'Jane', 'Corey', 'Travis', 'Dave', 'Kurt', 'Neil', 'Sam', 'Steve', 'Tom', 'James', 'Robert', 'Michael', 'Charles', 'Joe', 'Mary', 'Maggie', 'Nicole', 'Patricia', 'Linda', 'Barbara', 'Elizabeth', 'Laura', 'Jennifer', 'Maria','Adam','Sturt','Nikolson','Tom','Harry','Ruskin']
9+
last_names = ['Smith', 'Doe', 'Jenkins', 'Robinson', 'Davis', 'Stuart', 'Jefferson', 'Jacobs', 'Wright', 'Patterson', 'Wilks', 'Arnold', 'Johnson', 'Williams', 'Jones', 'Brown', 'Davis', 'Miller', 'Wilson', 'Moore', 'Taylor', 'Anderson', 'Thomas', 'Jackson', 'White', 'Harris', 'Martin','Potter']
10+
street_names = ['Main', 'High', 'Pearl', 'Maple', 'Park', 'Oak', 'Pine', 'Cedar', 'Elm', 'Washington', 'Lake', 'Hill']
11+
fake_cities = ['Metropolis', 'Eerie', "King's Landing", 'Sunnydale', 'Bedrock', 'South Park', 'Atlantis', 'Mordor', 'Olympus', 'Dawnstar', 'Balmora', 'Gotham', 'Springfield', 'Quahog', 'Smalltown', 'Epicburg', 'Pythonville', 'Faketown', 'Westworld', 'Thundera', 'Vice City', 'Blackwater', 'Oldtown', 'Valyria', 'Winterfell', 'Braavos‎', 'Lakeview']
12+
states = ['AL', 'AK', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DC', 'DE', 'FL', 'GA', 'HI', 'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MD', 'MA', 'MI', 'MN', 'MS', 'MO', 'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'OH', 'OK', 'OR', 'PA', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VT', 'VA', 'WA', 'WV', 'WI', 'WY']
13+
14+
first = random.choice(first_names)
15+
last = random.choice(last_names)
16+
17+
phone = f'+91-{random.randint(800, 999)}{random.randint(800, 999)}{random.randint(1000,9999)}'
18+
19+
street_num = random.randint(100, 999)
20+
street = random.choice(street_names)
21+
city = random.choice(fake_cities)
22+
state = random.choice(states)
23+
zip_code = random.randint(10000, 99999)
24+
address = f'{street_num} {street} St., {city} {state} {zip_code}'
25+
email = first.lower() + last.lower() + '@bogusemail.com'
26+
27+
class Name:
28+
def __init__(self,num=1):
29+
'''
30+
num = Total No. of Name You Want
31+
'''
32+
self.num = num
33+
34+
def first_name(self):
35+
for i in range(self.num):
36+
print(f'{first}')
37+
38+
def last_name(self):
39+
for i in range(self.num):
40+
print(f'{last}')
41+
42+
def full_name(self):
43+
for i in range(self.num):
44+
print(f'{first} {last}')
45+
46+
def full_profile(self):
47+
for i in range(self.num):
48+
print(f'{first} {last} \n {street_num}-{street} {city}-{state}\n{zip_code}\n{phone}\n{email}')
49+
3.44 KB
Binary file not shown.

randomname.egg-info/PKG-INFO

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
Metadata-Version: 2.1
2+
Name: randomname
3+
Version: 3.0.0
4+
Summary: Generate Random Name
5+
Home-page: https://github.com/codeperfectplus/
6+
Author: CodePerfectPlus
7+
Author-email: [email protected]
8+
License: UNKNOWN
9+
Description: # Random Name Generator
10+
### Python Module
11+
#### pip install randomname
12+
13+
### Documentation
14+
```python
15+
#firt create a object for class 'Name'
16+
import randomname as rn
17+
name = rn.Name(num=1)
18+
'''
19+
num = How many name you want
20+
deafult is 1
21+
To Print More Than one Name Change value of num
22+
'''
23+
# For First Name
24+
name.first_name()
25+
26+
# For First Name
27+
name.full_name()
28+
29+
# For First Name
30+
name.full_profile()
31+
```
32+
33+
- Author : CodePerfectPlus
34+
- Language : Python
35+
- Github : https://github.com/codePerfectPlus
36+
- Website : http://codeperfectplus.github.io/
37+
Platform: UNKNOWN
38+
Classifier: Programming Language :: Python :: 3
39+
Classifier: License :: OSI Approved :: MIT License
40+
Classifier: Operating System :: OS Independent
41+
Description-Content-Type: text/markdown

randomname.egg-info/SOURCES.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
README.md
2+
setup.py
3+
randomname/__init__.py
4+
randomname.egg-info/PKG-INFO
5+
randomname.egg-info/SOURCES.txt
6+
randomname.egg-info/dependency_links.txt
7+
randomname.egg-info/top_level.txt
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

randomname.egg-info/top_level.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
randomname

randomname/__init__.py

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
'''
2+
python random name generator module
3+
author : codeperfectplus
4+
language : python 3.0 ++
5+
github : codeperfectplus
6+
'''
7+
import random
8+
first_names = ['John', 'Jane', 'Corey', 'Travis', 'Dave', 'Kurt', 'Neil', 'Sam', 'Steve', 'Tom', 'James', 'Robert', 'Michael', 'Charles', 'Joe', 'Mary', 'Maggie', 'Nicole', 'Patricia', 'Linda', 'Barbara', 'Elizabeth', 'Laura', 'Jennifer', 'Maria','Adam','Sturt','Nikolson','Tom','Harry','Ruskin']
9+
last_names = ['Smith', 'Doe', 'Jenkins', 'Robinson', 'Davis', 'Stuart', 'Jefferson', 'Jacobs', 'Wright', 'Patterson', 'Wilks', 'Arnold', 'Johnson', 'Williams', 'Jones', 'Brown', 'Davis', 'Miller', 'Wilson', 'Moore', 'Taylor', 'Anderson', 'Thomas', 'Jackson', 'White', 'Harris', 'Martin','Potter']
10+
street_names = ['Main', 'High', 'Pearl', 'Maple', 'Park', 'Oak', 'Pine', 'Cedar', 'Elm', 'Washington', 'Lake', 'Hill']
11+
fake_cities = ['Metropolis', 'Eerie', "King's Landing", 'Sunnydale', 'Bedrock', 'South Park', 'Atlantis', 'Mordor', 'Olympus', 'Dawnstar', 'Balmora', 'Gotham', 'Springfield', 'Quahog', 'Smalltown', 'Epicburg', 'Pythonville', 'Faketown', 'Westworld', 'Thundera', 'Vice City', 'Blackwater', 'Oldtown', 'Valyria', 'Winterfell', 'Braavos‎', 'Lakeview']
12+
states = ['AL', 'AK', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DC', 'DE', 'FL', 'GA', 'HI', 'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MD', 'MA', 'MI', 'MN', 'MS', 'MO', 'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'OH', 'OK', 'OR', 'PA', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VT', 'VA', 'WA', 'WV', 'WI', 'WY']
13+
14+
first = random.choice(first_names)
15+
last = random.choice(last_names)
16+
17+
phone = f'+91-{random.randint(800, 999)}{random.randint(800, 999)}{random.randint(1000,9999)}'
18+
19+
street_num = random.randint(100, 999)
20+
street = random.choice(street_names)
21+
city = random.choice(fake_cities)
22+
state = random.choice(states)
23+
zip_code = random.randint(10000, 99999)
24+
address = f'{street_num} {street} St., {city} {state} {zip_code}'
25+
email = first.lower() + last.lower() + '@bogusemail.com'
26+
27+
class Name:
28+
def __init__(self,num=1):
29+
'''
30+
num = Total No. of Name You Want
31+
'''
32+
self.num = num
33+
34+
def first_name(self):
35+
for i in range(self.num):
36+
print(f'{first}')
37+
38+
def last_name(self):
39+
for i in range(self.num):
40+
print(f'{last}')
41+
42+
def full_name(self):
43+
for i in range(self.num):
44+
print(f'{first} {last}')
45+
46+
def full_profile(self):
47+
for i in range(self.num):
48+
print(f'{first} {last} \n {street_num}-{street} {city}-{state}\n{zip_code}\n{phone}\n{email}')
49+

setup.py

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import setuptools
2+
3+
with open("README.md", "r") as fh:
4+
long_description = fh.read()
5+
6+
setuptools.setup(
7+
#Here is the module name.
8+
name="randomname",
9+
10+
#version of the module
11+
version="3.0.0",
12+
13+
#Name of Author
14+
author="CodePerfectPlus",
15+
16+
#your Email address
17+
author_email="[email protected]",
18+
19+
#Small Description about module
20+
description="Generate Random Name",
21+
22+
long_description=long_description,
23+
24+
#Specifying that we are using markdown file for description
25+
long_description_content_type="text/markdown",
26+
27+
#Any link to reach this module, if you have any webpage or github profile
28+
url="https://github.com/codeperfectplus/",
29+
packages=setuptools.find_packages(),
30+
31+
#classifiers like program is suitable for python3, just leave as it is.
32+
classifiers=[
33+
"Programming Language :: Python :: 3",
34+
"License :: OSI Approved :: MIT License",
35+
"Operating System :: OS Independent",
36+
],
37+
)

0 commit comments

Comments
 (0)