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.2.tar.gz
(21.0 kB
view details)
Built Distribution
ethon-0.1.2-py3-none-any.whl
(22.8 kB
view details)
File details
Details for the file ethon-0.1.2.tar.gz
.
File metadata
- Download URL: ethon-0.1.2.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ee5ed9a9b6c6e4896779efe8219f97a3dc5dab4b00c088c63e7b23a2da88061 |
|
MD5 | 583f050e13747034b379c2600ed3bdf5 |
|
BLAKE2b-256 | 713fbf5e6083f81d70e04dbaddacb492bda8c8eb6d1556c14facb44b99aa045e |
File details
Details for the file ethon-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: ethon-0.1.2-py3-none-any.whl
- Upload date:
- Size: 22.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c01e254fc92abdca2838ba47d255e68844df8287abdaebea813b8208850ca27 |
|
MD5 | 5dddadf27cdeebc3cb14965142ee24b9 |
|
BLAKE2b-256 | 92da9281638f83ab42a06a5d73b1294f61124a223dab6a6ed783d43c106ce71e |