semvec/pypi-packages huggingface dataset:
mailupy 1.1.4
Yet another Mailup Python client
License: MIT
Requires Python: >=3.6
Keywords: mailup,python,api,client

# mailupy

💌 Yet another [MailUp](https://www.mailup.it/) Python client

[![Latest Version](https://img.shields.io/pypi/v/mailupy.svg)](https://pypi.python.org/pypi/mailupy/)
[![codecov](https://codecov.io/gh/lotrekagency/mailupy/branch/master/graph/badge.svg)](https://codecov.io/gh/lotrekagency/mailupy)
[![Build Status](https://travis-ci.org/lotrekagency/mailupy.svg?branch=master)](https://travis-ci.org/lotrekagency/mailupy)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/lotrekagency/mailupy/blob/master/LICENSE)

## Contributing

Any help is welcome, as long as you don't break the continuous integration.
Fork the repository and open a Pull Request directly on the master branch.
A maintainer will review and integrate your changes.

Maintainers:

- [Andrea Stagi](https://github.com/astagi)
- [Edoardo Grassi](https://github.com/edoaxyz)

Contributors:

- [Fabio Piras](https://github.com/Arussil)

## Install

```sh
pip install mailupy
```

## How to use

Import Mailupy and instantiate the client

```py
from mailupy import Mailupy

client = Mailupy(
    'm00000',
    'm@1lUPf4k3',
    '8123dbff-d12c-4e3d-a55e-23a8c5a303f8',
    '16cadddf-a145-45db-9347-a5ab51ac223d'
)
```

## Examples

Getting information about fields, groups...

```py
for field in client.get_fields():
    print (field)
```

```py
for group in client.get_groups_from_list(1):
    print (group)
```

Getting recipients from lists using [Ordering and Filtering (Mailup Documentation)](http://help.mailup.com/display/mailupapi/Paging+and+filtering)

```py
for group in client.get_groups_from_list(
        1, filter_by='Name.Contains(\'Farm\')',
        order_by=['Name asc', 'idGroup desc']):
    print (group)
```

```py
for recipient in client.get_subscribed_recipients_from_list(
        1, filter_by='Email.Contains(\'zzz\')',
        order_by=['Email desc']):
    print (recipient['Email'])
```

Getting a subscribed recipient from a list

```py
client.get_subscribed_recipient_from_list(1, 'andrea.stagi@lotrek.it')
```

Subscribe/Unsubscribe recipient to/from lists

```py
recipient_id = client.subscribe_to_list(
  1, 'Andrea Stagi', 'stagi.andrea@gmail.com', pending=False
)

client.unsubscribe_from_list(1, recipient_id)
```

## Run tests

```sh
pip install -r requirements-dev.txt
make test
```
pydocker-util 1.0.0
docker助手
License: MIT
Requires Python: >=3.6

<h1 align="center">pydocker_util</h1>

- docker_util.py

检测/控制docker，使用示例：

```python
# 当前运行的服务
remote_host = "tcp://192.168.1.1:2375"
test = DockerController(remote_host)
print(f"总共有这些服务正在运行：{test.list_running_object_containers()}")

# 暂停容器
test.stop_container('postgres')

# 删除容器
test.remove_container('postgres')

# 获取单个容器
test.inspect_container('postgres')
```
pyaes-util 1.0.0
aes助手
License: MIT
Requires Python: >=3.6

<h1 align="center">pyaes_util</h1>

- aes_util.py

aes非对称加密的各种封装方法，使用示例：

```python
key = '12223'
data = 'hc刺激啊四神聪骄傲i'
encrypt = encrypt_aes(data, key)
print(encrypt)
print(decrypt_aes(encrypt, key))
```
pyalioss-util 1.0.0
阿里云oss助手
License: MIT
Requires Python: >=3.6

<h1 align="center">pyalioss_util</h1>

- alioss_util.py

阿里云oss，使用示例：

```python
access_key_id = ''
access_key_secret = ''
endpoint = 'http://oss-cn-hangzhou.aliyuncs.com'
bucket_name = ''

oss = AliyunOSS(access_key_id, access_key_secret, endpoint, bucket_name)

# 上传对象
object_name = 'test2/docker_test.py'
file_path = '../docker/docker_test.py'
oss.upload_object(object_name, file_path)

# 下载对象
local_file_path = './docker_test.py'
oss.download_object(object_name, local_file_path)
# 删除对象
oss.delete_object(object_name)
# 遍历存储桶中的所有对象
objects = oss.list_files_in_directory()
print(objects)
```