Skip to main content

KviPyTools

some usefull scripts for various purpouses

rename:

do recursive rename of files, directories and all its content (does not work on ms windows)

run:

run specified command in multiple directories

rename

call rename.sh wrapper for git repositories, it moves .git dir away, performs all renames, moves .git dir back and creates commit:

./scripts/rename.sh \
  djangobaselibrary=yournewsupercoollibrary \
  django-base-library=your-new-super-cool-library \
  "Django Base Library=You New Super Cool Library"

each param is one rename pattern.

run

you can either pass arguments directly:

./scripts/run 'git checkout master' ./first-repo/ /tmp/second-repo/ ~/third-repo/

or define some replacements in runcommand.py, which will be evaluated. it is found in actual directory:

# beginnig of runcommand.py
import os.path

MY_DIRS = (
    './first-repo',
    '/tmp/second-repo',
    os.path.expanduser('~/third-repo/'),
)

my_command = 'git checkout master'

# end of runcommand.py

than call:

./scripts/run my_command MY_DIRS

you can define as many variables as you want, and there are two special names _cmd and _ALL, which are taken if no params are given:

# beginnig of runcommand.py
import os.path

MY_DIRS = (
    './first-repo',
    '/tmp/second-repo',
    os.path('~/third-repo/'),
)

my_command = 'git checkout master'

_ALL = MY_DIRS
_cmd = my_command

# end of runcommand.py

so, if you now call:

./scripts/run

now all three script calls are equivalent

Metadata

Release files for KviPyTools 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for KviPyTools 0.1.4
File Size Uploaded Provenance
KviPyTools-0.1.4.zip 8.4 kB Without provenance Details

Release files / KviPyTools-0.1.4.zip

Download URL KviPyTools-0.1.4.zip
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
cf682e2d24834cd67d33d4c35198535b63e78d7048bd13d47837a72c08c244ff
BLAKE2b-256 checksum
How to use checksums
bd1b3769565260388ab52d162330b7dcb936b68aecbe1771f4542833a22cb511
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for KviPyTools 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page