Skip to main content

A utility module for DA and ML and DL tasks

Project description

王老师 WangLaoShi

项目介绍

总结一些在学习过程中的知识点,以及一些学习资料。

项目结构

WangLaoShi
├── README.md
├── wanglaoshi
│   ├── version.py

项目版本

  • 0.0.1 初始化版本,项目开始
  • 0.0.2 增加列表输出
  • 0.0.3 增加字典输出,使用 Rich 输出
  • 0.0.4 实现 JupyterNotebook 环境创建
  • 0.0.5 增加几个有用的库
  • 0.0.6 修改获取 version 的方法
  • 0.0.7 增加获取当前安装包的版本号,增加获取当前每一个安装包最新版本的方法
  • 0.0.8 增加对数据文件的基本分析的部分
  • 0.0.9 增加 jinja2 的模板输出的 Analyzer
  • 0.10.0 增加 no_waring,字体获取,安装字体

安装方式

1. 源码安装方式

  • 检出项目
  • 进入项目目录
  • 执行python setup.py install
  • 安装完成

2. pip安装方式

pip install wanglaoshi

使用方法

1. 创建新的环境

from wanglaoshi import JupyterEnv as JE
JE.jupyter_kernel_list()
JE.install_kernel()
# 按照提示输入环境名称

2. 获取当前环境常用库版本

from wanglaoshi import VERSIONS as V
V.check_all_versions()

3. 获取当前环境所有库

from wanglaoshi import VERSIONS as V
V.check_all_installed()

4. 获取当前环境所有库最新版本

from wanglaoshi import VERSIONS as V
V.check_all_installed_with_latest()

5. 得到一个数据文件的基本的分析页面

from wanglaoshi import Analyzer as A
A.analyze_data_to_html('data.csv')

如果不需要 HTML 页面也可以使用下面的方法

from wanglaoshi import Analyzer_Plain as A
A.analyze_data('data.csv')

6. 取消错误输出

from wanglaoshi import JupyterEnv as JE
JE.no_warning()

7. Wget 功能

基本功能:

  • 支持从 URL 下载文件
  • 自动从 URL 提取文件名
  • 支持指定输出目录和自定义文件名
  • 显示下载进度条

使用方法:

from wget import Wget

# 创建下载器实例
downloader = Wget(
    url='https://example.com/file.zip',
    output_dir='./downloads',
    filename='custom_name.zip'
)

# 开始下载
downloader.download()

建议的版本对照关系

  1. numpy https://numpy.org/news/
  2. pandas https://pandas.pydata.org/pandas-docs/stable/whatsnew/index.html
  3. sklearn https://scikit-learn.org/stable/whats_new.html

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wanglaoshi-0.10.2.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wanglaoshi-0.10.2-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file wanglaoshi-0.10.2.tar.gz.

File metadata

  • Download URL: wanglaoshi-0.10.2.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for wanglaoshi-0.10.2.tar.gz
Algorithm Hash digest
SHA256 93ae7f8d2a88534c9186010d427f2d9fc4e69d4a95f199f1eb88b7384fb39e08
MD5 af9477d073c805b497b8be09ee650505
BLAKE2b-256 990b307cbbaafbaa49b31eb4a5629d38044e07f0e3165485c7f7044fa543ad0e

See more details on using hashes here.

File details

Details for the file wanglaoshi-0.10.2-py3-none-any.whl.

File metadata

  • Download URL: wanglaoshi-0.10.2-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for wanglaoshi-0.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3d498b1db40fca05d8da12a41084df993ce672b2301db305e0503e7dad2c0f14
MD5 b55fb53179644ec859e0d7ca3f039749
BLAKE2b-256 6b9fbd2be66bcfbfa55f9b58c67ef725df5047ecbe203596b92699f52fb2cbe2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page