Skip to main content

A collection of personal convenience utilities

Project description

desertislandutils

Refactoring my convenience utility bash scripts into python for learning and profit. Deployed for MacOS via homebrew, its really far better than shell scripting, yuck!

INSTALL

brew install mahiki/tap/desertislandutils

THE UTILS

toobigdatadoc

I like to keep text files in one directory system, with supporting data files and binary documents in parallel directories from the home folder: toobig, toodata, toodoc. For example, its easy to exclude the whole toobig directory structure from backups, since there is nothing but huge files here.

$HOME
    |-- toobig
        |-- # replicated folder paths with large files here, assume not to be backed up
    |-- toodata
        |-- # small-ish data files in support of the parallel root
    |-- toodoc
        |-- # usually pdfs or image files
$> too --help
usage: too [-h] {big,data,doc}

Create symlinked parallel folders to contain data/binary files outside of git repo or away from source/text files.

positional arguments:
  {big,data,doc}  large files to exclude from backup, smallish datasets, binary files like pdf

optional arguments:
  -h, --help      show this help message and exit
Kehena segovia: ~

weeknumber

wn --help

 Usage: wn [OPTIONS] [DATE]

 ISO year week number of a date as YYYY-WDD. Default weekend day is Sat.
 Example:
 $> wn 'Jul 22'
 2023-W29

╭─ Arguments ───────────────────────────────────────────────────────────────────────────────────────────────────╮
│   date      [DATE]  A text expression of date, ex: 'November 27', or 2112-07-29 [default: (dynamic)]          │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ─────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --sunday                     Weekend is Saturday by default, this flag sets Sunday weekend day.               │
│ --last                       Give week number of most recently completed week (overrides DATE argument).      │
│ --verbose       --no-verbose [default: no-verbose]                                                            │
│ --install-completion         Install completion for the current shell.                                        │
│ --show-completion            Show completion for the current shell, to copy it or customize the installation. │
│ --help                       Show this message and exit.                                                      │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

DEVELOPMENT

Trying to automate the merge tag homebrew tap repo upgrade thing. Its not going great.

  • build: poetry
  • deploy: poetry -> pypi -> homebrew
  • github CI actions

JUSTFILE

Best documentation is in the Just taskrunner justfile.

just info

just wn --help

# also direct into poetry environment
poetry shell
(desertislandutils)> wn --help

Testing

just test

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

desertislandutils-0.4.2.tar.gz (34.1 kB view details)

Uploaded Source

Built Distribution

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

desertislandutils-0.4.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file desertislandutils-0.4.2.tar.gz.

File metadata

  • Download URL: desertislandutils-0.4.2.tar.gz
  • Upload date:
  • Size: 34.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.29 {"installer":{"name":"uv","version":"0.9.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for desertislandutils-0.4.2.tar.gz
Algorithm Hash digest
SHA256 a569f2dc0f7887f16598a1296561f0f70bc76046a4b4caba8faef2a75989671a
MD5 4d2fd37d89a1586f94c1934bdb4da754
BLAKE2b-256 3eeb94f21d418e143662df52b08dcbc34d59d6d9095bdd7cb11e1a1215809171

See more details on using hashes here.

File details

Details for the file desertislandutils-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: desertislandutils-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.29 {"installer":{"name":"uv","version":"0.9.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for desertislandutils-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 92f635ba95bab6f973e5b0923606446f36632a931278cb3f1b2f679a7caac1dc
MD5 91d5762d94c1a0db6e6856542b6bb6c8
BLAKE2b-256 751efc5f489aeab67bf8a18a76f04dbb63743c1c11848a81a8a0d61c29e9816e

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