Skip to main content

The kwutil module

Project description

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']

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

kwutil-0.3.8.tar.gz (106.0 kB view details)

Uploaded Source

Built Distribution

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

kwutil-0.3.8-py3-none-any.whl (113.4 kB view details)

Uploaded Python 3

File details

Details for the file kwutil-0.3.8.tar.gz.

File metadata

  • Download URL: kwutil-0.3.8.tar.gz
  • Upload date:
  • Size: 106.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kwutil-0.3.8.tar.gz
Algorithm Hash digest
SHA256 109fad1a26a22213820391e8edbd8cff25e3d2cd70193c1fb25ac418d30a42b5
MD5 f5253f307299b94f8c0577f05e635847
BLAKE2b-256 08a31f20ad013a9bc876d39cd9eac404247bcbf28333868281d0a6c8f7257176

See more details on using hashes here.

File details

Details for the file kwutil-0.3.8-py3-none-any.whl.

File metadata

  • Download URL: kwutil-0.3.8-py3-none-any.whl
  • Upload date:
  • Size: 113.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kwutil-0.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a16d022bca86d65dc865129e8491408529dac7b024f78e158257515293003da9
MD5 b4206089ff314ef558790dbcf344dd93
BLAKE2b-256 2f56336eb05a614ffd1bc741a4a3ee91de1a79abacbff4564b97f25e4bce1721

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