A Python package for automating LMG processes
Project description
Inhouse Auomation Library for HC
After pip install is complete run the following in the command line. This will create a directory in your One Drive - C:\Users\266112\OneDrive - Landmark Group\Work\Automations\GUI
python -m hcautomation.post_install_setup
To use this library, import the following class & create an object of this class using:
from hcautomation.hcautomation import Download
obj = Download('name_of_project')
Library Usage
QV Download
This function downloads data from a QV bookmark.
obj.qv(url, save_path, download_time, column_order=[], cols_to_convert=[], typ='float', lx=False, stop_date='', extension='csv', lx_mon=[], include_today=False, check_date_filter=True)
Parameters starting with ! are REQUIRED, rest are OPTIONAL
| Parameter | Type | Description |
|---|---|---|
! url |
string |
Link to the QV bookmark |
! save_path |
string |
Path with filename for the save location of file downloaded from QV |
! download_time |
int |
Maximum time to wait for download to finish |
column_order |
list |
Order of columns to reorder columns in downloaded file |
cols_to_convert |
list |
If file is downloaded as CSV, convert given list of columns to float |
lx |
Boolean |
Set to True if you want to select the dates for which data has to be downloaded. |
stop_date |
string |
Download data from this date onwards till today. Format: dd/mm/yyyy |
extension |
string |
File format to download final data in. 'csv' or 'xlsx' |
lx_mon |
string |
WIP |
include_today |
Boolean |
Default False. Download today's data as well if set to True |
check_date_filter |
Boolean |
Default True. Check if date filter has been applied |
ER Download
GET /api/items/${id}
| Parameter | Type | Description |
|---|---|---|
id |
string |
Required. Id of item to fetch |
add(num1, num2)
Takes two numbers and returns the sum.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hcautomation-0.3.0.tar.gz.
File metadata
- Download URL: hcautomation-0.3.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e479125bd6ff46fb86f8747167886ed7c67e7fe09cd3fca53ed02e358c86ab2a
|
|
| MD5 |
760e06ee5408dd4a178cfadf939d0f6e
|
|
| BLAKE2b-256 |
cb71725b05a750ad6804a29439b5c349ed4ae008da8db1359162cb06492eaaee
|
File details
Details for the file hcautomation-0.3.0-py3-none-any.whl.
File metadata
- Download URL: hcautomation-0.3.0-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02ee6245a3819707b576cdca4fc13987f47a90bb737e451a7224f7f4ddc3a368
|
|
| MD5 |
93ad184a1ed3c68ff952ed894f8b5053
|
|
| BLAKE2b-256 |
26143ce19b3bd629b918500c1d00ccd4ef2c0b3769e078da53c12a35f9f85cc6
|