All Projects → wechaty → python-wechaty-getting-started

wechaty / python-wechaty-getting-started

Licence: Apache-2.0 license
Python Wechaty Starter Project Template that Works Out-of-the-Box

Programming Languages

Makefile
30231 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to python-wechaty-getting-started

java-wechaty-getting-started
Java Wechaty Starter Project Template that Works Out-of-the-Box
Stars: ✭ 30 (-78.57%)
Mutual labels:  getting-started, wechaty
getting-started
A Starter Project Template for Wechaty works out-of-the-box
Stars: ✭ 512 (+265.71%)
Mutual labels:  getting-started, wechaty
Getting-Started-with-Cosmos-DB
A tutorial about how to start with Cosmos DB - The information I would have loved to have before setting out with Cosmos DB.
Stars: ✭ 16 (-88.57%)
Mutual labels:  getting-started
projen-test
An example project explaining how to create and publish CDK constructs using projen and jsii. It lets you publish your CDK constructs to npm, Maven, NuGet and PyPi.
Stars: ✭ 23 (-83.57%)
Mutual labels:  getting-started
react-simple-boilerplate
A lightweight React Boilerplate
Stars: ✭ 89 (-36.43%)
Mutual labels:  getting-started
hacking-datascience
Notebooks and design assets related to my publication 'hacking-datascience' on Medium.
Stars: ✭ 41 (-70.71%)
Mutual labels:  getting-started
ssvm-deno-starter
A template project to run Rust functions in Deno through the Second State WebAssembly engine.
Stars: ✭ 50 (-64.29%)
Mutual labels:  getting-started
bookshelf
Hanami "Getting Started" project
Stars: ✭ 20 (-85.71%)
Mutual labels:  getting-started
resources
Resource Library of IEEE-VIT
Stars: ✭ 33 (-76.43%)
Mutual labels:  getting-started
awesome-devops ru
Roadmap по материалам о DevOps, помогающим его понять, осмыслить и принять
Stars: ✭ 45 (-67.86%)
Mutual labels:  getting-started
elixir getting started guide to go
Elixir Getting Started Guide (EPUB format)
Stars: ✭ 19 (-86.43%)
Mutual labels:  getting-started
Getting-Started-With-Contributing-to-Open-Sources
This has useful links to help you get started with contributing to open sources.
Stars: ✭ 44 (-68.57%)
Mutual labels:  getting-started
nanobox-rails
Quickly set up a Ruby on Rails app on Nanobox, the ideal platform for developers. With Nanobox, Rails app developers can set up instant, isolated development environments that can be shared among team members. Rails apps created using Nanobox can be automatically deployed to AWS, Azure, Google Cloud, and other cloud hosts without the need for de…
Stars: ✭ 19 (-86.43%)
Mutual labels:  getting-started
seed-pixi-typescript
A pre installed environnement to work with pixi.js with webpack & typescript
Stars: ✭ 36 (-74.29%)
Mutual labels:  getting-started
orbs-starter-kit
The starting point for writing a new application on Orbs platform
Stars: ✭ 19 (-86.43%)
Mutual labels:  getting-started
wasmedge-nodejs-starter
A template project to run Rust functions in Node.js through the Second State WebAssembly engine.
Stars: ✭ 148 (+5.71%)
Mutual labels:  getting-started
nanobox-express
Quickstart for Express on Nanobox
Stars: ✭ 13 (-90.71%)
Mutual labels:  getting-started
Kubeadm
Aggregator for issues filed against kubeadm
Stars: ✭ 2,876 (+1954.29%)
Mutual labels:  getting-started
skeleton-starter-flow-spring
Default project template for Vaadin using Spring Boot
Stars: ✭ 29 (-79.29%)
Mutual labels:  getting-started
awesome-teachable-machine
Useful resources for creating projects with Teachable Machine models + curated list of already built Awesome Apps!
Stars: ✭ 110 (-21.43%)
Mutual labels:  getting-started

python-wechaty-getting-started PyPI Version Python 3.7

Python Wechaty

Gitpod Ready-to-Code Wechaty in Python

Python Wechaty Starter Project Template that Works Out-of-the-Box

Connecting Chatbots

Powered by Wechaty

Wechaty is a RPA SDK for Wechat Individual Account that can help you create a chatbot in 9 lines of Python.

Requirements

  1. python3.7+

Live Coding Video Tutorial

Here's a great live coding video tutorial from our Python Wechaty creator @wj-Mcat: https://wechaty.js.org/2020/10/26/python-wechaty-live-coding/

Quick Start

  1. Clone python-wechaty-getting-started repository

    git clone https://github.com/wechaty/python-wechaty-getting-started
    cd python-wechaty-getting-started
  2. Install Dependencies

    make install
    # or
    pip install -r requirements.txt
  3. Set token for your bot

You need a Wechaty Puppet Service Token first, you can learn how to get it from our official docs at https://wechaty.js.org/docs/puppet-services/.

```sh
# examples/ding-dong-bot.py : func-> main()
# it must be donut token
export WECHATY_PUPPET=wechaty-puppet-service
export WECHATY_PUPPET_SERVICE_TOKEN=your_token_at_here
```

or you can use `TOKEN` or `token` environment variable alias name to set **token**, for example:

```shell
export TOKEN=your_token_at_here
# or
export token=your_token_at_here
```

Learn more about the token related concepts by reading our blog post: Introducing Wechaty Puppet Service (Providers), @huan, Jan 14, 2021

  1. Run the bot

    make bot
    # or
    python examples/ding-dong-bot.py

The World's Shortest Python ChatBot: 9 lines of Code

from wechaty import Wechaty

import asyncio
async def main():
    bot = Wechaty()
    bot.on('scan', lambda status, qrcode, data: print('Scan QR Code to login: {}\nhttps://wechaty.wechaty.js/qrcode/{}'.format(status, qrcode)))
    bot.on('login', lambda user: print('User {} logged in'.format(user)))
    bot.on('message', lambda message: print('Message: {}'.format(message)))
    await bot.start()
asyncio.run(main())

Wechaty Getting Started in Multiple Languages

Badge

Wechaty in Python

[![Wechaty in Python](https://img.shields.io/badge/Wechaty-Python-blue)](https://github.com/wechaty/python-wechaty)

Maintainers

@wechaty/python

Copyright & License

  • Code & Docs © 2020 Wechaty Contributors https://github.com/wechaty
  • Code released under the Apache-2.0 License
  • Docs released under Creative Commons
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].