Skip to main content

PC_Utils

A collection of essential utilities for Productivity & Collaboration (P&C) services management, maintenance, and optimization of operational tasks. While applicable to services like Slack, these utilities are designed for broader P&C tasks.

Features

  • Datetime Utility: Provides a Datetime class with a date_to_epoch method that converts a date string to an epoch timestamp.
  • File Management:
    • FileManagement.py: Contains a FileMgmt class for file searching and moving. It also includes methods for reading CSV files into a list of Python dictionaries and creating a CSV file from a list of Python dictionaries.
    • FileManagement_w_Azure.py: Similar to FileManagement.py, intended for Azure storage (currently under development and pending testing before production use).
  • Email Extraction:
    • ObtainEmails.py: Contains get_email_addresses, a function that extracts unique email addresses from a given string.
  • Runtime Tracking:
    • Runtime.py: Provides a Runtime class for calculating and displaying runtime information.

Installation

Install the package via pip:

pip install pc-utils

Usage

Import the relevant classes into your Python code:

from pc_utils.Datetime import Datetime
from pc_utils.FileManagement import FileMgmt
from pc_utils.FileManagement_w_Azure import FileMgmt as AzureFileMgmt
from pc_utils.ObtainEmails import get_email_addresses
from pc_utils.Runtime import Runtime

Example Usage

  • Datetime Conversion:
    from pc_utils.Datetime import Datetime
    dt = Datetime()
    epoch_time = dt.date_to_epoch("2025-03-11")
    print(epoch_time)
    
  • File Management:
    from pc_utils.FileManagement import FileMgmt
    fm = FileMgmt()
    fm..createOutputCSVfileFromListOfDictionaries(user_channels, fileName, start_msg = "> Writing results to file... ", no_file_created_msg = "> No channels found. No output file was created.")
    
  • Email Extraction:
    from pc_utils.ObtainEmails import get_email_addresses
    emails = get_email_addresses("Contact us at info@example.com and support@example.org.")
    print(emails)
    
  • Runtime Tracking:
    from pc_utils.Runtime import Runtime
    rt = Runtime()
    rt.print_time("\n> Start time:")
    <some code here>
    rt.print_time("\n> End time:")
    rt.print_runtime("> Total time:")
    

Contributing

Contributions are welcome! Feel free to submit pull requests with improvements, new features, or bug fixes.

License

This project is licensed under the MIT License.

Contact

For issues, feature requests, or questions, please open an issue in the repository.

Metadata

Release files for PC-Utils 0.2.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 PC-Utils 0.2.0
File Size Uploaded Provenance Actions
pc_utils-0.2.0.tar.gz 15.7 kB With provenance Details for pc_utils-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PC-Utils 0.2.0
File Interpreter ABI Platform Actions
pc_utils-0.2.0-py3-none-any.whl Python 3 none any Details for pc_utils-0.2.0-py3-none-any.whl

Total release size: 27.8 kB

Release files / pc_utils-0.2.0.tar.gz

Download URL pc_utils-0.2.0.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a78fb8cb5b156fa78e6a441314bedc8c705d0c33ca0e102eaab5ea504352e281
BLAKE2b-256 checksum
How to use checksums
3ef65a60157f1be027cbe4389230811c56b202f780b42117c132a4f2870c00a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.

Transparency log

Release files / pc_utils-0.2.0-py3-none-any.whl

Download URL pc_utils-0.2.0-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ecc1b3deb912010688d612a9b71754238726d1ca0001b412c67c449cd2357b62
BLAKE2b-256 checksum
How to use checksums
073ec4895e7557d1a93ac80031764d2277f69925c0f5c83881c3fe2638a052a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.

Transparency log

Security for PC-Utils 0.2.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pc_utils-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.

Transparency log

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.2.0 This release

2 release files Full 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