Skip to main content

Personal script library solving problems you didn't know you cared about

Project description

DSBin

PyPI version Python versions PyPI downloads License

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).

Script List

Meta Scripts

  • dsver: Show installed versions of my packages and flag deprecated packages.
  • lsbin: Lists executable files and their descriptions based on docstrings. What you're looking at now.

Development Scripts

  • changelogs: Update CHANGELOG.md with a new version and automatically manage links.
  • checkdeps: Check all interdependencies between dsbin and dsbin.
  • checkimports: Check for circular imports in a Python project.
  • codeconfigs: Download configs for coding tools and compare against local versions.
  • impactanalyzer: Analyze the impact of changes in repositories and their dependencies.
  • packageanalyzer: Analyze package dependencies and generate an import graph.
  • pybumper: Version management tool for Python projects.
  • reporun: Package management utility for working with multiple Poetry projects.
  • tagreplace: Replace an existing Git tag with a new tag name and description.

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.
  • foldermerge: Tries to merge two folders, accounting for duplicates and name conflicts.
  • rsyncer: Build an rsync command interactively.
  • workcalc: Calculate how much time went into a project.

Text Processing

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

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.
  • dsupdater: Comprehensive update installer for Linux and macOS.
  • dsupdater-install: Entry point for installer.
  • envsync: Synchronize two .env files by merging their content.
  • spacepurger: Force macOS to purge cached files by filling disk space.
  • ssh-tunnel: Create or kill an SSH tunnel on the specified port.

macOS-Specific Scripts

  • dmg-encrypt: Encrypts DMG files with AES-256 encryption.
  • dmgify: Creates DMG files from folders, with specific handling for Logic projects.
  • netreset: macOS network reset script.
  • setmag: Set MagSafe light according to power status.
  • timestamps: Quick and easy timestamp getting/setting for macOS.

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.

Logic Pro Scripts

  • bipclean: Identify and delete recently created AIFF files (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.

Other Media Scripts

  • ffgif: Converts a video file to a GIF using ffmpeg.
  • fftrim: Use ffmpeg to trim a video file without re-encoding.

License

This project is licensed under the LGPL-3.0 License. See the LICENSE file for details.

Contributions welcome! Please feel free to submit a pull request!

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.8.11.tar.gz (163.2 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.8.11-py3-none-any.whl (224.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dsbin-0.8.11.tar.gz
Algorithm Hash digest
SHA256 f5f3c918095330cb72b887e51a1d13b0c9891f108b6bcfc69df4faea54183c53
MD5 07e80ca2f700b82699147f44be9e7282
BLAKE2b-256 4a5fc24c874a9155a342a8620fede855928823f2e7d342ed99400388f842880a

See more details on using hashes here.

Provenance

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

Publisher: python-publish.yml on dannystewart/dsbin

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.8.11-py3-none-any.whl.

File metadata

  • Download URL: dsbin-0.8.11-py3-none-any.whl
  • Upload date:
  • Size: 224.9 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.8.11-py3-none-any.whl
Algorithm Hash digest
SHA256 41ae45b101cd8725b4452b040dccb142bdf3409a24de0cde7a87185e50bcf5a9
MD5 06185b49642a883aa8c6797cc4ac0402
BLAKE2b-256 7a3d70c7bdc4ab3aa54e3705251d5e7c3e5658cb816c8303a7aeab6824922df7

See more details on using hashes here.

Provenance

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

Publisher: python-publish.yml on dannystewart/dsbin

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