Skip to main content

Wutils

WRedis is a library for specific functions for various Python projects.

Description

WRedis simplifies code reuse in Python projects. The library offers a number of modules that make using modules easier and simpler.

Installation

To install the library, use pip:

pip install wutils

Description

The wutils library offers a number of general-purpose modules.

License

MIT

This project is licensed under the MIT License. See the LICENSE file for details.

Examples

This directory contains a collection of examples that demonstrate the usage of various modules and functionalities in this project. Each subfolder corresponds to a specific module and includes example scripts to help you understand how to use that module.

Directory Structure

The examples are organized as follows:

examples/
    periodic_task/
        one_task.py

How to Use

  1. Navigate to the module folder of interest, e.g., examples/module1/.
  2. Open the README.md in that folder to get detailed information about the examples.
  3. Run the scripts directly using:
    python example1.py
    

Modules and Examples

periodic_task

Description

This module demonstrates specific functionalities.

  • one_task.py: Example demonstrating functionality.
import time
from wutils.periodic_task import PeriodicTask


def my_firts_periodic_function():
   print("Running my_firts_periodic_function task...")


def my_second_periodic_function():
   print("Running my_second_periodic_function task...")


# Create the periodic task with a 5-second interval and verbose logging enabled
task = PeriodicTask(5, my_firts_periodic_function, verbose=True)

# Start the task
task.start()

# Wait for some time and stop the task
time.sleep(15)
task.stop()

# Create another task with verbose logging disabled
silent_task = PeriodicTask(2, my_second_periodic_function, verbose=False)
silent_task.start()
time.sleep(10)
silent_task.stop()

Metadata

Release files for wiliutils 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wiliutils 0.1.0
File Size Uploaded Provenance
wiliutils-0.1.0.tar.gz 4.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for wiliutils 0.1.0
File Interpreter ABI Platform
wiliutils-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / wiliutils-0.1.0.tar.gz

Download URL wiliutils-0.1.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
41a1b060def9e4cfe0f730f1ed48f6a85be2edd148d0083cae81ea36e86d5d8f
BLAKE2b-256 checksum
How to use checksums
8bef1a8efd45ba66edb75d2d07c3075c435d329d2c0f0c582636e1f8141f0e19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.5

Release files / wiliutils-0.1.0-py3-none-any.whl

Download URL wiliutils-0.1.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1fec4541440ccfa1c70e807f087bfc3a2db1165cb563f5e8b9c9c4f2e8b11ec
BLAKE2b-256 checksum
How to use checksums
b1cadaa55f215cec920c5d3ffd0fa02a113d3c721e58c9e183cc772ebba98b42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.5

Security for wiliutils 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page