Skip to main content

A pypi package to send message in different mediums.

Project description

PlanetLink

A pypi package to send message in different mediums.

Usage

  1. import

    from PlanetLink.wxBot import wxBot
    
  2. define veriables

    corpid = 'xxxxxxxxxx'
    corpsecret = 'xxxxxxxxxxxxxxxxxxxxxx'
    agentid = 'xxxxxx'
    title = 'title'
    sign = 'sign'
    
  3. initial

    bot = wxBot()
    bot.initBot(corpid,corpsecret,agentid,title,sign)
    
  4. add content to wxMessageDemo

    bot.addContent("title: 'test1'\nvalue: 'val1'")
    bot.addContent("title: 'test2'\nvalue: 'val2'")
    
  5. send

    bot.send()
    
  6. get message

    Message: ⛔ title
    [2023-11-16 16:59:17]
    ========================
    title: 'test1'
    value: 'val1'
    -------------------------------------
    title: 'test2'
    value: 'val2'
    -------------------------------------
    

Message Configs

Sign and symbol

sign symbol
WARNING ⚠️
ERROR
COMPLETE
INFO 🔵
ELSE

TODO List

  • release pypi package
  • add return value and error log
  • add list form of message

Update History

  • [20220924] first version of weChat message send API
  • [20231116] rebuild code and release the first pypi package

Pypi release version log

  • 0.0.1 : first version of PlanetLink
  • 0.0.2 : add clearContent and getSendContent function

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PlanetLink-0.0.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PlanetLink-0.0.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page