Package: zcmds
zcmdsCross platform(ish) productivity commands written in python. Tools for doing media manipulation through ffmpeg and AI. On Windows ls, rm and other common unix file commands are installed. Whenever there is something that doesn't work on Windows but does on Mac/Linux, I will apply a tool to make it work here. This toolset is ever-evolving and it's going to get insane in 2024 with all the AI that I'm now integrating.Install>pipinstallzcmds
>zcmds# shows all commands>diskaudit# audits the disk usage from the current directory.CommandsarchiveZips up the specified directory or file.askaiAsks a question to OpenAI from the terminal command. Requires an openai token which will be requested and saved on first use.Prefix your query with!to run command directly.aicodeA front end forAider, an AI pair programming tool. This is the future the sci fi writers promised you.audnormNormalizes audio in a media file to a standard volume.comportsShows all the ports that are in use at the current computer (useful for Arduino debugging).diskauditwalks the directory from the current directory and catalogs which of the child folders take up the most space.git-bash (win32)launches git-bash terminal (windows only).gitsummaryGenerates a summary of the git repository commits, useful for invoicingfindfilesfinds a file with the given glob.img2webpConversion tool for converting images into webp format.img2vidConverts a series of images to a video.obs_organizeorganizes the files in your default obs directory.merge-toMerges a clean git repo (no untracked files) to the target branch, pushes that target branch, then switches back to the original branch.newOpens a new terminal command window from the current terminal command window.printenvprints the current environment variables, including path. Everything is sortedpdf2pngConverts a pdf to a series of imagespdf2txtConverts a pdf to a text file.pushA safer way togit push, checks if the rebase is dirty.removbackgroundLaunches an AI tool in the browser to remove the background from an Image. Front end forrembgbackend.search_and_replaceSearch all the files from the current directory and applies exact text search and replace.search_in_filesSearch all files from current working directory for exact string matches matches.sharedirtakes the current folder and shares it via a reverse proxy using ngrok.stereo2monoReduces a stereo audio / video to a single mono track.sudo (win32 only)Runs a command as in sudo, using the gsudo tool.vidcatConcatenates two videos together, upscaling a lower resolution video.vidmuteStrips out the audio in a video file and saves it as a new file.vidinfoUses ffprobe to find the information from a video file.vid2gifA video is converted into an animated gif.vid2jpgA video is converted to a series of jpegs.vid2mp3A video is converted to an mp3.vid2mp4A video is converted to mp4. Useful for obs which saves everything as mkv. Extremely fast with mkv -> mp4 converstion.vidclipClips a video using timestamps.viddurGet's the during, use vidinfo instead.vidshrinkShrinks a video. Useful for social media posts.vidspeedChanges the speed of a video.vidvolChanges the volume of a video.ytclipDownload and clip a video from a url from youtube, rumble, bitchute, twitter... The timestamps are prompted by this program.trashSends the folder or files to the trash. This sometimes works better than deleting files on Windows.whichallFinds all the executables in the path.unzipunzip the provided filefixinternetAttempts to fix the internet connection by flushing the dns and resetting the network adapter.fixvmmem (win32 only)Fixes the vmmem consuming 100% cpu on windows 10 after hibernate.transcribe-anythingTranscribe media content using state of the art insanely-fast-whispertxEasily send files over the internet.tx README.mdFront end towomrhole send file, but gives you the code upfront so the client can auto connect.Install (dev):git clone https://github.com/zackees/zcmdscd zcmdspython -pip install -e .Test by typing inzcmdsAdditional installFor the pdf2image use:win32:choco install poppler... ?Note:Running tox will install hooks into the .tox directory. Keep this in my if you are developing.
TODO: Add a cleanup function to undo this.Release Notes1.4.64: Addsnewto open a new terminal command window from the current terminal command window.1.4.63: Addsgitconfigureto give sane defaults to your git.1.4.62:askaican now run commands by prefixing with!1.4.61: Fix bug intx1.4.60: New tooltx, a wrapper aroundwormhole sendbut easier to use.1.4.59: New toolpush, a safe way togit push1.4.58: Fixesaskaiwith positional args (asking a question and then immediatly exiting.)1.4.57: Bring in newzcmds_win32includesshpass1.4.56: Fixesaicodeon first run crash.1.4.54: Bring in newzcmds_win32fixes and improvements.1.4.53: Fixestranscribe-anythingwith python 3.11 for--device insane1.4.52: Updatetranscribe-anythingfor bug fix 2.7.231.4.51: Updatestranscribe-anythingto 2.7.221.4.50: Uses git-bash version of ssh for windows.1.4.49: Addstrashwhich sends files to the trash.1.4.48: Addsremovebackgroundwhich uses AI to remove a background image. Usesrembgbackend1.4.47: Addstranscribe-anythingto the command stack.1.4.46: Fixmerge-towith missing push step from target step.1.4.45: Adds new toolmerge-to, which streamlines merge a current branch into the other and then pushing.1.4.44: Fixes vidwebmaster (Qt6 pinned version just stopped working!!)1.4.43: Addsaicodewhich is the same asaskai --code1.4.42: Addsimgshrink1.4.41:aidernow installed withpipxto avoid package conflicts because of it's pinned deps.1.4.40: Fixaskaiin python 3.11 with linux.1.4.39:aideris now part of this command set. An awesome ai pair programmer. Enable it withaskai --code1.4.37:askainow streams output to the console.1.4.36:losslesscut(on windows) can now be executed on other drivers and doesn't block the current terminal.1.4.35:askainow assumed--fast. You can use gpt4 vs--slow1.4.34: Fixes geninvoice1.4.32: OpenAI now requires version 1.3.8 or higher (fixes breaking changes from OpenAI)1.4.31: Improveaudnormso that it uses sox instead offfmpeg-normalize. Fix bug where not all commands were installed. Fixes openai api changes.1.4.30: Fix error in diskaudit when no files found in protected dir.1.4.29: Fix img2webp.1.4.28: Bug fix1.4.27: askai now has--fast1.4.26: vid2jpg now has--no-open-folder1.4.24: Addsarchive1.4.23: Bump zcmds-win321.4.21:askaihandles pasting text that has double lines in it.1.4.20:askaiis now at gpt-41.4.19: Addslosslesscutfor win32.1.4.18: Fix win32zcmds_win321.4.17:vid2mp4now adds--nvencand--height--crf1.4.16: Fixesimg2webp.1.4.15: Addsimg2webputility.1.4.13: Add--no-fast-startto vidwebmaster.1.4.12: Fixes a bug in find files when an exception is thrown during file inspection.1.4.11:findfilesnow has --start --end --larger-than --smaller-then1.4.10:zcmdsnow usesget_cmds.pyto get all of the commands from the exe list.1.4.8:audnormnow encodes in mp3 format (improves compatibility). vid2mp3 now allows--normalize1.4.7: Fixes broken build.1.4.6: Addssaycommand to speak out the text you give the program1.4.5: Adds saved settings for gitsummary1.4.4: Addspdf2txtcommand1.4.3: Addsgitsummarycommand1.4.2: Bump up zcmds_win32 to 1.0.171.4.1: Adds 'whichall' command1.4.0: Askai now supports question-answer-question-... interactive mode1.3.17: Adds syntax highlighting to open askai tool1.3.16: Improves openai by using gpt 3.51.3.15: Improve vidinfo for more data and be a lot faster with single pass probing.1.3.14: Improve vidinfo to handle non existant streams and bad files.1.3.13: Addedimg2vidcommand.1.3.12: Addedfixinternetcommand.1.3.11: Fix badges.1.3.10: Suppress spurious warnings with chardet in openai1.3.9: Changes sound driver, should eliminate the runtime dependency on win32.1.3.8: Adds askai tool1.3.7: findfile -> findfiles1.3.6: zcmds[win32] is now at 1.0.2 (includesunzip)1.3.5: zcmds[win32] is now at 1.0.1 (includesnanoandpico)1.3.4: Addsprintenvutility1.3.3: Addsfindfileutility.1.3.2: Addscomportsto display all comports that are active on the computer.1.3.1: Nit improvement in search_and_replace to improve ui1.3.0: vidwebmaster now does variable rate encoding. --crf and --heights has been replaced by --encodings1.2.1: Adds improvements to vidhero for audio fade and makes vidclip improves usability1.2.0: stripaudio -> vidmute1.1.30: Improves vidinfo with less spam on the console and allows passing height list1.1.29: More improvements to vidinfo1.1.28: vidinfo now has more encoding information1.1.27: Fix issues with spaces in vidinfo1.1.26: Adds vidinfo1.1.26: Vidclip now supports start_time end_time being omitted.1.1.25: Even better performance of diskaudit. 50% reduction in execution time.1.1.24: Fixes diskaudit from double counting1.1.23: Fixes test_net_connection1.1.22: vid2mp4 - if file exists, try another name.1.1.21: Adds --fps option to vidshrink utility1.1.19: Using pyprojec.toml build system now.1.1.17: vidwebmaster fixes heights argument for other code path1.1.16: vidwebmaster fixes heights argument1.1.15: vidwebmaster fixed1.1.14: QT5 -> QT61.1.13: vidwebmaster fixes () bash-bug in linux1.1.12: vidwebmaster now has a gui if no file is supplied1.1.11: Adds vidlist1.1.10: Adds vidhero1.1.9: adds vidwebmaster1.1.8: adds vidmatrix to test out different settings.1.1.7: vidshrink and vidclip now both feature width argument1.1.6: Adds touch to win321.1.5: Adds unzip to win321.1.4: Fix home cmd.1.1.3: Fix up cmds so it returns int1.1.2: Fix git-bash on win321.1.1: ReleaseTODO:Add silence remover:https://github.com/bambax/RemsiAdd lossless cut to vidcliphttps://github.com/mifi/lossless-cut