Git Product home page Git Product logo

asyncline's Introduction

AsyncLine
Line Messaging API for Python
PyPi Releases Community

Python License Build Version

Important

Please be warned: AsyncLine is in a very early beta. You will encounter bugs when using it. In addition, there are very many rough edges. With that said, please try it out in your applications: I need your feedback to fix the bugs and file down the rough edges.

Features

  • Fully Asynchronously
  • Slightly faster
  • Easy to use
  • Documented
  • Type-hint everywhere

Installation

  • pip3 install AsyncLine --upgrade

Simple usage

from AsyncLine import LineNext
import asyncio

cli = LineNext('ios')
cli.login(name='your session name', qr=True)

"""
Args login:
	name: string for create new session for next login, no effect if using token login
	token: string of token for login using token, no need to create session name
	mail: string of email that using for login using email, you can pass name session for custom session
			default using string of email for name session
	passwd: password of email used
	cert: (string | optional) if you have cert pass at this args for easy login using email
			sure you can use custom session name for this too
	qr: boolean pass True if want to login using authQr, and you can use custom session name
		e.g client.login(name="sync", qr=True) this needed for next login
"""

@cli.hooks(type=26, filters=Filters.command("hello"))
async def hello_message(client, msg):
	await client.talk.sendMessage(msg.to, "Heyy!")
	
#Run bot
cli.poll.streams()

Please read Example for more detail about usage this lib

Author

Dyseo / @Dyseo

Base Source

Asynz / Anysz

Getting Error

Issues always open for this

License

AsyncLine - Unofficially API Client library for Python

A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.

AsyncLine is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

asyncline's People

Contributors

alnyz avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.