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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ethon-0.1.5.tar.gz
Algorithm Hash digest
SHA256 54913ba3d6bc8ff83a37d714ab1e7a8b17860c6357c7cb8fc401a3a213fe0a8e
MD5 f15cbdbf6d680d021f9c528eacb4891b
BLAKE2b-256 6d02a59dbbe8ed1c7fc1f717758d583b15bcf95840431bcb34e922e6398e2948

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ethon-0.1.5-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.4

File hashes

Hashes for ethon-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b3d8c9138c2de68054f32d82bf8e2496494643cb9a55e6df7bd9d6fcb644cd84
MD5 94187c2cb52d3cb927a0486a985e7c2e
BLAKE2b-256 a08fad6009c53489422a6a16ffe117fd3f4ac7faa6431a1350d2432f7a8dd22b

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