damei


Namedamei JSON
Version 1.1.135 PyPI version JSON
download
home_pagehttps://github.com/zhangzhengde0225/damei
SummaryDa Mei project with deep learning general functions.
upload_time2023-02-10 00:48:56
maintainer
docs_urlNone
authorZhengde Zhang
requires_python>=3.6.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
[![Stars](https://img.shields.io/github/stars/zhangzhengde0225/damei)](
https://github.com/zhangzhengde0225/damei)
[![Open issue](https://img.shields.io/github/issues/zhangzhengde0225/damei)](
https://github.com/zhangzhengde0225/damei/issues)
[![Source_codes](https://img.shields.io/static/v1?label=Download&message=src&color=orange)](
https://github.com/zhangzhengde0225/damei/archive/refs/heads/master.zip)
[![Source_codes](https://img.shields.io/static/v1?label=Docs&message=Available&color=orange)](
http://47.114.37.111)
# damei

damei(大妹) library。

涉及深度学习和量子力学交叉。

提供常用函数、控制台、解算器等。

# 1.安装

pypi安装:

```
pip install damei  
```

[//]: # (或从源码安装:[Download](https://github.com/zhangzhengde0225/damei/archive/refs/heads/master.zip).)
下载源码后:

```
unzip damei-master.zip
cd damei-master
python setup.py install
```

# 2.使用

## [详细API文档](http://47.114.37.111)

```python
import damei as dm
```

[//]: # (### 使用示例[usage.md](https://github.com/zhangzhengde0225/damei/blob/master/docs/usage.md).)

# 3.更新日志

```python
"""
20200808 v1.0.0 初始版本
20210303 v1.0.15 general.letterbox
				general.plot_one_box_trace_pose_status
				general.xyxy2xywh
				general.xywh2xyxy
				dm.torch_utils.select_device
20211010 v1.0.153 dm.tools.check_COCO dm.tools.check_YOLO
20211201 v1.0.154 数据增强,根据mask的目标的随机位置、随机缩放和随机旋转
20211210 v1.0.155 dm.genral.pts2bbox 
20211223 v1.0.156 dm.video2frames
20211223 v1.0.157 dm.misc.list2table 
                  dm.misc.flatten_list
20220114 v1.0.158 dm.general.torch_distributed_zero_firs
20220117 v1.0.159 dm.getLogger(name=None, name_lenth=12, level=logging.INFO)
20220215 v1.0.160 dm.misc.dict2info(info_dict)  # 字典带颜色转为方便查看的字符串
                  dm.current_system()  # 返回linux windows macos
                  dm.system_lib_suffix()  # 返回.so .dll .dylib
20220304 v1.0.161 支持无torch库时import damei,有torch库时能调用
20220305 v1.0.162 ct = dm.current_time()  # 当前时间
                  et = dm.plus_time(ct=None, seconds=1)  # 未来某个到期时间
                  bool = dm.within_time(et, ct=None)  # 输入到期时间,判断当前时间是否在内 
                  dm.rsa.gen_rsa(length=1024)  # 在随机生成公钥-私钥对,存储在当前路径pubk.pen和privk.pem里
                  dm.rsa.encrypt(plaintext, pubk=None, privk=None, length=1024)  # 用公钥或私钥对明文加密
                  dm.rsa.decrypt(ciphertext, pubk=None, privk=None, length=1024)  # 用私钥或公钥对密文解密
                  dm.rsa.sign(message, privk, hash_method='MD5')  # 签密体制下的签名
                  dm.rsa.verify(message, signature, pubk)  # 签密体制下的验签
20220309 v1.0.163 cfg = dm.PyConfig(cfg_file)
                    print(cfg.info())  # 查看配置
                    cfg.merge(cfg2)  # 合并配置      
20220322 v1.0.164 dm.comm.push_stream(  # 把视频推成流
                source, ip='127.0.0.1', port=1935, stream_type='rtmp', key=None))
20220323 v1.0.165 dmpeg = dm.DmFFMPEG()  # 传入一堆参数
                    for img in imgs:  # 循环中推流
                        dmpeg.push_stream(img)  # 推流
                # 取流:ffplay rtmp://127.0.0.1:1935/live
    
20220408 v1.1.0 # 新增dm.nn
            uaii = dm.nn.api.UAII()
         v1.1.1 # 新增dm.argparse,只读取默认值,不解析命令行参数
            parser = dm.argparse.ArgumentParser()
20220610 v1.1.6 # damei_doc上线
20220621 v1.1.7 # damei.comm.push_stream()  提供API文档
20230209 v1.2.0 # Lightweight, remove some larger dependencies.
"""
```





            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/zhangzhengde0225/damei",
    "name": "damei",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Zhengde Zhang",
    "author_email": "drivener@163.com",
    "download_url": "https://files.pythonhosted.org/packages/bc/48/de050af41c2c8a0e0758b99fc3f075a8356cd8fdf6559ca74a2252269f5f/damei-1.1.135.tar.gz",
    "platform": null,
    "description": "\n[![Stars](https://img.shields.io/github/stars/zhangzhengde0225/damei)](\nhttps://github.com/zhangzhengde0225/damei)\n[![Open issue](https://img.shields.io/github/issues/zhangzhengde0225/damei)](\nhttps://github.com/zhangzhengde0225/damei/issues)\n[![Source_codes](https://img.shields.io/static/v1?label=Download&message=src&color=orange)](\nhttps://github.com/zhangzhengde0225/damei/archive/refs/heads/master.zip)\n[![Source_codes](https://img.shields.io/static/v1?label=Docs&message=Available&color=orange)](\nhttp://47.114.37.111)\n# damei\n\ndamei(\u5927\u59b9) library\u3002\n\n\u6d89\u53ca\u6df1\u5ea6\u5b66\u4e60\u548c\u91cf\u5b50\u529b\u5b66\u4ea4\u53c9\u3002\n\n\u63d0\u4f9b\u5e38\u7528\u51fd\u6570\u3001\u63a7\u5236\u53f0\u3001\u89e3\u7b97\u5668\u7b49\u3002\n\n# 1.\u5b89\u88c5\n\npypi\u5b89\u88c5:\n\n```\npip install damei  \n```\n\n[//]: # (\u6216\u4ece\u6e90\u7801\u5b89\u88c5\uff1a[Download](https://github.com/zhangzhengde0225/damei/archive/refs/heads/master.zip).)\n\u4e0b\u8f7d\u6e90\u7801\u540e\uff1a\n\n```\nunzip damei-master.zip\ncd damei-master\npython setup.py install\n```\n\n# 2.\u4f7f\u7528\n\n## [\u8be6\u7ec6API\u6587\u6863](http://47.114.37.111)\n\n```python\nimport damei as dm\n```\n\n[//]: # (### \u4f7f\u7528\u793a\u4f8b[usage.md](https://github.com/zhangzhengde0225/damei/blob/master/docs/usage.md).)\n\n# 3.\u66f4\u65b0\u65e5\u5fd7\n\n```python\n\"\"\"\n20200808 v1.0.0 \u521d\u59cb\u7248\u672c\n20210303 v1.0.15 general.letterbox\n\t\t\t\tgeneral.plot_one_box_trace_pose_status\n\t\t\t\tgeneral.xyxy2xywh\n\t\t\t\tgeneral.xywh2xyxy\n\t\t\t\tdm.torch_utils.select_device\n20211010 v1.0.153 dm.tools.check_COCO dm.tools.check_YOLO\n20211201 v1.0.154 \u6570\u636e\u589e\u5f3a\uff0c\u6839\u636emask\u7684\u76ee\u6807\u7684\u968f\u673a\u4f4d\u7f6e\u3001\u968f\u673a\u7f29\u653e\u548c\u968f\u673a\u65cb\u8f6c\n20211210 v1.0.155 dm.genral.pts2bbox \n20211223 v1.0.156 dm.video2frames\n20211223 v1.0.157 dm.misc.list2table \n                  dm.misc.flatten_list\n20220114 v1.0.158 dm.general.torch_distributed_zero_firs\n20220117 v1.0.159 dm.getLogger(name=None, name_lenth=12, level=logging.INFO)\n20220215 v1.0.160 dm.misc.dict2info(info_dict)  # \u5b57\u5178\u5e26\u989c\u8272\u8f6c\u4e3a\u65b9\u4fbf\u67e5\u770b\u7684\u5b57\u7b26\u4e32\n                  dm.current_system()  # \u8fd4\u56delinux windows macos\n                  dm.system_lib_suffix()  # \u8fd4\u56de.so .dll .dylib\n20220304 v1.0.161 \u652f\u6301\u65e0torch\u5e93\u65f6import damei\uff0c\u6709torch\u5e93\u65f6\u80fd\u8c03\u7528\n20220305 v1.0.162 ct = dm.current_time()  # \u5f53\u524d\u65f6\u95f4\n                  et = dm.plus_time(ct=None, seconds=1)  # \u672a\u6765\u67d0\u4e2a\u5230\u671f\u65f6\u95f4\n                  bool = dm.within_time(et, ct=None)  # \u8f93\u5165\u5230\u671f\u65f6\u95f4\uff0c\u5224\u65ad\u5f53\u524d\u65f6\u95f4\u662f\u5426\u5728\u5185 \n                  dm.rsa.gen_rsa(length=1024)  # \u5728\u968f\u673a\u751f\u6210\u516c\u94a5-\u79c1\u94a5\u5bf9\uff0c\u5b58\u50a8\u5728\u5f53\u524d\u8def\u5f84pubk.pen\u548cprivk.pem\u91cc\n                  dm.rsa.encrypt(plaintext, pubk=None, privk=None, length=1024)  # \u7528\u516c\u94a5\u6216\u79c1\u94a5\u5bf9\u660e\u6587\u52a0\u5bc6\n                  dm.rsa.decrypt(ciphertext, pubk=None, privk=None, length=1024)  # \u7528\u79c1\u94a5\u6216\u516c\u94a5\u5bf9\u5bc6\u6587\u89e3\u5bc6\n                  dm.rsa.sign(message, privk, hash_method='MD5')  # \u7b7e\u5bc6\u4f53\u5236\u4e0b\u7684\u7b7e\u540d\n                  dm.rsa.verify(message, signature, pubk)  # \u7b7e\u5bc6\u4f53\u5236\u4e0b\u7684\u9a8c\u7b7e\n20220309 v1.0.163 cfg = dm.PyConfig(cfg_file)\n                    print(cfg.info())  # \u67e5\u770b\u914d\u7f6e\n                    cfg.merge(cfg2)  # \u5408\u5e76\u914d\u7f6e      \n20220322 v1.0.164 dm.comm.push_stream(  # \u628a\u89c6\u9891\u63a8\u6210\u6d41\n                source, ip='127.0.0.1', port=1935, stream_type='rtmp', key=None))\n20220323 v1.0.165 dmpeg = dm.DmFFMPEG()  # \u4f20\u5165\u4e00\u5806\u53c2\u6570\n                    for img in imgs:  # \u5faa\u73af\u4e2d\u63a8\u6d41\n                        dmpeg.push_stream(img)  # \u63a8\u6d41\n                # \u53d6\u6d41\uff1affplay rtmp://127.0.0.1:1935/live\n    \n20220408 v1.1.0 # \u65b0\u589edm.nn\n            uaii = dm.nn.api.UAII()\n         v1.1.1 # \u65b0\u589edm.argparse\uff0c\u53ea\u8bfb\u53d6\u9ed8\u8ba4\u503c\uff0c\u4e0d\u89e3\u6790\u547d\u4ee4\u884c\u53c2\u6570\n            parser = dm.argparse.ArgumentParser()\n20220610 v1.1.6 # damei_doc\u4e0a\u7ebf\n20220621 v1.1.7 # damei.comm.push_stream()  \u63d0\u4f9bAPI\u6587\u6863\n20230209 v1.2.0 # Lightweight, remove some larger dependencies.\n\"\"\"\n```\n\n\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Da Mei project with deep learning general functions.",
    "version": "1.1.135",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a83b8e428ed3378d6187374bdbb8d80aac3cf60ba6889c9932a4010dac0399e2",
                "md5": "2552f42b1218197527ae513228831b4e",
                "sha256": "2bca8e3eba56f29cc632597e5f7adb1864194574b669a38680b2be4891884513"
            },
            "downloads": -1,
            "filename": "damei-1.1.135-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2552f42b1218197527ae513228831b4e",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.6.0",
            "size": 145079,
            "upload_time": "2023-02-10T00:48:53",
            "upload_time_iso_8601": "2023-02-10T00:48:53.964109Z",
            "url": "https://files.pythonhosted.org/packages/a8/3b/8e428ed3378d6187374bdbb8d80aac3cf60ba6889c9932a4010dac0399e2/damei-1.1.135-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bc48de050af41c2c8a0e0758b99fc3f075a8356cd8fdf6559ca74a2252269f5f",
                "md5": "f0f3cae628c00170cd346e200e18d83f",
                "sha256": "795569121679b5aeeb142c6f9c306a09798651ca8af00dc97585264ba1b7dfce"
            },
            "downloads": -1,
            "filename": "damei-1.1.135.tar.gz",
            "has_sig": false,
            "md5_digest": "f0f3cae628c00170cd346e200e18d83f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6.0",
            "size": 121698,
            "upload_time": "2023-02-10T00:48:56",
            "upload_time_iso_8601": "2023-02-10T00:48:56.767287Z",
            "url": "https://files.pythonhosted.org/packages/bc/48/de050af41c2c8a0e0758b99fc3f075a8356cd8fdf6559ca74a2252269f5f/damei-1.1.135.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-10 00:48:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "zhangzhengde0225",
    "github_project": "damei",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "damei"
}
        
Elapsed time: 0.05908s