Skip to main content

Dot files automation

Project description

dot-tools

A grab bag of small scripts I use to keep my dotfiles and projects in shape. Nothing fancy — just the stuff I got tired of rewriting.

Install it however you prefer (pip install dot-tools, uv tool install dot-tools, etc.) and you'll get the commands below on your PATH.

What's in the box

traefik_run

Spins up a local Traefik via docker-compose. Pass extra args after --.

traefik_run              # up -d
traefik_run -- ps -a
traefik_run -- down

handle_envrc

Keeps .envrc files synced across machines through a shared folder (set ENVRC_HOME, defaults to ~/Yandex.Disk/home/envrc). If the local .envrc isn't a symlink yet, it moves it into the shared dir and replaces it with a link. If a shared one exists but the link is missing, it restores it.

handle_envrc

add_dot_files

Drops common project boilerplate into the current directory: .editorconfig, pyproject.toml, .pre-commit-config.yaml, .yamllint, .projectile.

add_dot_files

cpuniq

Copy (or move) files into a directory without clobbering. If the name is taken and the content differs, it appends a short uuid suffix.

cpuniq photo.jpg ~/pictures/
cpuniq -m mv *.log ~/archive/

release.py

Bumps the version, tags, builds and uploads. Mostly for this repo's own release flow.

release.py master
release.py -v 1.2.3 master

License

MIT.

Project details


Download files

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

Source Distribution

dot_tools-1.10.3.tar.gz (32.2 kB view details)

Uploaded Source

Built Distribution

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

dot_tools-1.10.3-py2.py3-none-any.whl (13.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file dot_tools-1.10.3.tar.gz.

File metadata

  • Download URL: dot_tools-1.10.3.tar.gz
  • Upload date:
  • Size: 32.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.10 {"installer":{"name":"uv","version":"0.11.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dot_tools-1.10.3.tar.gz
Algorithm Hash digest
SHA256 54464d634771d57462c131b74b3bb1b8894ef32730d001ee3b860324cca63d77
MD5 ce7cc9d2dab77772de3526c78d1a5e9b
BLAKE2b-256 f2b05dd97ba8024a50d201d073c781225b3ae47710229adde844d770f50061b7

See more details on using hashes here.

File details

Details for the file dot_tools-1.10.3-py2.py3-none-any.whl.

File metadata

  • Download URL: dot_tools-1.10.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.10 {"installer":{"name":"uv","version":"0.11.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dot_tools-1.10.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fd6744fe4908ffc64cb3ee61f9e4a7e4dc65ba3b7b924028357f59818fb189e3
MD5 553886afd13a37a3d3d44cb9e0cb4124
BLAKE2b-256 8dee5016688f1240843469cb9b94f5ca53c3fabd646302934cb68580e9898f1f

See more details on using hashes here.

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