
Security News
pnpm 10.12 Introduces Global Virtual Store and Expanded Version Catalogs
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
User Guide: https://developers.facebook.com/docs/whatsapp/guides/wadebug
WADebug is a command-line tool to help find any potential issues with WhatsApp Business API setup, and to make requesting for help from WhatsApp support more effective.
To run, simply type wadebug
on command-ine and check the diagnostic.
It will guide on some problems and provide guidance if you need additional
support.
To retrieve and save logs under wadebug_logs/ in the current directory:
$ wadebug logs
To retrieve logs and send them to Facebook for troubleshooting:
$ wadebug logs --send
[New since v0.1.5] To retrieve logs starting from a particular date time (GMT timezone), e.g.:
$ wadebug logs --since='2020-01-07 3:00:02'
To execute all checks:
$ wadebug
To list all available options:
$ wadebug ls
To execute one specific check:
$ wadebug partial check_mysql_version check_network
JSON mode:
$ wadebug --json
$ pip3 install wadebug
This tool uses tox
to test in Python 3. tox
will create
virtual environments to run tests. Install tox on your system's Python.
All other dependencies with go into virtualenvs.
pip install tox
, you may need to run the command in sudo
tox
in the root directory. Tests should run and pass.source .tox/py3/bin/activate
to enable one of the virtualenvs. Dependencies will be installed automatically.pip install --editable .
to enable wadebug
in all directories that would reflect your changes.wadebug
with environment variable WADEBUG_DEV_MODE=True
to enable full stacktrace. The variable is set to False by default.To execute all unit tests, from project's root folder directory run:
$ tox
Warning: do NOT run tox
from a virtualenv as it will fail.
tox
will run tests in Python 3 and run flake8 linter.
To run tests in Python 3 for faster feedback, run either $ pytest
from within the virtualenv or $ tox -epy3
out of it.
To run tests in a particular module:
source .tox/py3/bin/activate # to enable virtualenv on Bash $ pytest wadebug/wa_actions/tests/test_check_webapp_port.py -v
(-v
turns on verbose mode, which shows every test case in the module)
click
to build the command-line interfaceMore details can be found at setup.py
file.
The module wa_actions.implementations
is the heart of the tool. Each action
is a Python class with one static method called _run
. This method describes the
action to perform.
The idea is that a developer can implement a new action
to investigate a
potential problem with the deployment without knowing anything about wadebug
architecture.
Three sample actions can be seem on wadebug/wa_actions/implementations/dummy_action.py
to understand how they are created.
On wadebug/wa_actions/implementations/check_webapp_port.py
the implementation of a real action can be found.
WADebug is MIT licensed.
FAQs
Investigate issues with WhatsApp Business API setup.
We found that wadebug demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.