forked from mukulhase/WebWhatsapp-Wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All working well, super pull request! (mukulhase#880)
* resolução do bug send image * refactor(Requirements): Removed pipenv, added utilities scripts, moved requirements to directory and added commitzen * test(__init__): Testing functions Check if all are working * fix(Docker,-SendImage-on-wapi.js,-added-samples): Fixed docker and remote.py, SendImage funcition also * style(Black): Added black style * missing install -r * feat(get_status()): Add known status when whatsapp web is opened in another browser from PR: https://github.com/mukulhase/WebWhatsapp-Wrapper/pull/873/commits * fix(Send-Seen-Error): Send Seen from PR: https://github.com/mukulhase/WebWhatsapp-Wrapper/pull/838/commits * docs(How-to-contribute-guide): Added a guide
- Loading branch information
1 parent
8798eaf
commit 7abcdce
Showing
41 changed files
with
996 additions
and
1,027 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,5 @@ docs/_build | |
.coverage | ||
.eggs | ||
*.sublime-* | ||
.vscode | ||
geckodriver.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Use an official Python runtime as a parent image | ||
FROM python:2.7 | ||
FROM python:3.8 | ||
|
||
# Set the working directory to /app | ||
WORKDIR /app | ||
|
||
# COPY requirements to /app dir | ||
COPY requirements.txt /app | ||
|
||
# Install any needed packages specified in requirements.txt | ||
# Install any needed packages specified in base.txt | ||
RUN pip install --no-cache-dir --trusted-host pypi.python.org -r requirements.txt |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## Welcome! | ||
First of all, thanks for your contribution. This guide works well on linux with docker installed, if you use in another | ||
way, feel free to contribute. | ||
|
||
### System requirements | ||
* Python 3.5+ | ||
* pip | ||
* [Docker](https://docs.docker.com/get-docker/) | ||
* Docker compose: `$ sudo pip install docker-compose` | ||
* Some vnc client: in this guide we use [Remmina](https://remmina.org/) | ||
|
||
### Prepare environment | ||
* run `docker-compose up firefox`, then a instance of selenium in your | ||
[localhost:4444](http://localhost:4444/wd/hub/static/resource/hub.html) will be available | ||
* open your vnc client in localhost:5900, it will ask for a password that is `secret` | ||
|
||
### Run project | ||
* create some virtual env | ||
* install dependencies: `$ pip install -r requirements/development.txt` | ||
* create selenium variable: `$ export SELENIUM=http://localhost:4444/wd/hub` | ||
* create a number variable: `$ export MY_PHONE=55...` | ||
* run `$ ipython` and load a example `%load sample/message_with_thumb.py` | ||
* check your vnc client | ||
* run another example `%load sample/remote.py` | ||
|
||
### Commit standardization | ||
Please, use our tool `utils/commit.sh` to make commits more standardized | ||
* To apply [black](https://github.com/psf/black) style: `black .` |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1 @@ | ||
python-dateutil>=2.6.0 | ||
selenium>=3.4.3 | ||
six>=1.10.0 | ||
python-axolotl | ||
cryptography | ||
typing | ||
numpy | ||
python-magic | ||
-r requirements/base.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
python-dateutil>=2.6.0 | ||
selenium>=3.4.3 | ||
six>=1.10.0 | ||
python-axolotl>=0.2.3 | ||
cryptography>=2.9.2 | ||
typing>=3.7.4.1 | ||
numpy>=1.18.4 | ||
python-magic>=0.4.18 | ||
python-resize-image==1.1.19 | ||
Pillow>=7.1.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-r base.txt | ||
commitizen>=1.22.0 | ||
black==19.10b0 | ||
flake8 | ||
flake8-black==0.2.0 | ||
coverage | ||
ipython |
File renamed without changes.
Oops, something went wrong.