Use embedded dependencies

This commit is contained in:
Jeffrey Serio 2024-11-08 08:04:23 -06:00
parent 83e26f1428
commit 3d10a07ab9
12 changed files with 66 additions and 38 deletions

1
.envrc
View File

@ -1 +0,0 @@
layout python3

View File

@ -1,4 +1,11 @@
#!/usr/bin/env python3
# /// script
# dependencies = [
# "requests",
# "bs4",
# "docopt",
# "rich",
# ]
# ///
"""calculate_mirror_size.py

View File

@ -1,4 +1,9 @@
#!/usr/bin/env python3
# /// script
# dependencies = [
# "requests",
# "docopt",
# ]
# ///
"""fetch_combined_trackers_list.py
@ -20,7 +25,7 @@ import requests
from docopt import docopt
if __name__ == "__main__":
args = docopt(__doc__) # type: ignore
args = docopt(__doc__) # type: ignore
live_trackers_list_urls = [
"https://newtrackon.com/api/stable",

View File

@ -1,4 +1,9 @@
#!/usr/bin/env python3
# /// script
# dependencies = [
# "requests",
# "docopt",
# ]
# ///
"""fetch_scihub_infohashes.py

View File

@ -1,4 +1,9 @@
#!/home/jas/virtualenvs/list_torrents/bin/python3
# /// script
# dependencies = [
# "qbittorrent-api",
# "docopt",
# ]
# ///
"""list_torrents.py

View File

@ -1,4 +1,9 @@
#!/usr/bin/env python3
# /// script
# dependencies = [
# "qbittorrent-api",
# "docopt",
# ]
# ///
"""qbt_sum_size.py

View File

@ -1,4 +1,11 @@
#!/usr/bin/env python3
# /// script
# dependencies = [
# "qbittorrent-api",
# "requests",
# "bs4",
# "docopt",
# ]
# ///
"""qbth.py - qbittorrent helper

View File

@ -1,24 +0,0 @@
attr==0.3.2
beautifulsoup4==4.12.3
colorama==0.4.6
ConfigParser==7.1.0
cryptography==43.0.3
docopt==0.6.2
docutils==0.21.2
filelock==3.16.1
HTMLParser==0.0.2
ipython==8.29.0
ipywidgets==8.1.5
jnius==1.1.0
keyring==25.5.0
pandas==2.2.3
Pillow==11.0.0
protobuf==5.28.3
pyOpenSSL==24.2.1
qbittorrent==0.1.6
redis==5.2.0
resend==2.4.0
Sphinx==8.1.3
thread==2.0.5
urllib3_secure_extra==0.1.0
xmlrpclib==1.0.1

View File

@ -1,4 +1,10 @@
#!/usr/bin/env python3
# /// script
# dependencies = [
# "qbittorrent-api",
# "requests",
# "docopt",
# ]
# ///
"""scihub_knapsack.py

View File

@ -1,5 +1,8 @@
#!/usr/bin/env nix-shell
#! nix-shell -i python3 --packages python3 python312Packages.resend
# /// script
# dependencies = [
# "resend",
# ]
# ///
import socket
import subprocess

View File

@ -1,5 +1,9 @@
#!/usr/bin/env nix-shell
#! nix-shell -i python3 --packages python3 python312Packages.resend
# /// script
# dependencies = [
# "resend",
# ]
# ///
import socket
import subprocess

View File

@ -1,4 +1,10 @@
#!/usr/bin/env python3
# /// script
# dependencies = [
# "qbittorrent-api",
# "docopt",
# "rich",
# ]
# ///
"""update_tracker.py