Skip to main content

Personal Python script library

Project description

dsbin

This is my personal collection of Python scripts, built up over many years of solving problems most people don't care about (or don't know they care about… until they discover my scripts).

Self-Contained Packages and Metascripts

  • dsver: Show installed versions of my packages.
  • lsbin: Lists executable files and their descriptions based on docstrings. (What produced the list you're looking at right now.)

File Management

  • backupsort: Sorts saved backup files by adding a timestamp suffix to the filename.
  • bigfiles: Finds the top N file types in a directory by cumulative size.
  • dupefinder: Find duplicate files in a directory.
  • fml: Uploads a file to Fastmail's file storage using WebDAV.
  • foldermerge: Tries to merge two folders, accounting for duplicates and name conflicts.
  • rsyncer: Build an rsync command interactively.
  • workcalc: Calculate work patterns from various data sources.

Text Processing Scripts

  • pycompare: Compare two lists and output common/unique elements.
  • w11renamer: Generates non-stupid filenames for Windows 11 ISO files from stupid ones.

Media Scripts

  • ffgif: Converts a video file to a GIF using ffmpeg.
  • fftrim: Use ffmpeg to trim a video file without re-encoding.
  • ytdl: Custom yt-dlp command to ensure highest quality MP4.

Music Scripts

  • aif2wav, wav2aif: Convert AIFF to WAV or WAV to AIFF, with optional Logic metadata.
  • alacrity: Converts files in a directory to ALAC, with additional formats and options.
  • hpfilter: Apply a highpass filter to cut bass frequencies for HomePod playback.
  • metacopy: Copy audio metadata from a known file to a new file.
  • mp3ify: Converts files to MP3.
  • mshare: A script for sharing music bounces in a variety of formats.
  • pybounce: Uploads audio files to a Telegram channel.
  • rmp3: Removes MP3 files if there is an AIFF or WAV file with the same name.
  • wpmusic: Uploads and replaces song remixes on WordPress.

Mac Scripts

  • dmg-encrypt: Encrypts DMG files with AES-256 encryption.
  • dmgify: Creates DMG files from folders, with specific handling for Logic projects.
  • mvdmg: Recursively moves nested DMG files to a desired location.
  • netreset: macOS network reset script.
  • pkginst: Wrapper for the macOS Installer command-line utility.
  • setmag: Set MagSafe light according to power status.
  • spacepurger: Generate large files to fill the disk and free up purgeable space.
  • timestamps: Quick and easy timestamp getting/setting for macOS.

Logic Pro Scripts

  • bipclean: Identifies and deletes AIFF files created within a specified time period (default 2 hours).
  • bouncefiler: Sort files into folders based on filename suffix.
  • bounceprune: Prunes and consolidates bounces from Logic projects.
  • bounces: CLI tool for working with Logic bounce files using BounceParser.
  • oldprojects: Moves old Logic projects out of folders then deletes empty folders.

System Tools

  • changehostname: Changes the system hostname in all the relevant places.
  • dockermounter: Checks to see if mount points are mounted, and act accordingly.
  • dsservice: Main function for managing systemd services.
  • envsync: Synchronize two .env files by merging their content.
  • ssh-tunnel: Create or kill an SSH tunnel on the specified port.
  • watchtower: Script to help with running Watchtower for Docker.

Development Scripts

  • check-imports: Check for circular imports in a Python project.
  • code-configs: Download config files for various coding tools.
  • pyenversioner: Updates .python-version files recursively.
  • scriptdep: Analyze dependencies and imports across dsbase and scripts to help separate concerns.
  • tagreplace: Replace an existing Git tag with a new tag name and description.
  • uvmigrate, poetry-migrate: Process pyproject.toml file(s) based on command line arguments.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dsbin-0.3.3.tar.gz (105.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dsbin-0.3.3-py3-none-any.whl (149.6 kB view details)

Uploaded Python 3

File details

Details for the file dsbin-0.3.3.tar.gz.

File metadata

  • Download URL: dsbin-0.3.3.tar.gz
  • Upload date:
  • Size: 105.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dsbin-0.3.3.tar.gz
Algorithm Hash digest
SHA256 33a70ee186127ff776a079912c00ba9dbb9d9b0ee39e02d8c9bd7df332332a20
MD5 d70238bd27abb8d3f7bf08cf83c482c2
BLAKE2b-256 fe03e413429831e6acd77a9690c35ae91e88682c9a3df62129082c613b77eeb1

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsbin-0.3.3.tar.gz:

Publisher: python-publish.yml on dannystewart/dsbase

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dsbin-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: dsbin-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 149.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dsbin-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d91bf94f86d94c0aec3856d580082551b0a367d5e4b76434b5650483c1103d86
MD5 e2f7c3992db6f6d764b90807d9725b8a
BLAKE2b-256 61fbdb96dca9dabbe6e29c017e57542cc139a2f1b5553c41462de7aee0fd70f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for dsbin-0.3.3-py3-none-any.whl:

Publisher: python-publish.yml on dannystewart/dsbase

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page