MCPcopy
hub / github.com/tgalal/yowsup

github.com/tgalal/yowsup @v3.3.0 sqlite

repository ↗ · DeepWiki ↗ · release v3.3.0 ↗
1,936 symbols 5,832 edges 352 files 141 documented · 7%
README

yowsup Build Status

For private consultancy feel free to directly schedule it over codementor.


yowsup is a python library that enables building applications that can communicate with WhatsApp users. The project started as the protocol engine behind Wazapp for Meego and OpenWA for BB10. Now as a standalone library it can be used to power any custom WhatsApp client.

updated: 2021-12-14
yowsup version: 3.3.0
yowsup-cli version: 3.2.1
requires:
- python>=2.7,<=3.7
- consonance==0.1.5
- python-axolotl==0.2.2
- protobuf>=3.6.0
- six==1.10
uses:
 - argparse [yowsup-cli]
 - readline [yowsup-cli]
 - pillow [send images]
 - tqdm [mediasink demo]
 - requests [mediasink demo]

See also

During maintenance of yowsup, several projects have been spawned in order to support different features that get introduced by WhatsApp. Some of those features are not necessarily exclusive to WhatsApp and therefore it only made sense to maintain some parts as standalone projects:

Quickstart

Installation

Install using setup.py to pull all Python dependencies, or pip:

pip install yowsup

Linux

You need to have installed Python headers (probably from python-dev package) and ncurses-dev, then run

python setup.py install

FreeBSD (*BSD)

You need to have installed: py27-pip-7.1.2(+), py27-sqlite3-2.7.11_7(+), then run

pip install yowsup

Mac OS

python setup.py install

Administrators privileges might be required, if so then run with 'sudo'

Windows

  • Install mingw compiler
  • Add mingw to your PATH
  • In PYTHONPATH\Lib\distutils create a file called distutils.cfg and add these lines:
[build]
compiler=mingw32
  • Install gcc: mingw-get.exe install gcc
  • Install zlib
  • python setup.py install

License:

As of January 1, 2015 yowsup is licensed under the GPLv3+: http://www.gnu.org/licenses/gpl-3.0.html.

Core symbols most depended-on inside this repo

getChild
called by 126
yowsup/structs/protocoltreenode.py
getAttributeValue
called by 117
yowsup/structs/protocoltreenode.py
addChild
called by 97
yowsup/structs/protocoltreenode.py
toUpper
called by 87
yowsup/layers/__init__.py
toLower
called by 71
yowsup/layers/__init__.py
getAllChildren
called by 40
yowsup/structs/protocoltreenode.py
assertConnected
called by 34
yowsup/demos/cli/layer.py
setAttribute
called by 34
yowsup/structs/protocoltreenode.py

Shape

Method 1,615
Class 314
Route 7

Languages

Python100%

Modules by API surface

yowsup/demos/cli/layer.py78 symbols
yowsup/layers/__init__.py55 symbols
yowsup/layers/protocol_messages/protocolentities/attributes/converter.py34 symbols
yowsup/stacks/yowstack.py28 symbols
yowsup/common/tools.py27 symbols
yowsup/axolotl/store/sqlite/liteaxolotlstore.py25 symbols
yowsup/layers/coder/decoder.py24 symbols
yowsup/axolotl/manager.py24 symbols
yowsup/layers/protocol_groups/layer.py23 symbols
yowsup/layers/interface/interface.py23 symbols
yowsup/structs/protocoltreenode.py20 symbols
yowsup/layers/coder/encoder.py20 symbols

Dependencies from manifests, versioned

appdirs1.4.4 · 1×
cffi1.15.0 · 1×
consonance0.1.5 · 1×
cryptography36.0.0 · 1×
dissononce0.34.3 · 1×
protobuf4.0.0rc2 · 1×
pycparser2.21 · 1×
python-axolotl0.2.2 · 1×
python-axolotl-curve255190.4.1.post2 · 1×
six1.10.0 · 1×
transitions0.8.10 · 1×

For agents

$ claude mcp add yowsup \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact