Add script level requirements.txt

This commit is contained in:
Anil Khatri 2019-10-05 21:44:59 +05:30
parent c11825aed6
commit ee51a36232
37 changed files with 64 additions and 53 deletions

View File

@ -0,0 +1 @@
sympy

View File

@ -0,0 +1 @@
aiml

View File

@ -0,0 +1 @@
selenium

View File

@ -0,0 +1 @@
Pillow

View File

@ -0,0 +1 @@
beautifulsoup4

View File

@ -0,0 +1 @@
simple-crypt

View File

@ -0,0 +1 @@
requests

View File

@ -0,0 +1 @@
xlrd

View File

@ -0,0 +1 @@
PyQt5

View File

@ -3,7 +3,7 @@ A simple tool which takes a HTML table as string, and converts it to python list
## Libraries Required
1. Beautiful Soap
`$pip install bs4`
`$pip install beautifulsoup4`
## 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.

View File

@ -32,4 +32,4 @@ html_table_string = """<table class="table table-condensed">
htmltabletolist = HTMLTableToList(html_table_string) ## args : HTML table as string
list_of_list = htmltabletolist.get_list()
pprint(list_of_list)
pprint(list_of_list)

View File

@ -0,0 +1 @@
beautifulsoup4

View File

@ -0,0 +1,2 @@
numpy
tensorflow

View File

@ -19,21 +19,21 @@ print('Image diameter will be '+ str(args.diameter))
im = Image.open(args.inputfile)
width, height = im.size
left = (width - int(args.diameter))/2
top = (height - int(args.diameter))/2
right = (width + int(args.diameter))/2
bottom = (height + int(args.diameter))/2
im = im.crop((left, top, right, bottom));
bigsize = (im.size[0] * 3, im.size[1] * 3)
mask = Image.new('L', bigsize, 0)
draw = ImageDraw.Draw(mask)
draw.ellipse((0, 0) + bigsize, fill=255)
mask = mask.resize(im.size, Image.ANTIALIAS)
im.putalpha(mask)
output = ImageOps.fit(im, mask.size, centering=(0.5, 0.5))
output.putalpha(mask)
output.save(args.outputfile)

View File

@ -0,0 +1 @@
Pillow

View File

@ -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.
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
```
pip install bs4
pip install beautifulsoup4
```
```
pip install requests

View File

@ -1,4 +1,4 @@
import webbrowser as wb
import webbrowser as wb
import requests
import re
import json

View File

@ -0,0 +1,2 @@
beautifulsoup4
requests

View File

@ -0,0 +1 @@
geocoder

View File

@ -0,0 +1 @@
geocoder

View File

@ -0,0 +1,3 @@
Telethon
twilio
requests

View File

@ -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.
## 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.

View File

@ -0,0 +1,2 @@
requests
beautifulsoup4

View File

@ -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...
- 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`
- `source env\bin\activate`
- `pip install -r requirements.txt`
- Run the scripts :)
- Run the script :)
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,
- Supporting files for the Script (If any)
- A separate `README.md` File with proper documentation.
- `requirements.txt` file for any required library.
- Add any third-party dependencies to `requirements.txt`
- If your script run on specific version of that library create a `requirements.txt` file in the script directory.
- `cd <your_script_dir>`
- `pip freeze > requirements.txt`
- How to create `requirements.txt` file
- `cd <your_script_dir>`
- Activate your local virtual environment
- `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.

View File

@ -0,0 +1,2 @@
requests
beautidulsoup4

View File

@ -1,4 +1,4 @@
beautifulsoup4>=4.0.0
requests>=2.0.0
img2pdf>=0.2.1
docopt>=0.6.0
docopt
img2pdf
requests
beautifulsoup4

View File

@ -0,0 +1 @@
requests

View File

@ -3,18 +3,18 @@
A simple implementation on how to take screenshots .
#### Required Modules :
- Numpy
- Numpy
```bash
pip install numpy
```
- Opencv
- Opencv
```bash
pip install opencv-python
```
- Pyautogui
- Pyautogui
```bash
pip3 install pyautogui --user
```
#### Results :
![alt text](https://github.com/moadmmh/Awesome-OpenCV/blob/master/Take_Screenshot/test.png)

View File

@ -0,0 +1,3 @@
numpy
PyAutoGUI
opencv-python

View File

@ -1,4 +1,3 @@
# WorkLog
pygithub
PyQt5
qdarkstyle
QDarkStyle
PyQt5
PyGithub

View File

@ -0,0 +1 @@
pytube

View File

@ -0,0 +1 @@
pycrypto

View File

@ -0,0 +1,2 @@
Pillow
fpdf

View File

@ -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

View File

@ -0,0 +1,2 @@
requests
Jinja2