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
Metadata
Release files for Tashriethon 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Tashriethon-0.0.2.tar.gz | 21.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Tashriethon-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.1 kB
Release files / Tashriethon-0.0.2.tar.gz
| Download URL | Tashriethon-0.0.2.tar.gz |
|---|---|
| Size | 21.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8fefbb5a9409df91901aa354fb4e42409ab42443b39f4ff21fc6655ca06eaf66
|
|
BLAKE2b-256 checksum How to use checksums |
6e84f625b901504c294999cb56680a8ebff8d77bdb762b109fb31b2d30b5a0a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / Tashriethon-0.0.2-py3-none-any.whl
| Download URL | Tashriethon-0.0.2-py3-none-any.whl |
|---|---|
| Size | 23.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9199f93f78e4badcf0d5241071a3cee4c13b4d474cd8c9d9d0234f63591d670
|
|
BLAKE2b-256 checksum How to use checksums |
30f5487f16a818d2263917ca442bab9e41d4965d2b85cab28998e54b4f7ac8ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|