tgthon
• Telegram_ • Github_
install
.. code:: python
pip install tgthon
Usage
tgthon.pyutils
.. code:: python
from tgthon.pyutils import rename, file_extension
#rename files
rename(file, new_path)
#get file extension using path of file
extension = file_extension(file)
tgthon.pyfunc
.. code:: python
from tgthon.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"]
tgthon.uploader
.. code:: python
from tgthon.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/AnnayanX .. _Github : https://Github.com/pragy-dl
Metadata
Release files for tgthon 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tgthon-0.1.5.tar.gz | 21.8 kB | Without provenance | Details for tgthon-0.1.5.tar.gz |
Release files / tgthon-0.1.5.tar.gz
| Download URL | tgthon-0.1.5.tar.gz |
|---|---|
| Size | 21.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66c2b453be6e593c02a572bacf1933d12ede8ffcf7a214d08b0b681f1a015fe3
|
|
BLAKE2b-256 checksum How to use checksums |
7de836410e56686b462c4d3ab6d0a3dcd596534b380bdfd0d3fd719a590ca02e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for tgthon 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.