The social ethosa library for Python
Project description
social_ethosa
The social ethosa library using Python.
Get vk access token here: https://vkhost.github.io/ (choose the Kate mobile.)
install:
pip install social-ethosa --upgrade
usage:
from social_ethosa.vkcom import *
token = 'Your token here'
vk = Vk(token=token) # if you want auth to user
vk = Vk(token=Group_Access_Token, group_id='id your group') # if you want auth to group
@vk.on_message_new # handler new messages
def get_message(obj):
peer_id = obj.peer_id
message = obj.text
vk.messages.send(message='hello vkcom!', peer_id=peer_id, random_id=0)
@vk.on_error # errors handler
def get_error(error):
print(error.msg) # Example: No module named 'aa'
print(error.line) # Example: 1
print(error.code) # Example: ModuleNotFoundError
need help? no problem!
print(vk.help())
print()
print(vk.help('messages'))
print()
print(vk.help('messages.send'))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
social-ethosa-0.0.3.tar.gz
(8.4 kB
view hashes)
Built Distribution
Close
Hashes for social_ethosa-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7051e4a722bebc76c57c240d3409e399daa510f59e7fda15fec4e1a7522e5038 |
|
MD5 | 4948ed9509ffeeb2112fb86b4c9a9bcf |
|
BLAKE2b-256 | a1755007ee045c93ac6a30278c37cfc5298d3421c502fe14d190ff605216ade7 |