repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/u2c.py
bin/u2c.py
#!/usr/bin/env python3 from __future__ import print_function, unicode_literals S_VERSION = "2.18" S_BUILD_DT = "2026-01-02" """ u2c.py: upload to copyparty 2021, ed <irc.rizon.net>, MIT-Licensed https://github.com/9001/copyparty/blob/hovudstraum/bin/u2c.py - dependencies: no - supports python 2.6, 2.7, and 3.3 throu...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
true
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/partyfuse-streaming.py
bin/partyfuse-streaming.py
#!/usr/bin/env python3 from __future__ import print_function, unicode_literals """partyfuse-streaming: remote copyparty as a local filesystem""" __author__ = "ed <copyparty@ocv.me>" __copyright__ = 2020 __license__ = "MIT" __url__ = "https://github.com/9001/copyparty/" """ mount a copyparty server (local or remote) ...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
true
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/dbtool.py
bin/dbtool.py
#!/usr/bin/env python3 import os import sys import time import shutil import sqlite3 import argparse DB_VER1 = 3 DB_VER2 = 6 BY_PATH = None NC = None def die(msg): print("\033[31m\n" + msg + "\n\033[0m") sys.exit(1) def read_ver(db): for tab in ["ki", "kv"]: try: c = db.execute(r"...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/partyjournal.py
bin/partyjournal.py
#!/usr/bin/env python3 """ partyjournal.py: chronological history of uploads 2021-12-31, v0.1, ed <irc.rizon.net>, MIT-Licensed https://github.com/9001/copyparty/blob/hovudstraum/bin/partyjournal.py produces a chronological list of all uploads, by collecting info from up2k databases and the filesystem specify subnet...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/partyfuse2.py
bin/partyfuse2.py
#!/usr/bin/env python3 from __future__ import print_function, unicode_literals """partyfuse2: remote copyparty as a local filesystem""" __author__ = "ed <copyparty@ocv.me>" __copyright__ = 2020 __license__ = "MIT" __url__ = "https://github.com/9001/copyparty/" import re import os import sys import time import json im...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/partyfuse.py
bin/partyfuse.py
#!/usr/bin/env python3 """partyfuse: remote copyparty as a local filesystem""" __author__ = "ed <copyparty@ocv.me>" __copyright__ = 2019 __license__ = "MIT" __url__ = "https://github.com/9001/copyparty/" S_VERSION = "2.2" S_BUILD_DT = "2025-12-16" """ mount a copyparty server (local or remote) as a filesystem speed...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
true
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/unforget.py
bin/unforget.py
#!/usr/bin/env python3 """ unforget.py: rebuild db from logfiles 2022-09-07, v0.1, ed <irc.rizon.net>, MIT-Licensed https://github.com/9001/copyparty/blob/hovudstraum/bin/unforget.py only makes sense if running copyparty with --no-forget (e.g. immediately shifting uploads to other storage) usage: xz -d < log | ./u...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/mtag/yt-ipr.py
bin/mtag/yt-ipr.py
#!/usr/bin/env python import re import os import sys import gzip import json import base64 import string import urllib.request from datetime import datetime """ youtube initial player response it's probably best to use this through a config file; see res/yt-ipr.conf but if you want to use plain arguments instead th...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/mtag/audio-bpm.py
bin/mtag/audio-bpm.py
#!/usr/bin/env python import os import sys import vamp import tempfile import numpy as np import subprocess as sp from copyparty.util import fsenc """ dep: vamp dep: beatroot-vamp dep: ffmpeg """ # save beat timestamps to ".beats/filename.txt" SAVE = False def det(tf): # fmt: off sp.check_call([ ...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/mtag/geotag.py
bin/mtag/geotag.py
import json import re import sys from copyparty.util import fsenc, runcmd """ uses exiftool to geotag images based on embedded gps coordinates in exif data adds four new metadata keys: .gps_lat = latitute .gps_lon = longitude .masl = meters above sea level city = "city, subregion, region" usage: -m...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/mtag/wget.py
bin/mtag/wget.py
#!/usr/bin/env python3 """ DEPRECATED -- replaced by event hooks; https://github.com/9001/copyparty/blob/hovudstraum/bin/hooks/wget.py --- use copyparty as a file downloader by POSTing URLs as application/x-www-form-urlencoded (for example using the message/pager function on the website) example copyparty config to...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/mtag/image-noexif.py
bin/mtag/image-noexif.py
#!/usr/bin/env python3 """ remove exif tags from uploaded images dependencies: exiftool about: creates a "noexif" subfolder and puts exif-stripped copies of each image there, the reason for the subfolder is to avoid issues with the up2k.db / deduplication: if the original image is modified in-place, then co...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/mtag/audio-key-slicing.py
bin/mtag/audio-key-slicing.py
#!/usr/bin/env python import re import os import sys import tempfile import subprocess as sp import keyfinder from copyparty.util import fsenc """ dep: github/mixxxdj/libkeyfinder dep: pypi/keyfinder dep: ffmpeg note: this is a janky edition of the regular audio-key.py, slicing the files at 20sec intervals and k...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/mtag/media-hash.py
bin/mtag/media-hash.py
#!/usr/bin/env python import re import sys import json import time import base64 import hashlib import subprocess as sp try: from copyparty.util import fsenc except: def fsenc(p): return p.encode("utf-8") """ dep: ffmpeg """ def det(): # fmt: off cmd = [ b"ffmpeg", b"-nost...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/mtag/mousepad.py
bin/mtag/mousepad.py
#!/usr/bin/env python3 import os import sys import subprocess as sp """ mtp test -- opens a texteditor usage: -vsrv/v1:v1:r:c,mte=+x1:c,mtp=x1=ad,p,bin/mtag/mousepad.py explained: c,mte: list of tags to index in this volume c,mtp: add new tag provider x1: dummy tag to provide ad: dontcare if audio ...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/mtag/guestbook.py
bin/mtag/guestbook.py
#!/usr/bin/env python3 """ store messages from users in an sqlite database which can be read from another mtp for example takes input from application/x-www-form-urlencoded POSTs, for example using the message/pager function on the website example copyparty config to use this: --urlform save,get -vsrv/hello:hello:...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/mtag/vidchk.py
bin/mtag/vidchk.py
#!/usr/bin/env python3 import json import re import os import sys import subprocess as sp try: from copyparty.util import fsenc except: def fsenc(p): return p.encode("utf-8") _ = r""" inspects video files for errors and such plus stores a bunch of metadata to filename.ff.json usage: -mtp vidchk=...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/mtag/rclone-upload.py
bin/mtag/rclone-upload.py
#!/usr/bin/env python import json import os import subprocess as sp import sys import time try: from copyparty.util import fsenc except: def fsenc(p): return p.encode("utf-8") _ = r""" first checks the tag "vidchk" which must be "ok" to continue, then uploads all files to some cloud storage (RCLONE...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/mtag/very-bad-idea.py
bin/mtag/very-bad-idea.py
#!/usr/bin/env python3 """ WARNING -- DANGEROUS PLUGIN -- if someone is able to upload files to a copyparty which is running this plugin, they can execute malware on your machine so please keep this on a LAN and protect it with a password here is a MUCH BETTER ALTERNATIVE (which also works on Windows): https:...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/mtag/exe.py
bin/mtag/exe.py
#!/usr/bin/env python import sys import time import json import pefile """ retrieve exe info, example for multivalue providers """ def unk(v): return "unk({:04x})".format(v) class PE2(pefile.PE): def __init__(self, *a, **ka): for k in [ # -- parse_data_directories: "parse_i...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/mtag/audio-key.py
bin/mtag/audio-key.py
#!/usr/bin/env python import os import sys import tempfile import subprocess as sp try: import keyfinder PKF = True except: PKF = False from copyparty.util import fsenc """ dep: github/mixxxdj/libkeyfinder dep: pypi/keyfinder -OR- EvanPurkhiser/keyfinder-cli dep: ffmpeg """ # tried trimming the fir...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/mtag/sleep.py
bin/mtag/sleep.py
#!/usr/bin/env python import time import random v = random.random() * 6 time.sleep(v) print(f"{v:.2f}")
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/mtag/cksum.py
bin/mtag/cksum.py
#!/usr/bin/env python3 import sys import json import struct import base64 import hashlib try: from zlib_ng import zlib_ng as zlib except: import zlib try: from copyparty.util import fsenc except: def fsenc(p): return p """ calculates various checksums for uploads, usage: -mtp crc32,md5,sha...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/mtag/guestbook-read.py
bin/mtag/guestbook-read.py
#!/usr/bin/env python3 """ fetch latest msg from guestbook and return as tag example copyparty config to use this: --urlform save,get -vsrv/hello:hello:w:c,e2ts,mtp=guestbook=t10,ad,p,bin/mtag/guestbook-read.py:mte=+guestbook explained: for realpath srv/hello (served at /hello), write-only for everyone, enable...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/mtag/file-ext.py
bin/mtag/file-ext.py
#!/usr/bin/env python import sys """ example that just prints the file extension """ print(sys.argv[1].split(".")[-1])
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/hooks/reject-mimetype.py
bin/hooks/reject-mimetype.py
#!/usr/bin/env python3 import sys import magic _ = r""" reject file uploads by mimetype dependencies (linux, macos): python3 -m pip install --user -U python-magic dependencies (windows): python3 -m pip install --user -U python-magic-bin example usage as global config: --xau c,bin/hooks/reject-mimetype...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/hooks/podcast-normalizer.py
bin/hooks/podcast-normalizer.py
#!/usr/bin/env python3 import json import os import sys import subprocess as sp _ = r""" sends all uploaded audio files through an aggressive dynamic-range-compressor to even out the volume levels dependencies: ffmpeg being an xau hook, this gets eXecuted After Upload completion but before copyparty has st...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/hooks/into-the-cache-it-goes.py
bin/hooks/into-the-cache-it-goes.py
#!/usr/bin/env python3 import sys import json import shutil import platform import subprocess as sp from urllib.parse import quote _ = r""" try to avoid race conditions in caching proxies (primarily cloudflare, but probably others too) by means of the most obvious solution possible: just as each file has finished u...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/hooks/import-me.py
bin/hooks/import-me.py
#!/usr/bin/env python3 from typing import Any _ = r""" the fastest hook in the west (runs directly inside copyparty, not as a subprocess) example usage as global config: --xbu I,bin/hooks/import-me.py example usage as a volflag (per-volume config): -v srv/inc:inc:r:rw,ed:c,xbu=I,bin/hooks/import-me.py ...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/hooks/usb-eject.py
bin/hooks/usb-eject.py
#!/usr/bin/env python3 import os import stat import subprocess as sp import sys from urllib.parse import unquote_to_bytes as unquote """ if you've found yourself using copyparty to serve flashdrives on a LAN and your only wish is that the web-UI had a button to unmount / safely remove those flashdrives, then boy how...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/hooks/wget.py
bin/hooks/wget.py
#!/usr/bin/env python3 import os import sys import json import subprocess as sp _ = r""" use copyparty as a file downloader by POSTing URLs as application/x-www-form-urlencoded (for example using the 📟 message-to-server-log in the web-ui) example usage as global config: --xm aw,f,j,t3600,bin/hooks/wget.py par...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/hooks/discord-announce.py
bin/hooks/discord-announce.py
#!/usr/bin/env python3 import sys import json import requests from copyparty.util import humansize, quotep _ = r""" announces a new upload on discord example usage as global config: --xau f,t5,j,bin/hooks/discord-announce.py parameters explained, xau = execute after upload f = fork; don't delay other ...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/hooks/image-noexif.py
bin/hooks/image-noexif.py
#!/usr/bin/env python3 import os import sys import subprocess as sp _ = r""" remove exif tags from uploaded images; the eventhook edition of https://github.com/9001/copyparty/blob/hovudstraum/bin/mtag/image-noexif.py dependencies: exiftool / perl-Image-ExifTool being an upload hook, this will take effect after...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/hooks/wget-i.py
bin/hooks/wget-i.py
#!/usr/bin/env python3 import os import threading import subprocess as sp _ = r""" use copyparty as a file downloader by POSTing URLs as application/x-www-form-urlencoded (for example using the 📟 message-to-server-log in the web-ui) this hook is a modified copy of wget.py, modified to make it import-safe so it can...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/hooks/qbittorrent-magnet.py
bin/hooks/qbittorrent-magnet.py
#!/usr/bin/env python3 # coding: utf-8 import os import sys import json import shutil import subprocess as sp _ = r""" start downloading a torrent by POSTing a magnet URL to copyparty, for example using 📟 (message-to-server-log) in the web-ui by default it will download the torrent to the folder you were in when y...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/hooks/reloc-by-ext.py
bin/hooks/reloc-by-ext.py
#!/usr/bin/env python3 import json import os import re import sys _ = r""" relocate/redirect incoming uploads according to file extension or name example usage as global config: --xbu j,c1,bin/hooks/reloc-by-ext.py parameters explained, xbu = execute before upload j = this hook needs upload informati...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/hooks/notify2.py
bin/hooks/notify2.py
#!/usr/bin/env python3 import json import os import sys import subprocess as sp from datetime import datetime, timezone from plyer import notification _ = r""" same as notify.py but with additional info (uploader, ...) and also supports --xm (notify on 📟 message) example usages; either as global config (all volume...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/hooks/xiu-sha.py
bin/hooks/xiu-sha.py
#!/usr/bin/env python3 import hashlib import json import sys from datetime import datetime, timezone _ = r""" this hook will produce a single sha512 file which covers all recent uploads (plus metadata comments) use this with --xiu, which makes copyparty buffer uploads until server is idle, providing file infos on s...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/hooks/reject-extension.py
bin/hooks/reject-extension.py
#!/usr/bin/env python3 import sys _ = r""" reject file uploads by file extension example usage as global config: --xbu c,bin/hooks/reject-extension.py example usage as a volflag (per-volume config): -v srv/inc:inc:r:rw,ed:c,xbu=c,bin/hooks/reject-extension.py ^^^^^^^^^^^^^^^^^^^^...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/hooks/msg-log.py
bin/hooks/msg-log.py
#!/usr/bin/env python # coding: utf-8 # vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab from __future__ import print_function, unicode_literals import json import os import sys import time try: from datetime import datetime, timezone except: from datetime import datetime _ = r""" use copyparty as a dumb mess...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/hooks/reject-and-explain.py
bin/hooks/reject-and-explain.py
#!/usr/bin/env python3 import json import os import re import sys _ = r""" reject file upload (with a nice explanation why) example usage as global config: --xbu j,c1,bin/hooks/reject-and-explain.py example usage as a volflag (per-volume config): -v srv/inc:inc:r:rw,ed:c,xbu=j,c1,bin/hooks/reject-and-expla...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/hooks/xiu.py
bin/hooks/xiu.py
#!/usr/bin/env python3 import json import sys _ = r""" this hook prints absolute filepaths + total size use this with --xiu, which makes copyparty buffer uploads until server is idle, providing file infos on stdin (filepaths or json) example usage as global config: --xiu i1,j,bin/hooks/xiu.py example usage as...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/hooks/notify.py
bin/hooks/notify.py
#!/usr/bin/env python3 import os import sys import subprocess as sp from plyer import notification _ = r""" show os notification on upload; works on windows, linux, macos, android dependencies: windows: python3 -m pip install --user -U plyer linux: python3 -m pip install --user -U plyer macos: pytho...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/hooks/reject-ramdisk.py
bin/hooks/reject-ramdisk.py
#!/usr/bin/env python3 import os import threading from argparse import Namespace from jinja2.nodes import Name from copyparty.fsutil import Fstab from typing import Any, Optional _ = r""" reject an upload if the target folder is on a ramdisk; useful when you have a volume where some folders inside are ramdisks but ...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/handlers/redirect.py
bin/handlers/redirect.py
# if someone hits a 404, redirect them to another location def send_http_302_temporary_redirect(cli, new_path): """ replies with an HTTP 302, which is a temporary redirect; "new_path" can be any of the following: - "http://a.com/" would redirect to another website, - "/foo/bar" would redirect ...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/handlers/sorry.py
bin/handlers/sorry.py
# sends a custom response instead of the usual 404 def main(cli, vn, rem): msg = f"sorry {cli.ip} but {cli.vpath} doesn't exist" return str(cli.reply(msg.encode("utf-8"), 404, "text/plain"))
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/handlers/randpic.py
bin/handlers/randpic.py
import os import random from urllib.parse import quote # assuming /foo/bar/ is a valid URL but /foo/bar/randpic.png does not exist, # hijack the 404 with a redirect to a random pic in that folder # # thx to lia & kipu for the idea def main(cli, vn, rem): req_fn = rem.split("/")[-1] if not cli.can_read or no...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/handlers/never404.py
bin/handlers/never404.py
# create a dummy file and let copyparty return it def main(cli, vn, rem): print("hello", cli.ip) abspath = vn.canonical(rem) with open(abspath, "wb") as f: f.write(b"404? not on MY watch!") return "retry"
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/handlers/nooo.py
bin/handlers/nooo.py
# reply with an endless "noooooooooooooooooooooooo" def say_no(): yield b"n" while True: yield b"o" * 4096 def main(cli, vn, rem): cli.send_headers(None, 404, "text/plain") for chunk in say_no(): cli.s.sendall(chunk) return "false"
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/handlers/ip-ok.py
bin/handlers/ip-ok.py
# disable permission checks and allow access if client-ip is 1.2.3.4 def main(cli, vn, rem): if cli.ip == "1.2.3.4": return "allow"
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/handlers/caching-proxy.py
bin/handlers/caching-proxy.py
# assume each requested file exists on another webserver and # download + mirror them as they're requested # (basically pretend we're warnish) import os import requests from typing import TYPE_CHECKING if TYPE_CHECKING: from copyparty.httpcli import HttpCli def main(cli: "HttpCli", vn, rem): url = "https:/...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/docs/chunksizes.py
docs/chunksizes.py
#!/usr/bin/env python3 # there's far better ways to do this but its 4am and i dont wanna think # just pypy it my dude import math def humansize(sz, terse=False): for unit in ["B", "KiB", "MiB", "GiB", "TiB"]: if sz < 1024: break sz /= 1024.0 ret = " ".join([str(sz)[:4].rstrip("...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/docs/unirange.py
docs/unirange.py
v = "U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD" for v in v.split(","): if "+" in v: v = v.split("+")[1] if "-" in v: lo, hi = v.split("-") else: lo = hi = v for v in r...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/conftest.py
conftest.py
"""Pytest configuration for crewAI workspace.""" from collections.abc import Generator import os from pathlib import Path import tempfile from typing import Any from dotenv import load_dotenv import pytest from vcr.request import Request # type: ignore[import-untyped] env_test_path = Path(__file__).parent / ".env....
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/devtools/src/crewai_devtools/prompts.py
lib/devtools/src/crewai_devtools/prompts.py
"""Prompt templates for AI-generated content.""" from string import Template RELEASE_NOTES_PROMPT = Template( """Generate concise release notes for version $version based on these commits: $commits The commits follow the Conventional Commits standard (feat:, fix:, chore:, etc.). Use this exact template format...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/devtools/src/crewai_devtools/cli.py
lib/devtools/src/crewai_devtools/cli.py
"""Development tools for version bumping and git automation.""" import os from pathlib import Path import subprocess import sys import click from dotenv import load_dotenv from github import Github from openai import OpenAI from rich.console import Console from rich.markdown import Markdown from rich.panel import Pan...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/devtools/src/crewai_devtools/__init__.py
lib/devtools/src/crewai_devtools/__init__.py
"""CrewAI development tools.""" __version__ = "1.7.2"
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/printer.py
lib/crewai-tools/src/crewai_tools/printer.py
"""Utility for colored console output.""" class Printer: """Handles colored console output formatting.""" @staticmethod def print(content: str, color: str | None = None) -> None: """Prints content with optional color formatting. Args: content: The string to be printed. ...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/__init__.py
lib/crewai-tools/src/crewai_tools/__init__.py
from crewai_tools.adapters.enterprise_adapter import EnterpriseActionTool from crewai_tools.adapters.mcp_adapter import MCPServerAdapter from crewai_tools.adapters.zapier_adapter import ZapierActionTool from crewai_tools.aws.bedrock.agents.invoke_agent_tool import BedrockInvokeAgentTool from crewai_tools.aws.bedrock.kn...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/generate_tool_specs.py
lib/crewai-tools/src/crewai_tools/generate_tool_specs.py
#!/usr/bin/env python3 from collections.abc import Mapping import inspect import json from pathlib import Path from typing import Any from crewai.tools.base_tool import BaseTool, EnvVar from pydantic import BaseModel from pydantic.json_schema import GenerateJsonSchema from pydantic_core import PydanticOmit from crew...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/__init__.py
lib/crewai-tools/src/crewai_tools/tools/__init__.py
from crewai_tools.tools.ai_mind_tool.ai_mind_tool import AIMindTool from crewai_tools.tools.apify_actors_tool.apify_actors_tool import ApifyActorsTool from crewai_tools.tools.arxiv_paper_tool.arxiv_paper_tool import ArxivPaperTool from crewai_tools.tools.brave_search_tool.brave_search_tool import BraveSearchTool from c...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/multion_tool/example.py
lib/crewai-tools/src/crewai_tools/tools/multion_tool/example.py
import os from crewai import Agent, Crew, Task from multion_tool import MultiOnTool # type: ignore[import-not-found] os.environ["OPENAI_API_KEY"] = "Your Key" multion_browse_tool = MultiOnTool(api_key="Your Key") # Create a new agent Browser = Agent( role="Browser Agent", goal="control web browsers using n...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/multion_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/multion_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/multion_tool/multion_tool.py
lib/crewai-tools/src/crewai_tools/tools/multion_tool/multion_tool.py
"""Multion tool spec.""" import os import subprocess from typing import Any from crewai.tools import BaseTool, EnvVar from pydantic import Field class MultiOnTool(BaseTool): """Tool to wrap MultiOn Browse Capabilities.""" name: str = "Multion Browse Tool" description: str = """Multion gives the ability...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/files_compressor_tool/files_compressor_tool.py
lib/crewai-tools/src/crewai_tools/tools/files_compressor_tool/files_compressor_tool.py
import os import tarfile import zipfile from crewai.tools import BaseTool from pydantic import BaseModel, Field class FileCompressorToolInput(BaseModel): """Input schema for FileCompressorTool.""" input_path: str = Field( ..., description="Path to the file or directory to compress." ) output...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/files_compressor_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/files_compressor_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/tavily_search_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/tavily_search_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/tavily_search_tool/tavily_search_tool.py
lib/crewai-tools/src/crewai_tools/tools/tavily_search_tool/tavily_search_tool.py
from collections.abc import Sequence import json import os from typing import Any, Literal from crewai.tools import BaseTool, EnvVar from dotenv import load_dotenv from pydantic import BaseModel, ConfigDict, Field load_dotenv() try: from tavily import AsyncTavilyClient, TavilyClient # type: ignore[import-untype...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/dalle_tool/dalle_tool.py
lib/crewai-tools/src/crewai_tools/tools/dalle_tool/dalle_tool.py
import json from typing import Literal from crewai.tools import BaseTool, EnvVar from openai import Omit, OpenAI from pydantic import BaseModel, Field class ImagePromptSchema(BaseModel): """Input for Dall-E Tool.""" image_description: str = Field( description="Description of the image to be generate...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/dalle_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/dalle_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/serper_dev_tool/serper_dev_tool.py
lib/crewai-tools/src/crewai_tools/tools/serper_dev_tool/serper_dev_tool.py
import datetime import json import logging import os from typing import Any, TypedDict from crewai.tools import BaseTool, EnvVar from pydantic import BaseModel, Field import requests logger = logging.getLogger(__name__) class KnowledgeGraph(TypedDict, total=False): """Knowledge graph data from search results."...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/serper_dev_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/serper_dev_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/code_interpreter_tool/code_interpreter_tool.py
lib/crewai-tools/src/crewai_tools/tools/code_interpreter_tool/code_interpreter_tool.py
"""Code Interpreter Tool for executing Python code in isolated environments. This module provides a tool for executing Python code either in a Docker container for safe isolation or directly in a restricted sandbox. It includes mechanisms for blocking potentially unsafe operations and importing restricted modules. """...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/code_interpreter_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/code_interpreter_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/crewai_platform_tool_builder.py
lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/crewai_platform_tool_builder.py
from typing import Any import os from crewai.tools import BaseTool import requests from crewai_tools.tools.crewai_platform_tools.crewai_platform_action_tool import ( CrewAIPlatformActionTool, ) from crewai_tools.tools.crewai_platform_tools.misc import ( get_platform_api_base_url, get_platform_integration_t...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/crewai_platform_tools.py
lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/crewai_platform_tools.py
import logging from crewai.tools import BaseTool from crewai_tools.adapters.tool_collection import ToolCollection from crewai_tools.tools.crewai_platform_tools.crewai_platform_tool_builder import ( CrewaiPlatformToolBuilder, ) logger = logging.getLogger(__name__) def CrewaiPlatformTools( # noqa: N802 app...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/misc.py
lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/misc.py
import os def get_platform_api_base_url() -> str: """Get the platform API base URL from environment or use default.""" base_url = os.getenv("CREWAI_PLUS_URL", "https://app.crewai.com") return f"{base_url}/crewai_plus/api/v1/integrations" def get_platform_integration_token() -> str: """Get the platfo...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/crewai_platform_action_tool.py
lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/crewai_platform_action_tool.py
"""Crewai Enterprise Tools.""" import os import json import re from typing import Any, Optional, Union, cast, get_origin from crewai.tools import BaseTool from pydantic import Field, create_model import requests from crewai_tools.tools.crewai_platform_tools.misc import ( get_platform_api_base_url, get_platfor...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/__init__.py
lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/__init__.py
"""CrewAI Platform Tools. This module provides tools for integrating with various platform applications through the CrewAI platform API. """ from crewai_tools.tools.crewai_platform_tools.crewai_platform_action_tool import ( CrewAIPlatformActionTool, ) from crewai_tools.tools.crewai_platform_tools.crewai_platform_...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/jina_scrape_website_tool/jina_scrape_website_tool.py
lib/crewai-tools/src/crewai_tools/tools/jina_scrape_website_tool/jina_scrape_website_tool.py
from crewai.tools import BaseTool from pydantic import BaseModel, Field import requests class JinaScrapeWebsiteToolInput(BaseModel): """Input schema for JinaScrapeWebsiteTool.""" website_url: str = Field(..., description="Mandatory website url to read the file") class JinaScrapeWebsiteTool(BaseTool): n...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/jina_scrape_website_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/jina_scrape_website_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/vision_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/vision_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/vision_tool/vision_tool.py
lib/crewai-tools/src/crewai_tools/tools/vision_tool/vision_tool.py
import base64 from pathlib import Path from crewai import LLM from crewai.tools import BaseTool, EnvVar from crewai.utilities.types import LLMMessage from pydantic import BaseModel, Field, PrivateAttr, field_validator class ImagePromptSchema(BaseModel): """Input for Vision Tool.""" image_path_url: str = "Th...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/contextualai_rerank_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/contextualai_rerank_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/contextualai_rerank_tool/contextual_rerank_tool.py
lib/crewai-tools/src/crewai_tools/tools/contextualai_rerank_tool/contextual_rerank_tool.py
from crewai.tools import BaseTool from pydantic import BaseModel, Field class ContextualAIRerankSchema(BaseModel): """Schema for contextual rerank tool.""" query: str = Field(..., description="The search query to rerank documents against") documents: list[str] = Field(..., description="List of document t...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/scrape_element_from_website/scrape_element_from_website.py
lib/crewai-tools/src/crewai_tools/tools/scrape_element_from_website/scrape_element_from_website.py
import os from typing import Any from crewai.tools import BaseTool from pydantic import BaseModel, Field import requests try: from bs4 import BeautifulSoup BEAUTIFULSOUP_AVAILABLE = True except ImportError: BEAUTIFULSOUP_AVAILABLE = False class FixedScrapeElementFromWebsiteToolSchema(BaseModel): "...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/scrape_element_from_website/__init__.py
lib/crewai-tools/src/crewai_tools/tools/scrape_element_from_website/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/invoke_crewai_automation_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/invoke_crewai_automation_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/invoke_crewai_automation_tool/invoke_crewai_automation_tool.py
lib/crewai-tools/src/crewai_tools/tools/invoke_crewai_automation_tool/invoke_crewai_automation_tool.py
import time from typing import Any from crewai.tools import BaseTool from pydantic import BaseModel, Field, create_model import requests class InvokeCrewAIAutomationInput(BaseModel): """Input schema for InvokeCrewAIAutomationTool.""" prompt: str = Field(..., description="The prompt or query to send to the c...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/tavily_extractor_tool/tavily_extractor_tool.py
lib/crewai-tools/src/crewai_tools/tools/tavily_extractor_tool/tavily_extractor_tool.py
import json import os from typing import Any, Literal from crewai.tools import BaseTool, EnvVar from dotenv import load_dotenv from pydantic import BaseModel, ConfigDict, Field load_dotenv() try: from tavily import AsyncTavilyClient, TavilyClient # type: ignore[import-untyped] TAVILY_AVAILABLE = True excep...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/tavily_extractor_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/tavily_extractor_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/directory_read_tool/directory_read_tool.py
lib/crewai-tools/src/crewai_tools/tools/directory_read_tool/directory_read_tool.py
import os from typing import Any from crewai.tools import BaseTool from pydantic import BaseModel, Field class FixedDirectoryReadToolSchema(BaseModel): """Input for DirectoryReadTool.""" class DirectoryReadToolSchema(FixedDirectoryReadToolSchema): """Input for DirectoryReadTool.""" directory: str = Fi...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/directory_read_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/directory_read_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/composio_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/composio_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/composio_tool/composio_tool.py
lib/crewai-tools/src/crewai_tools/tools/composio_tool/composio_tool.py
"""Composio tools wrapper.""" import typing as t from crewai.tools import BaseTool, EnvVar from pydantic import Field import typing_extensions as te class ComposioTool(BaseTool): """Wrapper for composio tools.""" composio_action: t.Callable env_vars: list[EnvVar] = Field( default_factory=lambda...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/linkup/linkup_search_tool.py
lib/crewai-tools/src/crewai_tools/tools/linkup/linkup_search_tool.py
import os from typing import Any, Literal from crewai.tools import BaseTool, EnvVar try: from linkup import LinkupClient LINKUP_AVAILABLE = True except ImportError: LINKUP_AVAILABLE = False LinkupClient = Any # type: ignore[misc,assignment] # type placeholder when package is not available from py...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/linkup/__init__.py
lib/crewai-tools/src/crewai_tools/tools/linkup/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/oxylabs_amazon_product_scraper_tool/oxylabs_amazon_product_scraper_tool.py
lib/crewai-tools/src/crewai_tools/tools/oxylabs_amazon_product_scraper_tool/oxylabs_amazon_product_scraper_tool.py
from importlib.metadata import version import json import os from platform import architecture, python_version from typing import Any from crewai.tools import BaseTool, EnvVar from pydantic import BaseModel, ConfigDict, Field try: from oxylabs import RealtimeClient # type: ignore[import-untyped] from oxylab...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/oxylabs_amazon_product_scraper_tool/__init__.py
lib/crewai-tools/src/crewai_tools/tools/oxylabs_amazon_product_scraper_tool/__init__.py
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false
crewAIInc/crewAI
https://github.com/crewAIInc/crewAI/blob/f3c17a249b5a2da3a917784d9762421591c1cde5/lib/crewai-tools/src/crewai_tools/tools/ai_mind_tool/ai_mind_tool.py
lib/crewai-tools/src/crewai_tools/tools/ai_mind_tool/ai_mind_tool.py
import os import secrets from typing import Any from crewai.tools import BaseTool, EnvVar from openai import OpenAI from openai.types.chat import ChatCompletion from pydantic import BaseModel, Field class AIMindToolConstants: MINDS_API_BASE_URL = "https://mdb.ai/" MIND_NAME_PREFIX = "crwai_mind_" DATASOU...
python
MIT
f3c17a249b5a2da3a917784d9762421591c1cde5
2026-01-04T14:39:52.484392Z
false