{"id":13648379,"url":"https://github.com/justdoit0823/pywxclient","last_synced_at":"2026-04-10T03:41:57.726Z","repository":{"id":57458592,"uuid":"92467324","full_name":"justdoit0823/pywxclient","owner":"justdoit0823","description":"A simple WeChat client written in Python supports session persistence.","archived":false,"fork":false,"pushed_at":"2018-03-01T04:37:32.000Z","size":58,"stargazers_count":275,"open_issues_count":4,"forks_count":51,"subscribers_count":31,"default_branch":"master","last_synced_at":"2024-03-14T20:52:17.842Z","etag":null,"topics":["pywxclient","wechat-bot","wechat-framework","wechat-sdk"],"latest_commit_sha":null,"homepage":"http://pywxclient.readthedocs.io/en/latest/index.html","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justdoit0823.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-26T03:16:08.000Z","updated_at":"2024-01-22T17:52:03.000Z","dependencies_parsed_at":"2022-09-09T23:12:21.427Z","dependency_job_id":null,"html_url":"https://github.com/justdoit0823/pywxclient","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justdoit0823%2Fpywxclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justdoit0823%2Fpywxclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justdoit0823%2Fpywxclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justdoit0823%2Fpywxclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justdoit0823","download_url":"https://codeload.github.com/justdoit0823/pywxclient/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250195033,"owners_count":21390230,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pywxclient","wechat-bot","wechat-framework","wechat-sdk"],"created_at":"2024-08-02T01:04:11.484Z","updated_at":"2025-12-13T23:19:20.753Z","avatar_url":"https://github.com/justdoit0823.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\npywxclient\n==========\n\n.. image:: https://travis-ci.org/justdoit0823/pywxclient.svg?branch=master\n    :target: https://travis-ci.org/justdoit0823/pywxclient\n\n\nA simple WeChat client is based on Web HTTP api, supporting authorization, login, fetching message and sending message.\n\nHere we go:\n\n\n.. code-block:: pycon\n\n   \u003e\u003e\u003e from pywxclient.core import Session, SyncClient\n\n   \u003e\u003e\u003e s1 = Session()\n\n   \u003e\u003e\u003e c1 = SyncClient(s1)\n\n   \u003e\u003e\u003e c1.get_authorize_url()  # Open the url in web browser\n\n   \u003e\u003e\u003e c1.authorize()  # Continue authorize when returning False\n\n   \u003e\u003e\u003e c1.login()\n\n   \u003e\u003e\u003e c1.sync_check()\n\n   \u003e\u003e\u003e msgs = c1.sync_message()  # Here are your wechat messages\n\n   \u003e\u003e\u003e c1.flush_sync_key()\n\n\nFeatures\n========\n\n  * WeChat authorization\n\n  * WeChat login\n\n  * Fetching WeChat contacts\n\n  * Fetching all possible messages\n\n  * Send text message\n\n  * Send image message\n\n  * Send video message\n\n  * Send file message\n\n  * Dump client as a dict\n\n  * Load client from a dict\n\n  * Local or network files uploading\n\n\n**pywxclient aims to only support Python 3, so there is no guarantee for Python 2.**\n\n\nInstallation\n============\n\nWe can simply use pip to install, as the following:\n\n.. code-block:: bash\n\n   $ pip install pywxclient\n\nor installing from git\n\n.. code-block:: bash\n\n   $ pip install git+https://github.com/justdoit0823/pywxclient\n\n\nExamples\n========\n\nIn the `examples \u003cexamples\u003e`_ directory, there are two simple python wechat client program as tutorials.\n\nOr you can write a more complex wechat client with this `pywxclient` package.\n\n\nDocumentation\n===============\n\nNow, the guys can visit website `pywxclient \u003chttp://pywxclient.readthedocs.io/en/latest/index.html\u003e`_  or build documentation as html files on local machines.\n\n.. code-block: bash\n\n   $ git clone https://github.com/justdoit0823/pywxclient\n\n   $ cd pywxclient\n\n   $ tox -e sphinx-doc\n\n\nCHANGELOG\n==========\n\nGo to `CHANGELOG.md \u003cCHANGELOG.md\u003e`_.\n\n\nHow to Contribute\n=================\n\nOpen an `issue \u003chttps://github.com/justdoit0823/pywxclient/issues\u003e`_, join a discussion or make a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustdoit0823%2Fpywxclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustdoit0823%2Fpywxclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustdoit0823%2Fpywxclient/lists"}