Skip to main content

将多个Python脚本文件内容以对象属性方式集中管理,便于查看和引用

Project description

pyksh

将多个Python脚本文件内容以对象属性或关键词方式集中管理,便于查看和引用。

用法说明

  • !pip install pyksh-oyb 安装依赖 显示版本为 0.1.5 就不需要使用 安装/更新依赖 的代码

  • !pip install --upgrade pyksh-oyb 安装/更新依赖 电脑上安装过 环境没有重置 就需要使用(看坐的位置的电脑之前试过没),也可以使用这条来安装

  • scda.all:按文件分段输出全部代码文本。

  • scda.t1 ~ scda.t7:分别输出7个文件的代码文本。

  • scda["关键词"]:支持用中英文关键词或编号索引获取对应代码片段(区分大小写,仅支持预设关键词)。

支持的关键词示例

代码编号 中文关键词 其它关键词 文件名
t1 图书 堆积柱形图 4.2.3.py
t2 销售额 多子图、组合图 5.1.2.py
t3 气温、天气、降水、蒸发 5.3.3.py
t4 股票 折线图 6(1).py
t5 星星 散点图 7.2.2.py
t6 汽车 棉棒图 8(1).py
t7 小兰 桑基图 8(2).py

示例代码

from pyksh.pyksh.scda import scda

# 方式一:属性访问
print(scda.t1)

# 方式二:关键词索引访问
print(scda["图书"])
print(scda["桑基图"])
print(scda["t3"])

注意:关键词区分大小写,仅支持上表中的关键词。

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

pyksh_oyb-0.1.5.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

pyksh_oyb-0.1.5-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file pyksh_oyb-0.1.5.tar.gz.

File metadata

  • Download URL: pyksh_oyb-0.1.5.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for pyksh_oyb-0.1.5.tar.gz
Algorithm Hash digest
SHA256 2e139c2a73033b8320f553df6f08c25d0824c9f7df4c11fdcff7011b2636221d
MD5 5ccefb6bea36fd8915d89e236caa9d97
BLAKE2b-256 fb8f667c34a2bcb03f7b00234ba9e581237074d20ec4c0c005ae9f86432462a6

See more details on using hashes here.

File details

Details for the file pyksh_oyb-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: pyksh_oyb-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for pyksh_oyb-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 54251c1ef3f8509126f08683b7251010f1b3b737d66712dbc1b28ba7f98f9a23
MD5 2766ffb0286c730ad2e7eccef38ed970
BLAKE2b-256 bdf06a3c859f5311108c0cb26e12ba7cc5115aed857d28c04aed2244a3823c11

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