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/Tashri2342 .. _Github : https://Github.com/Tashri2342
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
Tashriethon-0.0.2.tar.gz
(21.7 kB
view details)
Built Distribution
File details
Details for the file Tashriethon-0.0.2.tar.gz
.
File metadata
- Download URL: Tashriethon-0.0.2.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fefbb5a9409df91901aa354fb4e42409ab42443b39f4ff21fc6655ca06eaf66 |
|
MD5 | ec7b88b878cd6e2c68e5f2b7da3339ed |
|
BLAKE2b-256 | 6e84f625b901504c294999cb56680a8ebff8d77bdb762b109fb31b2d30b5a0a6 |
File details
Details for the file Tashriethon-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: Tashriethon-0.0.2-py3-none-any.whl
- Upload date:
- Size: 23.4 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 | f9199f93f78e4badcf0d5241071a3cee4c13b4d474cd8c9d9d0234f63591d670 |
|
MD5 | 8543b82636256c51301026f023b010ad |
|
BLAKE2b-256 | 30f5487f16a818d2263917ca442bab9e41d4965d2b85cab28998e54b4f7ac8ef |