semvec/pypi-packages huggingface dataset:
it-automation-martin 1.1.2
IT automation modules
License: MIT

![Tests](https://github.com/MartyDiaz/IT_Automation_Project/actions/workflows/tests.yml/badge.svg)
# IT_Automation Project

IT_Automation_Project is a Python library I wrote to complete the final project in Google's IT automation with Python class.

The library provides basic system monitoring, image processing, PDF file generation,  and email generation.

# overview
There are 7 modules in this project. 

### health_checks
This module contains functions for checking if system resources are overloaded and then emailing a error message.
### ChangeImage
Functions for converting images in a directory into jpeg images, images can also be resized.
### emails
This module contains functions for generating and sending emails. Email attachments are optional.
### reports
Functions for generating pdf reports.
### report_email
This module is specific to the final assignment but I will in include it here.
Generates a pdf report from Google's supplier data. The report is attached to an email message and sent.
### Supplier_image_upload
This module is specific to the final assignment but I will in include it here. Makes a post request for every jpeg image in a directory. This script is used for Google's IT_automation class. The directory contains images for every fruit that will be displayed in customers website.
### run
This module is specific to the final assignment but I will in include it here. Functions for reading a directory and then making post request with the data. This is used for Google's IT automation class project. Reads a directory with files containing information on fruits and then makes a post request to the class website to show the data.


## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install it-automation-martin.

```bash
pip install it-automation-martin
```

## Usage

### health_checks
```python
from it_automation import health_checks

cpu_percent_usage_threshold = 80
available_disk_space_percent_threshold = 20
memory_threshold = 500 * 1024 * 1024  # 500MB
email_body = 'Please check your system and resolve the issue as soon as possible.'
sender = "test_email@gmail.com"
receiver = "test_email@gmail.com"

health_checks.check_systems(cpu_percent_usage_threshold, 
    available_disk_space_percent_threshold,
    memory_threshold, 
    sender, 
    receiver, 
    email_body)
```
### changeImage
```python
from it_automation import changeImage

image_directory = os.path.expanduser('~') + '/Images'

output_directory = os.path.expanduser('~') + '/Images'
resize_width = 600
resize_height = 400
convert_image(image_directory, resize_width, resize_height, output_directory)
```

## Contributing
Pull requests are welcome.

## License
[MIT](https://choosealicense.com/licenses/mit/)
bztt-checkSoftware 0.0.1
bztt_checkSoftware
License: MIT
Requires Python: >=3.6.0

bztt_checkSoftware
==============
校验软件


使用方法
```
from bztt_checkSoftware import checkSoftware

SOFTWARE_INFO = {
        "api_url" : "http:*******/",        # api地址
        "authorization" : "",   # token
        "software_id" : "",     # 软件编号
    }

my_checkSoftware = checkSoftware(SOFTWARE_INFO)
my_checkSoftware.run()

```


# 更新记录
# 变动类型说明
Added 新添加的功能。 [新增]

Changed 对现有功能的变更。 [修改]

Deprecated 已经不建议使用，准备很快移除的功能。 [荒废]

Removed 已经移除的功能。  [移除]

Fixed 对bug的修复 [修复]

Security 对安全的改进  [安全]

---
# [0.0.1] - 2022-05-11
## 新增
- 首次提交