Skip to main content

GitlabCIPipeline GitlabCICoverage Pypi PypiDownloads ReadTheDocs

Read the docs

https://kwutil.readthedocs.io

Gitlab (main)

https://gitlab.kitware.com/computer-vision/kwutil

Github (mirror)

https://github.com/Kitware/kwutil

Pypi

https://pypi.org/project/kwutil

The Kitware utility module.

This module is for small, pure-python utility functions. Dependencies are allowed, but they must be small and highly standard packages (e.g. rich, psutil, ruamel.yaml).

These were originally derived from geowatch utilities. Some of them were also from xdev.

In the case that a no-dependency utility in this library proves itself to be extremely useful, it may be ported to ubelt.

Current top-level API:

from kwutil import copy_manager
from kwutil import fsops_managers
from kwutil import partial_format
from kwutil import process_context
from kwutil import slugify_ext
from kwutil import util_environ
from kwutil import util_eval
from kwutil import util_exception
from kwutil import util_hardware
from kwutil import util_json
from kwutil import util_locks
from kwutil import util_parallel
from kwutil import util_path
from kwutil import util_pattern
from kwutil import util_progress
from kwutil import util_random
from kwutil import util_resources
from kwutil import util_time
from kwutil import util_units
from kwutil import util_windows
from kwutil import util_xml
from kwutil import util_yaml

from kwutil.fsops_managers import (CopyManager, MoveManager, DeleteManager,)
from kwutil.process_context import (ProcessContext,)
from kwutil.util_environ import (envflag,)
from kwutil.util_eval import (safeeval,)
from kwutil.util_hardware import (Hardware,)
from kwutil.util_json import (Json,)
from kwutil.util_locks import (Superlock,)
from kwutil.util_parallel import (coerce_num_workers,)
from kwutil.util_pattern import (Pattern, MultiPattern,)
from kwutil.util_progress import (ProgressManager,)
from kwutil.util_random import (ensure_rng,)
from kwutil.util_time import (datetime, timedelta,)
from kwutil.util_yaml import (Yaml,)
from kwutil.util_xml import (XML,)

__all__ = ['CopyManager', 'DeleteManager', 'Hardware', 'Json', 'MoveManager',
           'MultiPattern', 'Pattern', 'ProcessContext', 'ProgressManager',
           'Superlock', 'XML', 'Yaml', 'coerce_num_workers', 'copy_manager',
           'datetime', 'ensure_rng', 'envflag', 'fsops_managers',
           'partial_format', 'process_context', 'safeeval', 'slugify_ext',
           'timedelta', 'util_environ', 'util_eval', 'util_exception',
           'util_hardware', 'util_json', 'util_locks', 'util_parallel',
           'util_path', 'util_pattern', 'util_progress', 'util_random',
           'util_resources', 'util_time', 'util_units', 'util_windows',
           'util_xml', 'util_yaml']

Metadata

Release files for kwutil 0.3.8

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

Source distribution (sdist)

Source distribution for kwutil 0.3.8
File Size Uploaded
kwutil-0.3.8.tar.gz 106.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kwutil 0.3.8
File Interpreter ABI Platform
kwutil-0.3.8-py3-none-any.whl Python 3 none any Details

Total release size: 219.4 kB

Release files / kwutil-0.3.8.tar.gz

Download URL kwutil-0.3.8.tar.gz
Size 106.0 kB
Tags Source
SHA-256 checksum
How to use checksums
109fad1a26a22213820391e8edbd8cff25e3d2cd70193c1fb25ac418d30a42b5
BLAKE2b-256 checksum
How to use checksums
08a31f20ad013a9bc876d39cd9eac404247bcbf28333868281d0a6c8f7257176
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / kwutil-0.3.8-py3-none-any.whl

Download URL kwutil-0.3.8-py3-none-any.whl
Size 113.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a16d022bca86d65dc865129e8491408529dac7b024f78e158257515293003da9
BLAKE2b-256 checksum
How to use checksums
2f56336eb05a614ffd1bc741a4a3ee91de1a79abacbff4564b97f25e4bce1721
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.3.8 This release

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.1.1

2 release files

0.1.0

1 release file

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