mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2024-11-23 20:11:07 +00:00
Add script level requirements.txt
This commit is contained in:
parent
c11825aed6
commit
ee51a36232
1
Algebra-Solver/requirements.txt
Normal file
1
Algebra-Solver/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
sympy
|
1
Artificial-intelligence_bot/requirements.txt
Normal file
1
Artificial-intelligence_bot/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
aiml
|
1
Codechef-Code-Submitter/requirements.txt
Normal file
1
Codechef-Code-Submitter/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
selenium
|
1
Color_to_BW_Converter/requirements.txt
Normal file
1
Color_to_BW_Converter/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Pillow
|
1
CricBuzz_Score_Update/requirements.txt
Normal file
1
CricBuzz_Score_Update/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
beautifulsoup4
|
1
Crypt_Socket/requirements.txt
Normal file
1
Crypt_Socket/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
simple-crypt
|
1
Current_City_Weather/requirements.txt
Normal file
1
Current_City_Weather/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
requests
|
1
Excel_to_ListofList/requirements.txt
Normal file
1
Excel_to_ListofList/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
xlrd
|
1
File-Explorer-Dialog-Box/requirements.txt
Normal file
1
File-Explorer-Dialog-Box/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
PyQt5
|
|
@ -3,7 +3,7 @@ A simple tool which takes a HTML table as string, and converts it to python list
|
||||||
|
|
||||||
## Libraries Required
|
## Libraries Required
|
||||||
1. Beautiful Soap
|
1. Beautiful Soap
|
||||||
`$pip install bs4`
|
`$pip install beautifulsoup4`
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
A sample script `html_table_to_list_usage.py` has been provided to show the usage of the HTMLTableToList. It takes a string of html table, and prints the corresponding list of list.
|
A sample script `html_table_to_list_usage.py` has been provided to show the usage of the HTMLTableToList. It takes a string of html table, and prints the corresponding list of list.
|
||||||
|
|
|
@ -32,4 +32,4 @@ html_table_string = """<table class="table table-condensed">
|
||||||
|
|
||||||
htmltabletolist = HTMLTableToList(html_table_string) ## args : HTML table as string
|
htmltabletolist = HTMLTableToList(html_table_string) ## args : HTML table as string
|
||||||
list_of_list = htmltabletolist.get_list()
|
list_of_list = htmltabletolist.get_list()
|
||||||
pprint(list_of_list)
|
pprint(list_of_list)
|
||||||
|
|
1
HTML_Table_to_List/requirements.txt
Normal file
1
HTML_Table_to_List/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
beautifulsoup4
|
2
Handwriting_Recognizer/requirements.txt
Normal file
2
Handwriting_Recognizer/requirements.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
numpy
|
||||||
|
tensorflow
|
|
@ -19,21 +19,21 @@ print('Image diameter will be '+ str(args.diameter))
|
||||||
im = Image.open(args.inputfile)
|
im = Image.open(args.inputfile)
|
||||||
|
|
||||||
width, height = im.size
|
width, height = im.size
|
||||||
|
|
||||||
left = (width - int(args.diameter))/2
|
left = (width - int(args.diameter))/2
|
||||||
top = (height - int(args.diameter))/2
|
top = (height - int(args.diameter))/2
|
||||||
right = (width + int(args.diameter))/2
|
right = (width + int(args.diameter))/2
|
||||||
bottom = (height + int(args.diameter))/2
|
bottom = (height + int(args.diameter))/2
|
||||||
|
|
||||||
im = im.crop((left, top, right, bottom));
|
im = im.crop((left, top, right, bottom));
|
||||||
|
|
||||||
bigsize = (im.size[0] * 3, im.size[1] * 3)
|
bigsize = (im.size[0] * 3, im.size[1] * 3)
|
||||||
mask = Image.new('L', bigsize, 0)
|
mask = Image.new('L', bigsize, 0)
|
||||||
draw = ImageDraw.Draw(mask)
|
draw = ImageDraw.Draw(mask)
|
||||||
draw.ellipse((0, 0) + bigsize, fill=255)
|
draw.ellipse((0, 0) + bigsize, fill=255)
|
||||||
mask = mask.resize(im.size, Image.ANTIALIAS)
|
mask = mask.resize(im.size, Image.ANTIALIAS)
|
||||||
im.putalpha(mask)
|
im.putalpha(mask)
|
||||||
|
|
||||||
output = ImageOps.fit(im, mask.size, centering=(0.5, 0.5))
|
output = ImageOps.fit(im, mask.size, centering=(0.5, 0.5))
|
||||||
output.putalpha(mask)
|
output.putalpha(mask)
|
||||||
output.save(args.outputfile)
|
output.save(args.outputfile)
|
||||||
|
|
1
Image-Circulator/requirements.txt
Normal file
1
Image-Circulator/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Pillow
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
This is a simple python script which uses web scraping techniques to display the instagram dp of any user just by typing its username.
|
This is a simple python script which uses web scraping techniques to display the instagram dp of any user just by typing its username.
|
||||||
|
|
||||||
To use this script, you need to have bs4 and requests libraries of python installed in your local machine.
|
To use this script, you need to have bs4 and requests libraries of python installed in your local machine.
|
||||||
|
|
||||||
To install bs4 and requests, use the following command
|
To install bs4 and requests, use the following command
|
||||||
|
|
||||||
```
|
```
|
||||||
pip install bs4
|
pip install beautifulsoup4
|
||||||
```
|
```
|
||||||
```
|
```
|
||||||
pip install requests
|
pip install requests
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import webbrowser as wb
|
import webbrowser as wb
|
||||||
import requests
|
import requests
|
||||||
import re
|
import re
|
||||||
import json
|
import json
|
||||||
|
|
2
InstadpShower/requirements.txt
Normal file
2
InstadpShower/requirements.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
beautifulsoup4
|
||||||
|
requests
|
1
Location_Of_Adress/requirements.txt
Normal file
1
Location_Of_Adress/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
geocoder
|
1
Location_Of_Own_IP_Adress/requirements.txt
Normal file
1
Location_Of_Own_IP_Adress/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
geocoder
|
3
Ping_Server/requirements.txt
Normal file
3
Ping_Server/requirements.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
Telethon
|
||||||
|
twilio
|
||||||
|
requests
|
|
@ -5,4 +5,4 @@ A simple tool that asynchronously scans a server's ports with python. It's prett
|
||||||
None, the only libraries that are used are built-ins.
|
None, the only libraries that are used are built-ins.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
Use "port_scanner.py", and enter the IP that you want to scan when prompted.
|
Use "port_scanner.py", and enter the IP that you want to scan when prompted.
|
||||||
|
|
2
Proxy-Request/requirements.txt
Normal file
2
Proxy-Request/requirements.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
requests
|
||||||
|
beautifulsoup4
|
14
README.md
14
README.md
|
@ -58,12 +58,12 @@ So far, the following projects have been integrated to this repo:
|
||||||
|
|
||||||
- Clone/Download the directory and navigate to each folder. Or...
|
- Clone/Download the directory and navigate to each folder. Or...
|
||||||
- Simply navigate to the folder and download/copy the scripts! It's *that* simple and easy.
|
- Simply navigate to the folder and download/copy the scripts! It's *that* simple and easy.
|
||||||
- Setup virtual environment for all scripts:
|
- Setup virtual environment for that scripts:
|
||||||
- `python -m venv env`
|
- `python -m venv env`
|
||||||
- `source env\bin\activate`
|
- `source env\bin\activate`
|
||||||
- `pip install -r requirements.txt`
|
- `pip install -r requirements.txt`
|
||||||
|
|
||||||
- Run the scripts :)
|
- Run the script :)
|
||||||
|
|
||||||
Remember to star the repo if you love the scipts~ :wink:
|
Remember to star the repo if you love the scipts~ :wink:
|
||||||
|
|
||||||
|
@ -78,10 +78,12 @@ Remember to star the repo if you love the scipts~ :wink:
|
||||||
- Main Python Script,
|
- Main Python Script,
|
||||||
- Supporting files for the Script (If any)
|
- Supporting files for the Script (If any)
|
||||||
- A separate `README.md` File with proper documentation.
|
- A separate `README.md` File with proper documentation.
|
||||||
|
- `requirements.txt` file for any required library.
|
||||||
|
|
||||||
- Add any third-party dependencies to `requirements.txt`
|
- How to create `requirements.txt` file
|
||||||
- If your script run on specific version of that library create a `requirements.txt` file in the script directory.
|
- `cd <your_script_dir>`
|
||||||
- `cd <your_script_dir>`
|
- Activate your local virtual environment
|
||||||
- `pip freeze > requirements.txt`
|
- `source env\bin\activate`
|
||||||
|
- `pip freeze > requirements.txt`
|
||||||
|
|
||||||
- Feel Free to add your script in the [project's list](https://github.com/hastagAB/Awesome-Python-Scripts#what-do-we-have) above.
|
- Feel Free to add your script in the [project's list](https://github.com/hastagAB/Awesome-Python-Scripts#what-do-we-have) above.
|
||||||
|
|
2
SimpleWebpageParser/requirements.txt
Normal file
2
SimpleWebpageParser/requirements.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
requests
|
||||||
|
beautidulsoup4
|
|
@ -1,4 +1,4 @@
|
||||||
beautifulsoup4>=4.0.0
|
docopt
|
||||||
requests>=2.0.0
|
img2pdf
|
||||||
img2pdf>=0.2.1
|
requests
|
||||||
docopt>=0.6.0
|
beautifulsoup4
|
||||||
|
|
1
Subtitle-downloader/requirements.txt
Normal file
1
Subtitle-downloader/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
requests
|
|
@ -3,18 +3,18 @@
|
||||||
A simple implementation on how to take screenshots .
|
A simple implementation on how to take screenshots .
|
||||||
|
|
||||||
#### Required Modules :
|
#### Required Modules :
|
||||||
- Numpy
|
- Numpy
|
||||||
```bash
|
```bash
|
||||||
pip install numpy
|
pip install numpy
|
||||||
```
|
```
|
||||||
- Opencv
|
- Opencv
|
||||||
```bash
|
```bash
|
||||||
pip install opencv-python
|
pip install opencv-python
|
||||||
```
|
```
|
||||||
- Pyautogui
|
- Pyautogui
|
||||||
```bash
|
```bash
|
||||||
pip3 install pyautogui --user
|
pip3 install pyautogui --user
|
||||||
```
|
```
|
||||||
#### Results :
|
#### Results :
|
||||||
|
|
||||||
![alt text](https://github.com/moadmmh/Awesome-OpenCV/blob/master/Take_Screenshot/test.png)
|
![alt text](https://github.com/moadmmh/Awesome-OpenCV/blob/master/Take_Screenshot/test.png)
|
||||||
|
|
3
Take_screenshot/requirements.txt
Normal file
3
Take_screenshot/requirements.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
numpy
|
||||||
|
PyAutoGUI
|
||||||
|
opencv-python
|
|
@ -1,4 +1,3 @@
|
||||||
# WorkLog
|
QDarkStyle
|
||||||
pygithub
|
PyQt5
|
||||||
PyQt5
|
PyGithub
|
||||||
qdarkstyle
|
|
||||||
|
|
1
Youtube_Video_Downloader/requirements.txt
Normal file
1
Youtube_Video_Downloader/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
pytube
|
1
asymmetric_cryptography/requirements.txt
Normal file
1
asymmetric_cryptography/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
pycrypto
|
2
images2pdf/requirements.txt
Normal file
2
images2pdf/requirements.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
Pillow
|
||||||
|
fpdf
|
|
@ -1,24 +0,0 @@
|
||||||
sympy
|
|
||||||
aiml
|
|
||||||
Crypto
|
|
||||||
selenium
|
|
||||||
Pillow
|
|
||||||
beautifulsoup4
|
|
||||||
simple-crypt
|
|
||||||
requests
|
|
||||||
xlrd
|
|
||||||
PyQt5
|
|
||||||
numpy
|
|
||||||
tensorflow
|
|
||||||
fpdf
|
|
||||||
geocoder
|
|
||||||
Telethon
|
|
||||||
twilio
|
|
||||||
docopt
|
|
||||||
img2pdf
|
|
||||||
PyAutoGUI
|
|
||||||
opencv-python
|
|
||||||
QDarkStyle
|
|
||||||
PyGithub
|
|
||||||
pytube
|
|
||||||
Jinja2
|
|
2
zabbix_api/requirements.txt
Normal file
2
zabbix_api/requirements.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
requests
|
||||||
|
Jinja2
|
Loading…
Reference in New Issue
Block a user