Welcome to the BA_PY docs!

BA_PY: Optimize Your Workflow with Python!

Downloads PyPI - Downloads GitHub all releases

GitHub repo size GitHub code size in bytes GitHub Commit Activity

PyPI - Status PyPI PyPI - Python Version

Read the Docs GitHub built with Codeium

platform - WINDOWS platform - LINUX

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

Contains

base

Some global utils in this package, most of them are also for users.

web

Some web-crawlers utils, mainly contains: 1. request for requesting html.
2. parse for parsing html.
3. task for managing task.
4. spider for constructing and running a simple web spider.

file

Smoe file tools, mainly contains json, excel, video and image utils.

plot

Some plot tools, mainly contains pandas.dataFrame tools for plot and some plot utils.

stats

Some stats functions, most of them are just import form scipy and warps for scipy to make data transformation same as mabpy style.
1. df for data frame utils.
2. reg for regression utils.
3. test for stats test utils.

bio

  1. peptide for peptide utils.

dl_torch

Some pytorch utils and some models.
1. utils for deep learning training pepline construction utils.
2. basic blocks for some cnn blocks and transformer layers.
3. model for some visual and language layers and models.
4. data for some data utils.
5. optim for some learning rate utils.

paper

Some scientific paper utils, including parsing RIS, downloading pdf by title or doi through sci-hub, search through baidu-xueshu, extract specific section from a sci-paper and so on.
1. parse for parsing pdf and extract specific sections.
2. download for downloading pdf by title or doi through sci-hub.
3. search for searching through baidu-xueshu, pubmed and wos.

scripts

Some helpful command line scripts.
1. avif
2. cnipa
3. cp
4. duitang
5. extract_paper
6. extract-dir
7. file-size
8. hplc
9. mass
10. mv
11. peptide
12. reviz
13. rm
14. scihub_selenium
15. scihub
16. video