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-hypernode.com/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.3.tar.gz (77.7 kB view details)

Uploaded Source

Built Distribution

kwutil-0.3.3-py3-none-any.whl (83.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kwutil-0.3.3.tar.gz
  • Upload date:
  • Size: 77.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for kwutil-0.3.3.tar.gz
Algorithm Hash digest
SHA256 e651c069009477a675e2d28940379337a8a96843b6919cafecd05690e3f6dcf4
MD5 9ca5fc9fe34ec66707ca25d2685d1bb5
BLAKE2b-256 c8b8afcc5f751425b6d3b76ce9f35a7f1990fca0cb7739b0bf1b4c725215899e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kwutil-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 83.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for kwutil-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 33e91049b197d6bfd8bd7ae2a5541d6b04598639a18fe6623e3b2e3696fbba99
MD5 6fc3e170e1c82b7802c1ba21210d07f2
BLAKE2b-256 3af4a170fbdf57af787c192320d0b37a4ef26f1170d0e134ac059179cce39731

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page