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.informatica |
InformaticaSession for running and monitoring Informatica Cloud tasks. |
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.14.11
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.14.11.tar.gz | 47.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wcp_library-1.14.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 108.2 kB
Release files / wcp_library-1.14.11.tar.gz
| Download URL | wcp_library-1.14.11.tar.gz |
|---|---|
| Size | 47.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e777ac4c2391bb10901b3e3e117e1a60bb5066e25eb052109012b034ecd2804
|
|
BLAKE2b-256 checksum How to use checksums |
6672a02a39e6f40c99bb4185c97636baf574957e902a63e84d35aab65fd65c50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.3 CPython/3.12.7 Linux/6.17.0-1022-azure
|
Release files / wcp_library-1.14.11-py3-none-any.whl
| Download URL | wcp_library-1.14.11-py3-none-any.whl |
|---|---|
| Size | 61.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75e9891f79e136cfbdce76aca07f9668cb1ac67198a7588c8a8547d65711bdf2
|
|
BLAKE2b-256 checksum How to use checksums |
49df06d3efeb50f9aff3d34529ec5107b7e2e40538082f76752b803f3dd3d8c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.3 CPython/3.12.7 Linux/6.17.0-1022-azure
|