Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codeforjapan/mynumbercard_statistics
The dashboard of my number card statistics
https://github.com/codeforjapan/mynumbercard_statistics
Last synced: 15 days ago
JSON representation
The dashboard of my number card statistics
- Host: GitHub
- URL: https://github.com/codeforjapan/mynumbercard_statistics
- Owner: codeforjapan
- License: mit
- Archived: true
- Created: 2020-07-05T08:51:46.000Z (over 4 years ago)
- Default Branch: development
- Last Pushed: 2023-03-05T04:23:16.000Z (over 1 year ago)
- Last Synced: 2024-09-17T00:14:53.470Z (about 2 months ago)
- Language: Python
- Size: 13.3 MB
- Stars: 22
- Watchers: 7
- Forks: 8
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MyNumberCard Dashboard
## Japanese
マイナンバーカード交付率のダッシュボード( https://mynumbercard.code4japan.org/ ) のソースコードです。
`https://www.soumu.go.jp/kojinbango_card/` にある PDF、「マイナンバーカード交付状況について」から CSV データを抜き出し、CSV として保存しています。## English
This is a repository of a dashboard of the my number card statistics ( https://mynumbercard.code4japan.org/ ).
Extract and convert csv data from the PDF file under マイナンバーカード交付状況について on the `https://www.soumu.go.jp/kojinbango_card/`
## REQUIREMENT
### Use Docker
Please install Docker and Docker Compose
## INSTALL
```bash
git clone [email protected]:codeforjapan/mynumbercard_statistics.git
```## USAGE
### Download data and convert it
The `download_and_conver` command will run the both `download` and `convert` commands below, at one time.
[notice] This command will take a long time when you run this command for the first time.```bash
make download_and_convert
```### Download data
The `download` command will download cvs data from PDF file.
[notice] This command will take a long time when you run this command first time.```bash
make download
```The `download` script will skip files which are already downloaded. If you want to redownload all files, run `download_all`.
```bash
make download_all
```### Convert data
The `conver` command will create csv files from downloaded data.
```bash
make convert
```This command will create the following csv files under `data/out/{YYYYMMDD}/` dir.
- `summary_by_types.csv` summary data by govenment types (団体区分別)
- `all_prefectures.csv` the statistics of all prefectures (都道府県一覧)
- `demographics.csv` the demographics data (男女・年齢別)
- `all_localsgovs.csv`: the statistics of all local governments (基礎自治体)## GitHub Actions
GitHub Actions in this repository will create new data and publish the data to the `gh-pages` branch.
## DEVELOPMENT
[Script Development](DEV_SCRIPT.md)
[Website Developtment](DEV_SITE.md)
.