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
Datetimeclass with adate_to_epochmethod that converts a date string to an epoch timestamp. - File Management:
FileManagement.py: Contains aFileMgmtclass 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 toFileManagement.py, intended for Azure storage (currently under development and pending testing before production use).
- Email Extraction:
ObtainEmails.py: Containsget_email_addresses, a function that extracts unique email addresses from a given string.
- Runtime Tracking:
Runtime.py: Provides aRuntimeclass 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.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pc_utils-0.3.0.tar.gz | 15.3 kB | With provenance | Details for pc_utils-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pc_utils-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for pc_utils-0.3.0-py3-none-any.whl |
Total release size: 25.2 kB
Release files / pc_utils-0.3.0.tar.gz
| Download URL | pc_utils-0.3.0.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a49f1f5ec4b31cf5f09c3e7f33ba1ee3c774d042972b8c33681cbd44c2f032fa
|
|
BLAKE2b-256 checksum How to use checksums |
ec20b25bebd70370032a3108fb210382103148fea15a34795a70f8dade124089
|
| 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 logRelease files / pc_utils-0.3.0-py3-none-any.whl
| Download URL | pc_utils-0.3.0-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2498b76a9cbc3721cdc34307a9c09a504cfe64550f1c158d37271016d0e0d34f
|
|
BLAKE2b-256 checksum How to use checksums |
4ec4820208ade204b1f4709bf32fe28898e7fbc33094777bd5d02644d815c7e7
|
| 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 logSecurity for PC-Utils 0.3.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.
Attestation for pc_utils-0.3.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 logA 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.