WCP-Library
Description
Commonly used functions for the D&A team.
Installation
pip install WCP-Library
Requires Python 3.12 or newer.
Modules
| Module | Purpose |
|---|---|
wcp_library |
APPLICATION_PATH for deployment-independent paths, and divide_chunks for batching a list. |
wcp_library.credentials |
Password Vault credential managers — API, FTP/SFTP, Internet, Oracle, Postgres, and Windows — each with a synchronous and an asynchronous flavour. |
wcp_library.sql |
Oracle and Postgres connection classes, sync and async, with optional connection pooling, explicit transactions, and dataframe import/upsert helpers. |
wcp_library.ftp |
FTP and SFTP clients for listing, downloading, and uploading files. |
wcp_library.graph |
Microsoft Graph helpers: authentication, SharePoint sites/files/lists, Outlook mail and attachments, and webhook subscription lifecycle management. |
wcp_library.browser_automation |
Selenium sessions for Chrome, Firefox, and Edge, plus locator-based and WebElement-based interaction helpers. |
wcp_library.emailing |
MailServer for sending mail through SMTP2GO, including a styled HTML error report. |
wcp_library.logging |
create_log for standard file and console logging setup. |
wcp_library.time |
Timezone-aware current time, timezone conversion, and UTC/local timestamp helpers. |
wcp_library.retry |
Tenacity retry strategies shared by the SQL, Graph, and browser automation modules. |
Usage
See Wiki for more information.
Development
Install dependencies and run the test suite with Poetry:
poetry install
poetry run pytest
Authors and acknowledgment
Mitch Petersen
Stakeholders
D&A Developers
Project status
In Development
Release files for wcp-library 1.15.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wcp_library-1.15.2.tar.gz | 54.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wcp_library-1.15.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 124.0 kB
Release files / wcp_library-1.15.2.tar.gz
| Download URL | wcp_library-1.15.2.tar.gz |
|---|---|
| Size | 54.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a375646bdcb7a5e46b1c65e9b79dc292e8e9fbdfb9cbfd4dc97c6359ec3f82b4
|
|
BLAKE2b-256 checksum How to use checksums |
21cedadf86a7af006b8c6000f725e7b0f147fa19654382d3920c486107fa555e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.1 CPython/3.12.7 Linux/6.17.0-1022-azure
|
Release files / wcp_library-1.15.2-py3-none-any.whl
| Download URL | wcp_library-1.15.2-py3-none-any.whl |
|---|---|
| Size | 69.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d35b4ddeff11bd1eace107d451cdcefabf2196f8df8de1944db33ef8f001d51
|
|
BLAKE2b-256 checksum How to use checksums |
419046e2f3a3057e329b3803ab9ee907431d976cda71281112ab56ddb8e3f36f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.1 CPython/3.12.7 Linux/6.17.0-1022-azure
|