Skip to main content

A collection of useful tools

Project description

pyuseful

The package contains a collection of tools I find useful. Check out wiki page for more detail and examples.

Install

Requires python 3.9

pip install pyuseful

General info

Consists of several sub-packages:

  • classtools


    • immutable
      • class ImmutableProperties

        Makes class propreties immutable


    • message
      • class MessageThread

        Creates a separate thread which prints messeges in queue


    • postint
      • class PostInit

        Adds a call to __postinit__ method after init is complete


    • require
      • class RequireAttrs

        Adds attribute require which forces you to set listed attributes by the end of init

      • class RequireDictParser

        Parses dict or json file into a class and make attributes from keys. Adds attribute require and require_any which force you to set listed attributes by the end of init

  • decorators


    • require

      • decorator require_condition

        Let's you specify a condition in which a method of a class can be called

      • decorator once

        Function can only be called once or it always returns the same result as the 1st call

      • decorator limit

        Limits a number of times a function can be called


    • thread

      • decorator repeat_timer

      Repeat a function every timer number of seconds. Returns a Queue-like object with results


    • timing
      • decorator time_exec

        Messure exec time of a function

  • filetools


    • misc
      • function mod_name_with_ext

        Modify a path without modifying an extention


    • splicer
      • class Splicer

        Let's you specify blocks in files which can be pasted into other files

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

pyuseful-0.0.4.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

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

pyuseful-0.0.4-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file pyuseful-0.0.4.tar.gz.

File metadata

  • Download URL: pyuseful-0.0.4.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.9

File hashes

Hashes for pyuseful-0.0.4.tar.gz
Algorithm Hash digest
SHA256 eb9412b0de9cac9306ecd98f637a0f893aaad34fdddcc12e3f4a8cd42329659d
MD5 712fca6a25d86ed2e87fd82ba93ad765
BLAKE2b-256 8393025f2b9d1730c4bf151b0770721dc58b0d5fd869b44bf40d16e118da7fb5

See more details on using hashes here.

File details

Details for the file pyuseful-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: pyuseful-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.9

File hashes

Hashes for pyuseful-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 812ffc3d1d3bcbaa80a0f9ef6c64ba76c4d05335440a5f2b1068072e86d0568f
MD5 c28527349270d6e7cd32c1ae312766ea
BLAKE2b-256 1b5b4e67e35a73fb7d66d5013c16a5708c512533f789822336af306e595a5330

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