Giter VIP home page Giter VIP logo

make_report_docx's Introduction

JSONファイルからdocxのレポートを生成するスクリプト

JSONファイルを元に、Word文書(docx)を生成する。 Word文書は以下の情報を持つ。

  • 表紙ページ
    • ドキュメントタイトル
    • 日付
    • 作成者名
  • 概要ページ
    • 概要ページタイトル
    • 本文
  • レポートページ
    • 対象サンプル概要
    • 対象サンプルデータ

詳細はJSONファイルを参照。

2. 動作環境

以下の環境で開発、動作確認した。

  • Python 3.7
  • python-docx 0.8.10
  • MacOS 10.15で動作確認

3. インストール

3-1. python-docx

以下の手順でインストールする。

pip3 install python-docx

4. 使用方法

使用方法を以下に示す。

python3 MakeDocxReport.py <JSON_FILE>

サンプルのJSONファイルから、レポートdocxファイルの生成手順をいかに示す。

$ python3 MakeDocxReport.py sample/report.json
$ ls *.docx
report.docx

make_report_docx's People

Contributors

kioto avatar

Watchers

James Cloos 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.