Skip to main content

A collection of useful tools

Project description

pyusful

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

Install

Requires python 3.9

py -m 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.3.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.3-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyuseful-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 427d5ab447ff082bd8994360422de0bd107e3e33b702ae3eee53c51d2ac0da37
MD5 65bdcae168206ad4d345f0e8cac6f36b
BLAKE2b-256 e1d037b587717090a9f6505e10ebf03279ff33b93cf5fb0cf2af86f826802135

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyuseful-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 13.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6d5dbc721cb75c58eb26bc911b6bb2fe1edc3c478758ebdef7f618065cd6070a
MD5 0ddabfc6472d36f3439d079393dbdc1b
BLAKE2b-256 e6024f14d3062065a35e88cc8d4c6581a95273479a186b24098fe22ff3e39ae1

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