-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #576 from bjwswang/pypi
chore: rename data-processing to pypi
- Loading branch information
Showing
57 changed files
with
148 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# python | ||
__pycache__ | ||
.ipynb_checkpoints | ||
|
||
data-processing/src/mock_data | ||
|
||
data-processing/src/log | ||
|
||
data-processing/src/file_handle/temp_file |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Data Processing | ||
|
||
## Current Version Main Features | ||
|
||
Data Processing is used for data processing through MinIO, databases, Web APIs, etc. The data types handled include: | ||
- txt | ||
- json | ||
- doc | ||
- html | ||
- excel | ||
- csv | ||
- markdown | ||
- ppt | ||
|
||
### Current Text Type Processing | ||
|
||
The data processing process includes: cleaning abnormal data, filtering, de-duplication, and anonymization. | ||
|
||
## Design | ||
|
||
![Design](../assets/data_process.drawio.png) | ||
|
||
## Local Development | ||
### Software Requirements | ||
|
||
Before setting up the local data-process environment, please make sure the following software is installed: | ||
|
||
- Python 3.10.x | ||
|
||
### Environment Setup | ||
|
||
Install the Python dependencies in the requirements.txt file | ||
|
||
### Running | ||
|
||
Run the server.py file in the src directory | ||
|
||
# isort | ||
isort is a tool for sorting imports alphabetically within your Python code. It helps maintain a consistent and clean import order. | ||
|
||
## install | ||
```shell | ||
pip install isort | ||
``` | ||
|
||
## isort a file | ||
```shell | ||
isort src/server.py | ||
``` | ||
|
||
## isort a directory | ||
```shell | ||
isort . | ||
``` | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
python /arcadia_app/src/server.py |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
|
||
|
||
import ujson | ||
|
||
from database_clients import postgresql_pool_client | ||
from utils import date_time_utils | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
|
||
|
||
import ulid | ||
|
||
from database_clients import postgresql_pool_client | ||
from utils import date_time_utils | ||
|
||
|
Oops, something went wrong.