GithubHelp home page GithubHelp logo

dailyreportapp's Introduction

Daily Report App

概要

このアプリは、CSVファイルから日報データを読み込み、Streamlitでインタラクティブに表示するアプリケーションです。

機能

  • CSVファイルから日報データ、コメントデータ、ユーザーマスタを読み込みます。
  • 年月を選択することで、その月の日報データを表示します。
  • 各日報の詳細情報(タイトル、日付、作成日時、更新日時、概要、コンディション、内容、連絡事項)を表示します。
  • 各日報に対するコメントを表示します。

使い方

  1. main.py を実行します。
  2. サイドバーの「ファイルアップロード」からCSVファイルを選択します。
  3. サイドバーの「年月を選択」から表示したい年月を選択します。

必要なライブラリ

  • pandas
  • streamlit

実行方法

  1. Python 3.7 以降をインストールします。
  2. pip install pandas streamlit を実行して必要なライブラリをインストールします。
  3. streamlit run main.py を実行します。

CSVファイルのフォーマット

CSVファイルは、以下の4つのセクションで構成されている必要があります。

  • ユーザー情報
  • 日報データ
  • コメントデータ
  • ユーザーマスタ

各セクションは ## で区切られています。

ユーザー情報

カラム名 説明
id ユーザーID
name ユーザー名
email ユーザーのメールアドレス

日報データ

カラム名 説明
id 日報ID
title 日報のタイトル
date 日報の日付
created_at 日報の作成日時
updated_at 日報の更新日時
summary 日報の概要
condition 日報のコンディション
report 日報の内容
info 日報の連絡事項

コメントデータ

カラム名 説明
id コメントID
report_id コメントが紐づく日報ID
user_id コメントを作成したユーザーID
text コメントの内容
created_at コメントの作成日時

ユーザーマスタ

カラム名 説明
id ユーザーID
name ユーザー名

以下のCSVファイルは、このアプリで使用できるサンプルデータです。

## ユーザー情報
id,name,email
1,山田太郎,[email protected]
2,佐藤花子,[email protected]

## 日報データ
id,title,date,created_at,updated_at,summary,condition,report,info
1,今日の業務報告,2023-03-01,2023-03-01 10:00:00,2023-03-01 12:00:00,今日の業務内容を報告します。,良好,午前中は会議に参加しました。午後は資料作成を行いました。,明日の会議の準備をお願いします。
2,昨日の業務報告,2023-03-02,2023-03-02 10:00:00,2023-03-02 12:00:00,昨日の業務内容を報告します。,良好,午前中は資料作成を行いました。午後は顧客との打ち合わせを行いました。,特にありません。

## コメントデータ
id,report_id,user_id,text,created_at
1,1,1,お疲れ様です。,2023-03-01 12:30:00
2,2,2,お疲れ様でした。,2023-03-02 12:30:00

## ユーザーマスタ
id,name
1,山田太郎
2,佐藤花子

注意点

  • CSVファイルのフォーマットが正しくない場合、アプリは正常に動作しません。
  • CSVファイルのエンコーディングはUTF-8である必要があります。
  • 日報データの date カラムは、YYYY-MM-DD の形式で入力する必要があります。
  • 日報データの created_atupdated_at カラムは、YYYY-MM-DD HH:MM:SS の形式で入力する必要があります。

dailyreportapp's People

Contributors

shngmsw 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.