mbapy


Namembapy JSON
Version 0.7.3 PyPI version JSON
download
home_pagehttps://github.com/BHM-Bob/BA_PY
SummaryMyBA in Python
upload_time2024-04-25 15:20:59
maintainerNone
docs_urlNone
authorBHM-Bob G
requires_python<3.12,>=3.7
licenseMIT Licence
keywords mbapy utilities plot stats pdf paper crawler
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!--
 * @Author: BHM-Bob 2262029386@qq.com
 * @Date: 2022-10-19 22:16:22
 * @LastEditors: BHM-Bob 2262029386@qq.com
 * @LastEditTime: 2024-04-04 19:36:44
 * @Description: 
-->
# BA_PY: Optimize Your Workflow with Python!
[![Downloads](https://static.pepy.tech/badge/mbapy)](https://pepy.tech/project/mbapy) ![PyPI - Downloads](https://img.shields.io/pypi/dm/mbapy) ![GitHub all releases](https://img.shields.io/github/downloads/BHM-Bob/BA_PY/total?label=GitHub%20all%20releases%20downloads)

![GitHub repo size](https://img.shields.io/github/repo-size/BHM-Bob/BA_PY) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/BHM-Bob/BA_PY) [![GitHub Commit Activity](https://img.shields.io/github/commit-activity/m/BHM-Bob/BA_PY)](https://github.com/BHM-Bob/BA_PY/pulse)

![PyPI - Status](https://img.shields.io/pypi/status/mbapy?label=PyPI%20Status) ![PyPI](https://img.shields.io/pypi/v/mbapy) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mbapy)

![Read the Docs](https://img.shields.io/readthedocs/ba-py) ![GitHub](https://img.shields.io/github/license/BHM-Bob/BA_PY) [![built with Codeium](https://codeium.com/badges/main)](https://codeium.com)

![platform - WINDOWS](https://camo.githubusercontent.com/c292429e232884db22e86c2ea2ea7695bc49dc4ae13344003a95879eeb7425d8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f57696e646f77732d3030373844363f7374796c653d666f722d7468652d6261646765266c6f676f3d77696e646f7773266c6f676f436f6c6f723d7768697465) ![platform - LINUX](https://camo.githubusercontent.com/7eefb2ba052806d8a9ce69863c2eeb3b03cd5935ead7bd2e9245ae2e705a1adf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c696e75782d4643433632343f7374796c653d666f722d7468652d6261646765266c6f676f3d6c696e7578266c6f676f436f6c6f723d626c61636b)

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*.  
mbapy primarily focus on data works, including data-retrieval, data-management, data-visualization, data-analysis and data-computation. It is built for both python-users and command-line-users.

## get start

#### install 
Now, mbapy only support pypi install:  
```
pip install mbapy
```

mbapy is a multi-funtional package, and it does not require every third-party packages to make every sub-module work. However, it provides some requriements option to install more specified requirements to make some sub-modules work:  
1. bio: some packages for biology(sci).  
    install as `pip install mbapy[bio]`  
2. game: some packages for game(pygame).  
    install as `pip install mbapy[game]`  
3. full: full requirements to make almost every sub-module in mbapy work(except dl_torch).  
     install as `pip install mbapy[full]`  

If you find the latest release version has some problems, you can try install the up-to-date version on github or gitee:  
```
pip install git+https://github.com/BHM-Bob/BA_PY.git
```
```
pip install git+https://gitee.com/BHM-Bob/BA_PY.git
```

#### docs
The documentation for mbapy can be found on [read the docs](https://ba-py.readthedocs.io/en/latest/) or just in the `docs` folder.

#### web sites
- open source at:  
    1. [github: https://github.com/BHM-Bob/BA_PY](https://github.com/BHM-Bob/BA_PY)  
    2. [gitee: https://gitee.com/BHM-Bob/BA_PY](https://gitee.com/BHM-Bob/BA_PY)  
- docs at: [read the docs: https://ba-py.rtfd.io](https://ba-py.readthedocs.io/en/latest/)  
- PyPI: [https://pypi.org/project/mbapy/](https://pypi.org/project/mbapy/)  

# contain  
## mbapy python package  
#### \_\_version\_\_  
*some version info*  

#### base  
*some utils for easier coding*

#### file
##### image
*imgae utils*, including reading, saving and process a image into a feature tensor via pytorch.  
##### video
*video utils*, including extract frames or unique frames from a video.  

#### plot
*pandas.dataFrame utils for plot and some simple plot based on plt*  

#### web
*utils for web-crawler*  
##### request
*get a web hyml page or a selenium browser warpper for easier usage*.  
##### parse
*utils for parsing html*  
##### task
*small task manager*  
##### spider
*a light-weight web spider architecture*  

#### stats
##### cluster
*BAKmeans, KOptim, KBayesian from KMeans, and a func for many cluster*  
##### df
*pandas.dataFrame utils for stats*  
##### reg
*regression*  
##### test
*some test func(using scipy and mostly give a support for mbapy-style data input)*  

#### dl-torch
*pytorch utils for deeplearning*  
##### bb
*basic blocks : tiny network structures*  
##### data
*utils for dataset loading*  
##### loss
*some loss function*  
##### m
*model : deeplearning model constructed with basic blocks*  
##### utils
*deeplearning training utils*  
##### optim
*learning rate scheduler*

#### paper
*sci-paper utils, contains paper searching, downloading and parsing*  
##### paper_search
*search papers via pubmed, baidu xueshu, wos*  
##### paper_download
*download papers via scihub*  
##### paper_parse
*parse paper from a pdf file into a dict of each sections* 

#### scripts
*some useful scripts for command user*  
launch by `python -m mbapy.scripts.XXX` or `mbapy-cli XXX`.  

## examples
#### web/crawler
1. chaoxin ppt multi threads downloader (jpg->pdf)
2. wujin search http://www.basechem.org
3. chemSub search http://chemsub.online.fr
4. cnipa https://pss-system.cponline.cnipa.gov.cn/seniorSearch
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/BHM-Bob/BA_PY",
    "name": "mbapy",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.12,>=3.7",
    "maintainer_email": null,
    "keywords": "mbapy, Utilities, plot, stats, pdf, paper, crawler",
    "author": "BHM-Bob G",
    "author_email": "bhmfly@foxmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a7/99/fa1d0aa0a42c202aa2c96b3e017eb81225fc9c9e07029259fb6673449643/mbapy-0.7.3.tar.gz",
    "platform": "any",
    "description": "<!--\n * @Author: BHM-Bob 2262029386@qq.com\n * @Date: 2022-10-19 22:16:22\n * @LastEditors: BHM-Bob 2262029386@qq.com\n * @LastEditTime: 2024-04-04 19:36:44\n * @Description: \n-->\n# BA_PY: Optimize Your Workflow with Python!\n[![Downloads](https://static.pepy.tech/badge/mbapy)](https://pepy.tech/project/mbapy) ![PyPI - Downloads](https://img.shields.io/pypi/dm/mbapy) ![GitHub all releases](https://img.shields.io/github/downloads/BHM-Bob/BA_PY/total?label=GitHub%20all%20releases%20downloads)\n\n![GitHub repo size](https://img.shields.io/github/repo-size/BHM-Bob/BA_PY) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/BHM-Bob/BA_PY) [![GitHub Commit Activity](https://img.shields.io/github/commit-activity/m/BHM-Bob/BA_PY)](https://github.com/BHM-Bob/BA_PY/pulse)\n\n![PyPI - Status](https://img.shields.io/pypi/status/mbapy?label=PyPI%20Status) ![PyPI](https://img.shields.io/pypi/v/mbapy) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mbapy)\n\n![Read the Docs](https://img.shields.io/readthedocs/ba-py) ![GitHub](https://img.shields.io/github/license/BHM-Bob/BA_PY) [![built with Codeium](https://codeium.com/badges/main)](https://codeium.com)\n\n![platform - WINDOWS](https://camo.githubusercontent.com/c292429e232884db22e86c2ea2ea7695bc49dc4ae13344003a95879eeb7425d8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f57696e646f77732d3030373844363f7374796c653d666f722d7468652d6261646765266c6f676f3d77696e646f7773266c6f676f436f6c6f723d7768697465) ![platform - LINUX](https://camo.githubusercontent.com/7eefb2ba052806d8a9ce69863c2eeb3b03cd5935ead7bd2e9245ae2e705a1adf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c696e75782d4643433632343f7374796c653d666f722d7468652d6261646765266c6f676f3d6c696e7578266c6f676f436f6c6f723d626c61636b)\n\nmbapy 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*.  \nmbapy primarily focus on data works, including data-retrieval, data-management, data-visualization, data-analysis and data-computation. It is built for both python-users and command-line-users.\n\n## get start\n\n#### install \nNow, mbapy only support pypi install:  \n```\npip install mbapy\n```\n\nmbapy is a multi-funtional package, and it does not require every third-party packages to make every sub-module work. However, it provides some requriements option to install more specified requirements to make some sub-modules work:  \n1. bio: some packages for biology(sci).  \n    install as `pip install mbapy[bio]`  \n2. game: some packages for game(pygame).  \n    install as `pip install mbapy[game]`  \n3. full: full requirements to make almost every sub-module in mbapy work(except dl_torch).  \n     install as `pip install mbapy[full]`  \n\nIf you find the latest release version has some problems, you can try install the up-to-date version on github or gitee:  \n```\npip install git+https://github.com/BHM-Bob/BA_PY.git\n```\n```\npip install git+https://gitee.com/BHM-Bob/BA_PY.git\n```\n\n#### docs\nThe documentation for mbapy can be found on [read the docs](https://ba-py.readthedocs.io/en/latest/) or just in the `docs` folder.\n\n#### web sites\n- open source at:  \n    1. [github\uff1a https://github.com/BHM-Bob/BA_PY](https://github.com/BHM-Bob/BA_PY)  \n    2. [gitee\uff1a https://gitee.com/BHM-Bob/BA_PY](https://gitee.com/BHM-Bob/BA_PY)  \n- docs at: [read the docs: https://ba-py.rtfd.io](https://ba-py.readthedocs.io/en/latest/)  \n- PyPI: [https://pypi.org/project/mbapy/](https://pypi.org/project/mbapy/)  \n\n# contain  \n## mbapy python package  \n#### \\_\\_version\\_\\_  \n*some version info*  \n\n#### base  \n*some utils for easier coding*\n\n#### file\n##### image\n*imgae utils*, including reading, saving and process a image into a feature tensor via pytorch.  \n##### video\n*video utils*, including extract frames or unique frames from a video.  \n\n#### plot\n*pandas.dataFrame utils for plot and some simple plot based on plt*  \n\n#### web\n*utils for web-crawler*  \n##### request\n*get a web hyml page or a selenium browser warpper for easier usage*.  \n##### parse\n*utils for parsing html*  \n##### task\n*small task manager*  \n##### spider\n*a light-weight web spider architecture*  \n\n#### stats\n##### cluster\n*BAKmeans, KOptim, KBayesian from KMeans, and a func for many cluster*  \n##### df\n*pandas.dataFrame utils for stats*  \n##### reg\n*regression*  \n##### test\n*some test func(using scipy and mostly give a support for mbapy-style data input)*  \n\n#### dl-torch\n*pytorch utils for deeplearning*  \n##### bb\n*basic blocks : tiny network structures*  \n##### data\n*utils for dataset loading*  \n##### loss\n*some loss function*  \n##### m\n*model : deeplearning model constructed with basic blocks*  \n##### utils\n*deeplearning training utils*  \n##### optim\n*learning rate scheduler*\n\n#### paper\n*sci-paper utils, contains paper searching, downloading and parsing*  \n##### paper_search\n*search papers via pubmed, baidu xueshu, wos*  \n##### paper_download\n*download papers via scihub*  \n##### paper_parse\n*parse paper from a pdf file into a dict of each sections* \n\n#### scripts\n*some useful scripts for command user*  \nlaunch by `python -m mbapy.scripts.XXX` or `mbapy-cli XXX`.  \n\n## examples\n#### web/crawler\n1. chaoxin ppt multi threads downloader (jpg->pdf)\n2. wujin search http://www.basechem.org\n3. chemSub search http://chemsub.online.fr\n4. cnipa https://pss-system.cponline.cnipa.gov.cn/seniorSearch",
    "bugtrack_url": null,
    "license": "MIT Licence",
    "summary": "MyBA in Python",
    "version": "0.7.3",
    "project_urls": {
        "Homepage": "https://github.com/BHM-Bob/BA_PY"
    },
    "split_keywords": [
        "mbapy",
        " utilities",
        " plot",
        " stats",
        " pdf",
        " paper",
        " crawler"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a799fa1d0aa0a42c202aa2c96b3e017eb81225fc9c9e07029259fb6673449643",
                "md5": "617b8895dbefe6c3fb8a6baab5819395",
                "sha256": "56e5e4a72a9cab6c31fca392d1f1b8fd8aead2dc81b810dcdcca90fc53e4dcce"
            },
            "downloads": -1,
            "filename": "mbapy-0.7.3.tar.gz",
            "has_sig": false,
            "md5_digest": "617b8895dbefe6c3fb8a6baab5819395",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.12,>=3.7",
            "size": 209108,
            "upload_time": "2024-04-25T15:20:59",
            "upload_time_iso_8601": "2024-04-25T15:20:59.390298Z",
            "url": "https://files.pythonhosted.org/packages/a7/99/fa1d0aa0a42c202aa2c96b3e017eb81225fc9c9e07029259fb6673449643/mbapy-0.7.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-25 15:20:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "BHM-Bob",
    "github_project": "BA_PY",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "mbapy"
}
        
Elapsed time: 0.25243s