mbapy 0.2.0__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mbapy-0.2.0 → mbapy-0.3.0}/LICENSE +21 -21
- {mbapy-0.2.0/mbapy.egg-info → mbapy-0.3.0}/PKG-INFO +116 -116
- {mbapy-0.2.0 → mbapy-0.3.0}/README.md +92 -92
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/__init__.py +31 -36
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/__version__.py +15 -15
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/base.py +577 -477
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/dl_torch/__init__.py +14 -14
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/dl_torch/arch/CL/__init__.py +2 -2
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/dl_torch/arch/CL/builder.py +368 -368
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/dl_torch/arch/CL/trainer.py +59 -59
- mbapy-0.3.0/mbapy/dl_torch/arch/CLIP/__init__.py +2 -0
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/dl_torch/arch/__init__.py +9 -9
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/dl_torch/bb.py +532 -501
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/dl_torch/data.py +155 -155
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/dl_torch/hyper_search.py +40 -40
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/dl_torch/loss.py +95 -95
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/dl_torch/m.py +302 -302
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/dl_torch/optim.py +90 -90
- mbapy-0.3.0/mbapy/dl_torch/paper/__init__.py +2 -0
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/dl_torch/paper/bb.py +73 -73
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/dl_torch/utils.py +316 -316
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/file.py +35 -3
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/file_utils/image.py +158 -158
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/file_utils/video.py +242 -242
- mbapy-0.3.0/mbapy/game.py +231 -0
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/paper.py +82 -82
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/plot.py +335 -335
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/sci_utils/paper_download.py +50 -19
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/sci_utils/paper_parse.py +282 -282
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/sci_utils/paper_search.py +11 -11
- mbapy-0.3.0/mbapy/stats/__init__.py +74 -0
- mbapy-0.3.0/mbapy/stats/cluster.py +642 -0
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/stats/df.py +319 -319
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/stats/geography.py +363 -363
- mbapy-0.3.0/mbapy/stats/reg.py +57 -0
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/stats/test.py +281 -281
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/web.py +27 -27
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/web_utils/parse.py +89 -89
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/web_utils/request.py +355 -313
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/web_utils/task.py +150 -150
- {mbapy-0.2.0 → mbapy-0.3.0/mbapy.egg-info}/PKG-INFO +116 -116
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy.egg-info/SOURCES.txt +3 -0
- {mbapy-0.2.0 → mbapy-0.3.0}/requirements.txt +25 -25
- {mbapy-0.2.0 → mbapy-0.3.0}/setup.cfg +4 -4
- {mbapy-0.2.0 → mbapy-0.3.0}/setup.py +81 -81
- {mbapy-0.2.0 → mbapy-0.3.0}/test/test_base.py +70 -70
- mbapy-0.3.0/test/test_game.py +33 -0
- {mbapy-0.2.0 → mbapy-0.3.0}/test/test_web.py +41 -41
- mbapy-0.2.0/mbapy/dl_torch/arch/CLIP/__init__.py +0 -2
- mbapy-0.2.0/mbapy/dl_torch/paper/__init__.py +0 -2
- mbapy-0.2.0/mbapy/stats/__init__.py +0 -29
- mbapy-0.2.0/mbapy/stats/reg.py +0 -246
- {mbapy-0.2.0 → mbapy-0.3.0}/MANIFEST.in +0 -0
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/dl_torch/arch/CLIP/builder.py +0 -0
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/dl_torch/arch/CLIP/trainer.py +0 -0
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/file_utils/__init__.py +0 -0
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/sci_utils/__init__.py +0 -0
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/storage/libstats.so +0 -0
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/storage/stats.dll +0 -0
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy/web_utils/__init__.py +0 -0
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy.egg-info/dependency_links.txt +0 -0
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy.egg-info/requires.txt +0 -0
- {mbapy-0.2.0 → mbapy-0.3.0}/mbapy.egg-info/top_level.txt +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022 BHM-Bob
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 BHM-Bob
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: mbapy
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary: MyBA in Python
|
|
5
|
-
Home-page: https://github.com/BHM-Bob/BA_PY
|
|
6
|
-
Author: BHM-Bob G
|
|
7
|
-
Author-email: bhmfly@foxmail.com
|
|
8
|
-
License: MIT Licence
|
|
9
|
-
Keywords: mbapy,Utilities,plot
|
|
10
|
-
Platform: any
|
|
11
|
-
Classifier: Development Status :: 4 - Beta
|
|
12
|
-
Classifier: Intended Audience :: Science/Research
|
|
13
|
-
Classifier: Topic :: Utilities
|
|
14
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
-
Classifier: Programming Language :: Python :: 3
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
-
Requires-Python: >=3.7, <3.12
|
|
22
|
-
Description-Content-Type: text/markdown
|
|
23
|
-
License-File: LICENSE
|
|
24
|
-
|
|
25
|
-
<!--
|
|
26
|
-
* @Author: BHM-Bob 2262029386@qq.com
|
|
27
|
-
* @Date: 2022-10-19 22:16:22
|
|
28
|
-
* @LastEditors: BHM-Bob 2262029386@qq.com
|
|
29
|
-
* @LastEditTime: 2023-
|
|
30
|
-
* @Description:
|
|
31
|
-
-->
|
|
32
|
-
# BA_PY
|
|
33
|
-
[](https://pepy.tech/project/mbapy)  
|
|
34
|
-
|
|
35
|
-
  [](https://github.com/BHM-Bob/BA_PY/pulse)
|
|
36
|
-
|
|
37
|
-
  
|
|
38
|
-
|
|
39
|
-
 
|
|
40
|
-
|
|
41
|
-
mbapy is a Python package that includes a collection of useful Python scripts as sub-modules, and it's goal is *Basic for All in Python*.
|
|
42
|
-
mbapy primarily focus on areas such as sci-plot, stats, web-crawler, sci-paper utilities, and deep learning with pytorch.
|
|
43
|
-
|
|
44
|
-
## get start
|
|
45
|
-
|
|
46
|
-
#### install
|
|
47
|
-
Now, mbapy only support pypi install:
|
|
48
|
-
```
|
|
49
|
-
pip install mbapy
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
If you find the latest release version has some problems, you can try install the up-to-date version on github:
|
|
53
|
-
```
|
|
54
|
-
pip install git+https://github.com/BHM-Bob/BA_PY.git
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
#### docs
|
|
58
|
-
The documentation for mbapy can be found on [read the docs](https://ba-py.readthedocs.io/en/latest/), and it is the one that I will regularly update.
|
|
59
|
-
The API document for mbapy is available on its [wiki](https://github.com/BHM-Bob/BA_PY/wiki). However, please note that this wiki on GitHub has not been updated since 2023-07.
|
|
60
|
-
*Given my limited time, I heavily rely on chatGPT to generate the documentation*.
|
|
61
|
-
|
|
62
|
-
# contain
|
|
63
|
-
## mbapy python package
|
|
64
|
-
#### \_\_version\_\_
|
|
65
|
-
*some version info*
|
|
66
|
-
#### base
|
|
67
|
-
|
|
68
|
-
#### file
|
|
69
|
-
|
|
70
|
-
#### plot
|
|
71
|
-
*pandas.dataFrame utils for plot and some simple plot based on plt*
|
|
72
|
-
|
|
73
|
-
#### web
|
|
74
|
-
*utils for web-crawler*
|
|
75
|
-
|
|
76
|
-
#### stats
|
|
77
|
-
|
|
78
|
-
##### df
|
|
79
|
-
*pandas.dataFrame utils for stats*
|
|
80
|
-
|
|
81
|
-
##### reg
|
|
82
|
-
*regression*
|
|
83
|
-
|
|
84
|
-
##### test
|
|
85
|
-
*some test func(using scipy and mostly give a support for mbapy-style data input)*
|
|
86
|
-
|
|
87
|
-
#### dl-torch
|
|
88
|
-
*pytorch utils for deeplearning*
|
|
89
|
-
##### bb
|
|
90
|
-
*basic blocks : tiny network structures*
|
|
91
|
-
##### data
|
|
92
|
-
*utils for dataset loading*
|
|
93
|
-
##### loss
|
|
94
|
-
*some loss function*
|
|
95
|
-
##### m
|
|
96
|
-
*model : deeplearning model constructed with basic blocks*
|
|
97
|
-
##### utils
|
|
98
|
-
*deeplearning training utils*
|
|
99
|
-
##### paper
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
## examples
|
|
103
|
-
#### file
|
|
104
|
-
*some file utils things*
|
|
105
|
-
|
|
106
|
-
#### plot
|
|
107
|
-
1. stack bar plot with hue style
|
|
108
|
-
|
|
109
|
-
#### torch
|
|
110
|
-
1. seq2seq core from bentrevett/pytorch-seq2seq
|
|
111
|
-
|
|
112
|
-
#### web/crawler
|
|
113
|
-
1. chaoxin ppt multi threads downloader (jpg->pdf)
|
|
114
|
-
2. wujin search http://www.basechem.org
|
|
115
|
-
3. chemSub search http://chemsub.online.fr
|
|
116
|
-
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: mbapy
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: MyBA in Python
|
|
5
|
+
Home-page: https://github.com/BHM-Bob/BA_PY
|
|
6
|
+
Author: BHM-Bob G
|
|
7
|
+
Author-email: bhmfly@foxmail.com
|
|
8
|
+
License: MIT Licence
|
|
9
|
+
Keywords: mbapy,Utilities,plot
|
|
10
|
+
Platform: any
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Science/Research
|
|
13
|
+
Classifier: Topic :: Utilities
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Requires-Python: >=3.7, <3.12
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
|
|
25
|
+
<!--
|
|
26
|
+
* @Author: BHM-Bob 2262029386@qq.com
|
|
27
|
+
* @Date: 2022-10-19 22:16:22
|
|
28
|
+
* @LastEditors: BHM-Bob 2262029386@qq.com
|
|
29
|
+
* @LastEditTime: 2023-10-05 19:26:42
|
|
30
|
+
* @Description:
|
|
31
|
+
-->
|
|
32
|
+
# BA_PY
|
|
33
|
+
[](https://pepy.tech/project/mbapy)  
|
|
34
|
+
|
|
35
|
+
  [](https://github.com/BHM-Bob/BA_PY/pulse)
|
|
36
|
+
|
|
37
|
+
  
|
|
38
|
+
|
|
39
|
+
  [](https://codeium.com)
|
|
40
|
+
|
|
41
|
+
mbapy is a Python package that includes a collection of useful Python scripts as sub-modules, and it's goal is *Basic for All in Python*.
|
|
42
|
+
mbapy primarily focus on areas such as sci-plot, stats, web-crawler, sci-paper utilities, and deep learning with pytorch.
|
|
43
|
+
|
|
44
|
+
## get start
|
|
45
|
+
|
|
46
|
+
#### install
|
|
47
|
+
Now, mbapy only support pypi install:
|
|
48
|
+
```
|
|
49
|
+
pip install mbapy
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
If you find the latest release version has some problems, you can try install the up-to-date version on github:
|
|
53
|
+
```
|
|
54
|
+
pip install git+https://github.com/BHM-Bob/BA_PY.git
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
#### docs
|
|
58
|
+
The documentation for mbapy can be found on [read the docs](https://ba-py.readthedocs.io/en/latest/), and it is the one that I will regularly update.
|
|
59
|
+
The API document for mbapy is available on its [wiki](https://github.com/BHM-Bob/BA_PY/wiki). However, please note that this wiki on GitHub has not been updated since 2023-07.
|
|
60
|
+
*Given my limited time, I heavily rely on chatGPT to generate the documentation*.
|
|
61
|
+
|
|
62
|
+
# contain
|
|
63
|
+
## mbapy python package
|
|
64
|
+
#### \_\_version\_\_
|
|
65
|
+
*some version info*
|
|
66
|
+
#### base
|
|
67
|
+
|
|
68
|
+
#### file
|
|
69
|
+
|
|
70
|
+
#### plot
|
|
71
|
+
*pandas.dataFrame utils for plot and some simple plot based on plt*
|
|
72
|
+
|
|
73
|
+
#### web
|
|
74
|
+
*utils for web-crawler*
|
|
75
|
+
|
|
76
|
+
#### stats
|
|
77
|
+
|
|
78
|
+
##### df
|
|
79
|
+
*pandas.dataFrame utils for stats*
|
|
80
|
+
|
|
81
|
+
##### reg
|
|
82
|
+
*regression*
|
|
83
|
+
|
|
84
|
+
##### test
|
|
85
|
+
*some test func(using scipy and mostly give a support for mbapy-style data input)*
|
|
86
|
+
|
|
87
|
+
#### dl-torch
|
|
88
|
+
*pytorch utils for deeplearning*
|
|
89
|
+
##### bb
|
|
90
|
+
*basic blocks : tiny network structures*
|
|
91
|
+
##### data
|
|
92
|
+
*utils for dataset loading*
|
|
93
|
+
##### loss
|
|
94
|
+
*some loss function*
|
|
95
|
+
##### m
|
|
96
|
+
*model : deeplearning model constructed with basic blocks*
|
|
97
|
+
##### utils
|
|
98
|
+
*deeplearning training utils*
|
|
99
|
+
##### paper
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
## examples
|
|
103
|
+
#### file
|
|
104
|
+
*some file utils things*
|
|
105
|
+
|
|
106
|
+
#### plot
|
|
107
|
+
1. stack bar plot with hue style
|
|
108
|
+
|
|
109
|
+
#### torch
|
|
110
|
+
1. seq2seq core from bentrevett/pytorch-seq2seq
|
|
111
|
+
|
|
112
|
+
#### web/crawler
|
|
113
|
+
1. chaoxin ppt multi threads downloader (jpg->pdf)
|
|
114
|
+
2. wujin search http://www.basechem.org
|
|
115
|
+
3. chemSub search http://chemsub.online.fr
|
|
116
|
+
|
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: BHM-Bob 2262029386@qq.com
|
|
3
|
-
* @Date: 2022-10-19 22:16:22
|
|
4
|
-
* @LastEditors: BHM-Bob 2262029386@qq.com
|
|
5
|
-
* @LastEditTime: 2023-
|
|
6
|
-
* @Description:
|
|
7
|
-
-->
|
|
8
|
-
# BA_PY
|
|
9
|
-
[](https://pepy.tech/project/mbapy)  
|
|
10
|
-
|
|
11
|
-
  [](https://github.com/BHM-Bob/BA_PY/pulse)
|
|
12
|
-
|
|
13
|
-
  
|
|
14
|
-
|
|
15
|
-
 
|
|
16
|
-
|
|
17
|
-
mbapy is a Python package that includes a collection of useful Python scripts as sub-modules, and it's goal is *Basic for All in Python*.
|
|
18
|
-
mbapy primarily focus on areas such as sci-plot, stats, web-crawler, sci-paper utilities, and deep learning with pytorch.
|
|
19
|
-
|
|
20
|
-
## get start
|
|
21
|
-
|
|
22
|
-
#### install
|
|
23
|
-
Now, mbapy only support pypi install:
|
|
24
|
-
```
|
|
25
|
-
pip install mbapy
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
If you find the latest release version has some problems, you can try install the up-to-date version on github:
|
|
29
|
-
```
|
|
30
|
-
pip install git+https://github.com/BHM-Bob/BA_PY.git
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
#### docs
|
|
34
|
-
The documentation for mbapy can be found on [read the docs](https://ba-py.readthedocs.io/en/latest/), and it is the one that I will regularly update.
|
|
35
|
-
The API document for mbapy is available on its [wiki](https://github.com/BHM-Bob/BA_PY/wiki). However, please note that this wiki on GitHub has not been updated since 2023-07.
|
|
36
|
-
*Given my limited time, I heavily rely on chatGPT to generate the documentation*.
|
|
37
|
-
|
|
38
|
-
# contain
|
|
39
|
-
## mbapy python package
|
|
40
|
-
#### \_\_version\_\_
|
|
41
|
-
*some version info*
|
|
42
|
-
#### base
|
|
43
|
-
|
|
44
|
-
#### file
|
|
45
|
-
|
|
46
|
-
#### plot
|
|
47
|
-
*pandas.dataFrame utils for plot and some simple plot based on plt*
|
|
48
|
-
|
|
49
|
-
#### web
|
|
50
|
-
*utils for web-crawler*
|
|
51
|
-
|
|
52
|
-
#### stats
|
|
53
|
-
|
|
54
|
-
##### df
|
|
55
|
-
*pandas.dataFrame utils for stats*
|
|
56
|
-
|
|
57
|
-
##### reg
|
|
58
|
-
*regression*
|
|
59
|
-
|
|
60
|
-
##### test
|
|
61
|
-
*some test func(using scipy and mostly give a support for mbapy-style data input)*
|
|
62
|
-
|
|
63
|
-
#### dl-torch
|
|
64
|
-
*pytorch utils for deeplearning*
|
|
65
|
-
##### bb
|
|
66
|
-
*basic blocks : tiny network structures*
|
|
67
|
-
##### data
|
|
68
|
-
*utils for dataset loading*
|
|
69
|
-
##### loss
|
|
70
|
-
*some loss function*
|
|
71
|
-
##### m
|
|
72
|
-
*model : deeplearning model constructed with basic blocks*
|
|
73
|
-
##### utils
|
|
74
|
-
*deeplearning training utils*
|
|
75
|
-
##### paper
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
## examples
|
|
79
|
-
#### file
|
|
80
|
-
*some file utils things*
|
|
81
|
-
|
|
82
|
-
#### plot
|
|
83
|
-
1. stack bar plot with hue style
|
|
84
|
-
|
|
85
|
-
#### torch
|
|
86
|
-
1. seq2seq core from bentrevett/pytorch-seq2seq
|
|
87
|
-
|
|
88
|
-
#### web/crawler
|
|
89
|
-
1. chaoxin ppt multi threads downloader (jpg->pdf)
|
|
90
|
-
2. wujin search http://www.basechem.org
|
|
91
|
-
3. chemSub search http://chemsub.online.fr
|
|
92
|
-
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: BHM-Bob 2262029386@qq.com
|
|
3
|
+
* @Date: 2022-10-19 22:16:22
|
|
4
|
+
* @LastEditors: BHM-Bob 2262029386@qq.com
|
|
5
|
+
* @LastEditTime: 2023-10-05 19:26:42
|
|
6
|
+
* @Description:
|
|
7
|
+
-->
|
|
8
|
+
# BA_PY
|
|
9
|
+
[](https://pepy.tech/project/mbapy)  
|
|
10
|
+
|
|
11
|
+
  [](https://github.com/BHM-Bob/BA_PY/pulse)
|
|
12
|
+
|
|
13
|
+
  
|
|
14
|
+
|
|
15
|
+
  [](https://codeium.com)
|
|
16
|
+
|
|
17
|
+
mbapy is a Python package that includes a collection of useful Python scripts as sub-modules, and it's goal is *Basic for All in Python*.
|
|
18
|
+
mbapy primarily focus on areas such as sci-plot, stats, web-crawler, sci-paper utilities, and deep learning with pytorch.
|
|
19
|
+
|
|
20
|
+
## get start
|
|
21
|
+
|
|
22
|
+
#### install
|
|
23
|
+
Now, mbapy only support pypi install:
|
|
24
|
+
```
|
|
25
|
+
pip install mbapy
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
If you find the latest release version has some problems, you can try install the up-to-date version on github:
|
|
29
|
+
```
|
|
30
|
+
pip install git+https://github.com/BHM-Bob/BA_PY.git
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
#### docs
|
|
34
|
+
The documentation for mbapy can be found on [read the docs](https://ba-py.readthedocs.io/en/latest/), and it is the one that I will regularly update.
|
|
35
|
+
The API document for mbapy is available on its [wiki](https://github.com/BHM-Bob/BA_PY/wiki). However, please note that this wiki on GitHub has not been updated since 2023-07.
|
|
36
|
+
*Given my limited time, I heavily rely on chatGPT to generate the documentation*.
|
|
37
|
+
|
|
38
|
+
# contain
|
|
39
|
+
## mbapy python package
|
|
40
|
+
#### \_\_version\_\_
|
|
41
|
+
*some version info*
|
|
42
|
+
#### base
|
|
43
|
+
|
|
44
|
+
#### file
|
|
45
|
+
|
|
46
|
+
#### plot
|
|
47
|
+
*pandas.dataFrame utils for plot and some simple plot based on plt*
|
|
48
|
+
|
|
49
|
+
#### web
|
|
50
|
+
*utils for web-crawler*
|
|
51
|
+
|
|
52
|
+
#### stats
|
|
53
|
+
|
|
54
|
+
##### df
|
|
55
|
+
*pandas.dataFrame utils for stats*
|
|
56
|
+
|
|
57
|
+
##### reg
|
|
58
|
+
*regression*
|
|
59
|
+
|
|
60
|
+
##### test
|
|
61
|
+
*some test func(using scipy and mostly give a support for mbapy-style data input)*
|
|
62
|
+
|
|
63
|
+
#### dl-torch
|
|
64
|
+
*pytorch utils for deeplearning*
|
|
65
|
+
##### bb
|
|
66
|
+
*basic blocks : tiny network structures*
|
|
67
|
+
##### data
|
|
68
|
+
*utils for dataset loading*
|
|
69
|
+
##### loss
|
|
70
|
+
*some loss function*
|
|
71
|
+
##### m
|
|
72
|
+
*model : deeplearning model constructed with basic blocks*
|
|
73
|
+
##### utils
|
|
74
|
+
*deeplearning training utils*
|
|
75
|
+
##### paper
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## examples
|
|
79
|
+
#### file
|
|
80
|
+
*some file utils things*
|
|
81
|
+
|
|
82
|
+
#### plot
|
|
83
|
+
1. stack bar plot with hue style
|
|
84
|
+
|
|
85
|
+
#### torch
|
|
86
|
+
1. seq2seq core from bentrevett/pytorch-seq2seq
|
|
87
|
+
|
|
88
|
+
#### web/crawler
|
|
89
|
+
1. chaoxin ppt multi threads downloader (jpg->pdf)
|
|
90
|
+
2. wujin search http://www.basechem.org
|
|
91
|
+
3. chemSub search http://chemsub.online.fr
|
|
92
|
+
|
|
@@ -1,37 +1,32 @@
|
|
|
1
|
-
'''
|
|
2
|
-
Author: BHM-Bob 2262029386@qq.com
|
|
3
|
-
Date: 2022-11-01 22:16:49
|
|
4
|
-
LastEditors: BHM-Bob 2262029386@qq.com
|
|
5
|
-
LastEditTime: 2023-
|
|
6
|
-
Description: some helpful python scripts in plot, stats and deeplearning
|
|
7
|
-
'''
|
|
8
|
-
from . import base, file, plot, stats, web
|
|
9
|
-
from .__version__ import (__author__, __author_email__, __build__,
|
|
10
|
-
__description__, __license__, __title__, __url__,
|
|
11
|
-
__version__)
|
|
12
|
-
|
|
13
|
-
try:
|
|
14
|
-
import torch
|
|
15
|
-
|
|
16
|
-
from mbapy import dl_torch as dl_torch
|
|
17
|
-
except:
|
|
18
|
-
pass
|
|
19
|
-
# print('no torch module available')
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
constant : CONSTANT_VAR_NAME
|
|
33
|
-
variable : var_name
|
|
34
|
-
func : func_name
|
|
35
|
-
global var: globalVarName
|
|
36
|
-
class : ClassName
|
|
1
|
+
'''
|
|
2
|
+
Author: BHM-Bob 2262029386@qq.com
|
|
3
|
+
Date: 2022-11-01 22:16:49
|
|
4
|
+
LastEditors: BHM-Bob 2262029386@qq.com
|
|
5
|
+
LastEditTime: 2023-08-24 10:10:11
|
|
6
|
+
Description: some helpful python scripts in plot, stats and deeplearning
|
|
7
|
+
'''
|
|
8
|
+
from . import base, file, paper, plot, stats, web
|
|
9
|
+
from .__version__ import (__author__, __author_email__, __build__,
|
|
10
|
+
__description__, __license__, __title__, __url__,
|
|
11
|
+
__version__)
|
|
12
|
+
|
|
13
|
+
try:
|
|
14
|
+
import torch
|
|
15
|
+
|
|
16
|
+
from mbapy import dl_torch as dl_torch
|
|
17
|
+
except:
|
|
18
|
+
pass
|
|
19
|
+
# print('no torch module available')
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# def main():
|
|
23
|
+
# pass
|
|
24
|
+
"""
|
|
25
|
+
var naming:
|
|
26
|
+
|
|
27
|
+
constant : CONSTANT_VAR_NAME
|
|
28
|
+
variable : var_name
|
|
29
|
+
func : func_name
|
|
30
|
+
global var: globalVarName
|
|
31
|
+
class : ClassName
|
|
37
32
|
"""
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
'''
|
|
2
|
-
Author: BHM-Bob 2262029386@qq.com
|
|
3
|
-
Date: 2022-11-01 22:16:49
|
|
4
|
-
LastEditors: BHM-Bob 2262029386@qq.com
|
|
5
|
-
LastEditTime: 2023-
|
|
6
|
-
Description:
|
|
7
|
-
'''
|
|
8
|
-
|
|
9
|
-
__title__ = "mbapy"
|
|
10
|
-
__description__ = "MyBA in Python"
|
|
11
|
-
__url__ = "https://github.com/BHM-Bob/BA_PY"
|
|
12
|
-
__version__ = "0.
|
|
13
|
-
__build__ = "
|
|
14
|
-
__author__ = "BHM-Bob G"
|
|
15
|
-
__author_email__ = "bhmfly@foxmail.com"
|
|
1
|
+
'''
|
|
2
|
+
Author: BHM-Bob 2262029386@qq.com
|
|
3
|
+
Date: 2022-11-01 22:16:49
|
|
4
|
+
LastEditors: BHM-Bob 2262029386@qq.com
|
|
5
|
+
LastEditTime: 2023-10-12 21:32:30
|
|
6
|
+
Description:
|
|
7
|
+
'''
|
|
8
|
+
|
|
9
|
+
__title__ = "mbapy"
|
|
10
|
+
__description__ = "MyBA in Python"
|
|
11
|
+
__url__ = "https://github.com/BHM-Bob/BA_PY"
|
|
12
|
+
__version__ = "0.3.0"
|
|
13
|
+
__build__ = "20231012_0"
|
|
14
|
+
__author__ = "BHM-Bob G"
|
|
15
|
+
__author_email__ = "bhmfly@foxmail.com"
|
|
16
16
|
__license__ = "MIT"
|