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.4.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

ethon-0.1.4-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file ethon-0.1.4.tar.gz.

File metadata

  • Download URL: ethon-0.1.4.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for ethon-0.1.4.tar.gz
Algorithm Hash digest
SHA256 6813af6468e3bd5bd03f1915b0022bb18e9e2782b340d8d3adaa67f1675742a7
MD5 58764dfd4eabc20ba1d268b0eb271fdf
BLAKE2b-256 706891afb3c36766e5a8ea4cbbc7cb1ff3128c6cf4d86d5041a9b9d288467867

See more details on using hashes here.

File details

Details for the file ethon-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: ethon-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for ethon-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d383b52565387c861da836914690bd87ef9b00bc78d47ee7db1be5cb02c4dafd
MD5 3c9e34aa41ae9314be541f44b1308f90
BLAKE2b-256 d06dae944ee95db7f399f8b44b1a91bb3a24e8fb446612f1c05abd2c271ccf0a

See more details on using hashes here.

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