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.0.tar.gz (14.2 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.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wanglaoshi-0.10.0.tar.gz
  • Upload date:
  • Size: 14.2 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.0.tar.gz
Algorithm Hash digest
SHA256 f21e587f6706c10dee0e33d1209e3faa46f44d67728f3227b271999ba694541f
MD5 674dec1fc508e379eae6c43e17def333
BLAKE2b-256 0993656afeb987e43c11a30ddb45ad54daab6ca80bf5b05cca64a016a62d5111

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wanglaoshi-0.10.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc645c14cdf3fe564a89478bf2a39756155c58c3d8aeebe3fa0c672d0c5581e8
MD5 d6b192e0e42da17ca1c369d0de689134
BLAKE2b-256 901116cc4298d67e21f0a74223d4609e18a8d48e1126d3fb76e61f4a47f35622

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