semvec/pypi-packages huggingface dataset:
dingdinghelper 0.0.5
DingDing Helper.
Requires Python: >=3.6

# dingding-helper

## Usage
```
pip install dingdinghelper
```

Example

```python
from dingdinghelper import DingDingHelper

if __name__ == "__main__":
  ding = DingDingHelper()
  ding.username = '13712345678'
  ding.password = 'xxxpassword'
  ding.corpid = '...'
  ding.corpsecret = '...'
  ding.msgurl = 'https://oapi.dingtalk.com/robot/send?access_token=...'
  ding.send_msg('DingDingHelper Test')
  ding.cookie = '...'
  ding.upload_file("E:/xxx.zip", 483476421, '/xxx/')
```

## Publish to PyPI

```
pip install --user --upgrade setuptools wheel twine
python setup.py sdist bdist_wheel
python -m twine upload dist/*
```
icecola 0.6
A  util package for python
Requires Python: >=3.5

# utils for Flask Web & Crawler

[![image](https://travis-ci.org/Colaplusice/icecola.svg?branch=master)](https://travis-ci.org/Colaplusice/icecola)


#### philosophy: DRY don't repeat yourself

## install

pip3 install icecola

## flask_utils

- ModelViewSet: quickly build CRUD for REST api, like django_restframework

views.py
```python
from flask_utils.restframework import ModelViewSet

from jasmine_app.models.user import User
from jasmine_app.models.video import Video


class UserView(ModelViewSet):
    model_class = User


class Video(ModelViewSet):
    model_class = Video

```

urls.py
```python
from jasmine_app.api.views import UserView, Video
from flask_utils.views import register_api

from . import api

register_api(api, Video, "video_api", "/video/")
register_api(api, UserView, "user_api", "/user/")

```

## crawler utils

add cache implement for crawler

```python
def test_mongo_cache(mongo_cache):
    key1 = "key"
    value1 = "value"

    mongo_cache[key1] = value1
    assert mongo_cache[key1] == value1
    assert len(mongo_cache) == 1
    assert set(mongo_cache.keys()) == {key1}
    assert set(mongo_cache.values()) == {value1}
    mongo_cache.destroy()
    assert len(mongo_cache) == 0

```