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

Uploaded Source

Built Distribution

ethon-0.1.1-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ethon-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0f6ae819c831a9ff0f5aa6e9e05b34288b94f062d6e0e58daf92c6fbc35b8b71
MD5 90ea92507506a4c67df2aaf0bfd78019
BLAKE2b-256 71f66c61db370270cd19b516de6a005621343caba0727f6133accba1aa431044

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ethon-0.1.1-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

Hashes for ethon-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8178688a679ff10edc86aa97354ff697a78070713f6f8d9e2f34d67997afb26e
MD5 761ac28d763eb3e23da6e6cf85db81e7
BLAKE2b-256 f41a180b953aba5fb352dd9e563fbc2657af3e7bced8886aab1db06e272130cb

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