mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-27 22:11:10 +00:00
Merge branch 'master' into master
This commit is contained in:
commit
0ba6f69701
14
README.md
14
README.md
|
@ -330,20 +330,6 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
|
|||
<br />
|
||||
<sub><b>Sameer Sahu</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/NishantPacharne">
|
||||
<img src="https://avatars.githubusercontent.com/u/71060551?v=4" width="100;" alt="NishantPacharne"/>
|
||||
<br />
|
||||
<sub><b>Nishant Pacharne</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/tolgakurtuluss">
|
||||
<img src="https://avatars.githubusercontent.com/u/22731161?v=4" width="100;" alt="tolgakurtuluss"/>
|
||||
<br />
|
||||
<sub><b>Tolga Kurtulus</b></sub>
|
||||
</a>
|
||||
</td></tr>
|
||||
</table>
|
||||
<!-- readme: contributors -end -->
|
||||
|
|
22
scripts/Fake Data Generator/generator.py
Normal file
22
scripts/Fake Data Generator/generator.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
# pip install Faker
|
||||
from faker import Faker
|
||||
|
||||
fake = Faker()
|
||||
|
||||
print("--------- Generate ---------------")
|
||||
print("1. Name")
|
||||
print("2. Email")
|
||||
print("3. Job")
|
||||
print("4. Address")
|
||||
|
||||
options = {1: fake.name(), 2: fake.email(), 3: fake.job(), 4: fake.address()}
|
||||
|
||||
print("----------------------------------")
|
||||
user_input = int(input("Choose Option:- "))
|
||||
|
||||
print("----------------------------------")
|
||||
|
||||
if user_input in options:
|
||||
print(f"Result: {options[user_input]}")
|
||||
else:
|
||||
print("Please try again with a valid option.")
|
15
scripts/Fake Data Generator/readme.md
Normal file
15
scripts/Fake Data Generator/readme.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
|
||||
# Fake Data Generator
|
||||
super easy and simple python script to generate random data
|
||||
|
||||
## Perfect for beginners
|
||||
- usage of libraries
|
||||
- working with input
|
||||
- working with dictionaries
|
||||
|
||||
## Installation
|
||||
Install the dependencies
|
||||
|
||||
```sh
|
||||
pip install -r requirements.txt
|
||||
```
|
3
scripts/Fake Data Generator/requirements.txt
Normal file
3
scripts/Fake Data Generator/requirements.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
Faker==15.0.0
|
||||
python-dateutil==2.8.2
|
||||
six==1.16.0
|
Loading…
Reference in New Issue
Block a user