GithubHelp home page GithubHelp logo

bitbooksort's Introduction

BITBookSort

简介

本项目支持了北理工图书馆书单的索引号排序。

书单索引号拥有特定的格式,举例如下:

TP393.092/1047:2
A811.23/1-66:3
B0/24
H319.4/132-6:3(2)-2
R96-53/1/2005

其总体可被划分为以 / 分割的三部分,每一部分可看做由字母、数字及分隔符(-, =, (), :) 混合组成的多层级的索引格式。

本项目完成了书单索引号格式的解析,并进行排序。书单从 xlsx 文件中读取,并使用排序好的数据生成新的 xlsx 文件。

快速使用

  • 运行依赖 openpyxl==3.1.2

使用如下命令开始运行

# 安装运行依赖
pip3 install -r requirements.txt

# 运行主程序
python3 src/booksort.py

程序运行后,按照程序提示输入文件路径、sheet 编号、列编号,排序后的表格将会被放置在 sorted_booklist.xlsx 文件中。

其中无法解析的书目被追加在文件末尾并标红。

bitbooksort's People

Contributors

miical avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.