Skip to main content

Package containing basic functions to build telegram bots.

Project description

ethon

• Telegram_ • Github_

install

.. code:: python

pip install ethon

Usage

ethon.pyutils

.. code:: python

from ethon.pyutils import rename, file_extension

#rename files
rename(file, new_path) 

#get file extension using path of file
extension = file_extension(file)

ethon.pyfunc

.. code:: python

from ethon.pyfunc import bash, total_frames, video_metadata

#handy subprocess
o, e = bash(cmd)

#get total number of frames in a video
tf = total_frames(file)

#get basic metadata of video
data = video_metadata(file)

height = data["height"]
width = data["width"]
duration = data["duration"]

ethon.uploader

.. code:: python

from ethon.uploader import download_from_youtube, ytdl, weburl

#Download videos from youtube
filename = await download_from_youtube(url)

#Download videos from YtDlp supported sites
filename = await ytdl(url)

#Download files from the web
filename = weburl(url)

.. _Telegram: https://t.me/MaheshChauhan .. _Github : https://Github.com/Vasusen-code

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

ethon-0.1.5.tar.gz (21.5 kB view hashes)

Uploaded Source

Built Distribution

ethon-0.1.5-py3-none-any.whl (23.3 kB view hashes)

Uploaded Python 3

Supported by

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