Skip to main content
https://badge.fury.io/py/sc-excel-splitter.svg PyPI - Python Version

A simple Python project sample structure

This project provides a sample structure for creating python project.

Installation

It is possible to install the tool with pip:

pip install sc-excel-splitter

Configuration

Configuration files reading in this order, the first is the top most priority:

  1. production.xml in current directory,

  2. production.xml in <project_name> directory under User directory,

  3. production.xml in <project_name> directory under /var/opt/sc/ directory,

  4. default.xml in <project_name> directory under /var/opt/sc/ directory.

The default configuration file looks like this:

dev:
  # whether this program is running is development mode
  dev_mode: False

excel:
  # 源文件路径
  source_file_path: "/path/to/source_excel_file.xlsx"
  # 导出文件的保存路径
  target_directory: "/path/to/target/"
  # 网点名称列表
  branch_list:
    - "A支行"
    - "B支行"
  # 需要按列拆分的Sheet以及拆分所在列
  sheet_config:
    # 需要拆分的Sheet名称,用双引号包围
    "Sheet1":
      # 机构列所在列的索引(从0开始计数,第一列为0,依此类推)
      branch_column: 3
      # 表头所在行的索引(从0开始计数,第一列为0,依此类推)
      header: 2
    # 需要拆分的Sheet名称,用双引号包围
    "Sheet2":
      # 机构列所在列的索引(从0开始计数,第一列为0,依此类推)
      branch_column: 17
      # 表头所在行的索引(从0开始计数,第一列为0,依此类推)
      header: 0
    # 其他需要导出的Sheet名称列表
    other_sheets:
      # Sheet名称
      - "Sheet3"
      # Sheet名称
      - "Sheet4"

License

The script is released under the MIT License. The MIT License is registered with and approved by the Open Source Initiative [1].

Metadata

Release files for sc-excel-splitter 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for sc-excel-splitter 0.0.11
File Interpreter ABI Platform Actions
sc_excel_splitter-0.0.11-py3-none-any.whl Python 3 none any Details for sc_excel_splitter-0.0.11-py3-none-any.whl

Release files / sc_excel_splitter-0.0.11-py3-none-any.whl

Download URL sc_excel_splitter-0.0.11-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9d6262e62b63c49b30e8684a2923e05a9dde6fb7a05106e0e7fac326c51ff46
BLAKE2b-256 checksum
How to use checksums
968b6ab682ee7cd17a16b8b728e3aace38319fdb7a6a22661a9b0b29567ec9c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.3

Security for sc-excel-splitter 0.0.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page