devtool-data-converter
所属分类:其他
开发工具:CSS
文件大小:0KB
下载次数:2
上传日期:2022-12-06 12:43:15
上 传 者:
sh-1993
说明: 开源数据转换器-CVS,XLS,DF|AppSeed,
(Open-Source Data Converter - CVS, XLS, DF | AppSeed,)
文件列表:
CHANGELOG.md (208, 2022-12-06)
LICENSE.md (846, 2022-12-06)
app.py (2215, 2022-12-06)
package.json (638, 2022-12-06)
requirements.txt (94, 2022-12-06)
samples/ (0, 2022-12-06)
samples/data.csv (534, 2022-12-06)
samples/data.json (846, 2022-12-06)
samples/data_2.csv (3133, 2022-12-06)
static/ (0, 2022-12-06)
static/assets/ (0, 2022-12-06)
static/assets/css/ (0, 2022-12-06)
static/assets/css/volt.css (517071, 2022-12-06)
static/assets/css/volt.min.css (409124, 2022-12-06)
static/assets/gulpfile.js (3042, 2022-12-06)
static/assets/img/ (0, 2022-12-06)
static/assets/img/brand/ (0, 2022-12-06)
static/assets/img/brand/dark.svg (890, 2022-12-06)
static/assets/img/brand/light.svg (450, 2022-12-06)
static/assets/img/favicon/ (0, 2022-12-06)
static/assets/img/favicon/android-chrome-192x192.png (11832, 2022-12-06)
static/assets/img/favicon/android-chrome-512x512.png (32392, 2022-12-06)
static/assets/img/favicon/apple-touch-icon.png (5617, 2022-12-06)
static/assets/img/favicon/browserconfig.xml (246, 2022-12-06)
static/assets/img/favicon/favicon-16x16.png (1102, 2022-12-06)
static/assets/img/favicon/favicon-32x32.png (1775, 2022-12-06)
static/assets/img/favicon/favicon.ico (15086, 2022-12-06)
static/assets/img/favicon/manifest.json (472, 2022-12-06)
static/assets/img/favicon/mstile-150x150.png (5015, 2022-12-06)
static/assets/img/favicon/safari-pinned-tab.svg (2337, 2022-12-06)
static/assets/img/favicon/site.webmanifest (446, 2022-12-06)
static/assets/img/flags/ (0, 2022-12-06)
static/assets/img/flags/aland-islands.svg (1679, 2022-12-06)
static/assets/img/flags/albania.svg (1287, 2022-12-06)
static/assets/img/flags/algeria.svg (1277, 2022-12-06)
static/assets/img/flags/american-samoa.svg (1504, 2022-12-06)
static/assets/img/flags/anguilla.svg (2868, 2022-12-06)
static/assets/img/flags/argentina.svg (1154, 2022-12-06)
... ...
# Data Converter
This [developer tool](https://appseed.us/developer-tools/) provides simple helpers for data management - provided by [AppSeed](https://appseed.us/).
- Free [support](https://appseed.us/support/) via Email and [Discord](https://discord.gg/fZC6hup)
- More [Developer Tools](https://appseed.us/developer-tools/) - provided by AppSeed
> Features
- CSV Files:
- Print
- Columns: Remove, Update
- Add New Column with random values:
- `timestamp`, `random_int` and `random string` (via Faker)
- `csv_to_json` Helper
- [Support](https://appseed.us/support) via **Github** (issues tracker) and [Discord](https://discord.gg/fZC6hup).
The project is bundled with a simple `Flask` app that loads the information from `samples/data.csv` and presents the information using data tables.
## Quick Start
- Clone the project
- Install Python modules:
- `pip install -r requirements.txt`
- Start the `Flask` app
- The `http://localhost:5000/datatables/` route will display the contents of `samples/data.csv` using data tables.
- Save your CSV content using the same file
- `samples/data.csv`
- Refresh the `http://localhost:5000/datatables/` page
At this point, you should see your data nicely paginated.
![Data Converter - Provided by AppSeed.](https://user-images.githubusercontent.com/51070104/153058975-1947b69f-231d-48cc-afb2-8cc867b8b284.png)
## Complete Set UP
> Clone Sources (this repo)
```bash
$ git clone https://github.com/app-generator/devtool-data-converter.git
$ cd devtool-data-converter
```
> Install Modules using a Virtual Environment
```bash
$ virtualenv env
$ source env/bin/activate
$ pip install -r requirements.txt
```
Or for **Windows-based Systems**
```bash
$ virtualenv env
$ .\env\Scripts\activate
$
$ # Install modules - SQLite Database
$ pip3 install -r requirements.txt
```
> Set up the environment
```bash
$ export FLASK_APP=run.py
$ export FLASK_ENV=development
```
Or for **Windows-based Systems**
```bash
$ # CMD terminal
$ set FLASK_APP=run.py
$ set FLASK_ENV=development
$
$ # Powershell
$ $env:FLASK_APP = ".\run.py"
$ $env:FLASK_ENV = "development"
```
> Edit `sample/data.csv` manually or using a `Python` console:
Open a new terminal, activate the `VENV` and update the `CSV` sample using provided helpers:
```
$ python
>>>
>>> from util import *
>>> input = 'samples/data.csv'
>>> csv_print( input )
```
> Print only 2 lines
```python
>>> from util import *
>>> input = 'samples/data.csv'
>>>
>>> csv_print( input ) # print all file
>>>
csv_print( input, 2 ) # print header and first 2 lines
...
product_code,product_info,value,currency,type
Nike_Air,Nike Air More Uptempo,105,usd,transaction
Nike_Club,Nike Club Joggers BB,55,usd,transaction
```
> Remove a column from the the `CSV` file
```python
>>> csv_col_remove( input, 'value' ) # `vaue` is the column name
```
> Add a column to the `CSV` file
```python
>>> csv_col_add( input, 'value' ) # `vaue` is the column name
```
---
Data Converter - Provided by **AppSeed** [App Generator](https://appseed.us/app-generator).
近期下载者:
相关文件:
收藏者: