Skip to main content

Simple everyday utils and data structs written in vanilla python3.

Project description

kutils4p

Simple everyday utils and data structs written in vanilla python3.

Includes

File Utils

  • generate_files_of_type
  • is_non_zero_file

KDecorator

  • Generic decorator class which calls "before" method before decorated function and "after" method on output decorated output. Flow can be interrupted by raising a KException to prevent "after" call.

Data Structs

  • RingBuffer
    • python list wrapper which, when iterated, loops back to index 0 of contents
  • SpiralBuffer
    • python list wrapper which, when iterated, proceeds forwards and then backwards through contents

Install

pip3 install kutils4p --user

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kutils4p-0.1.tar.gz (6.0 kB view hashes)

Uploaded source

Built Distribution

kutils4p-0.1-py3-none-any.whl (5.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page