Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pdf-miner
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Qin Kaijie
pdf-miner
Commits
789918df
Commit
789918df
authored
Mar 01, 2024
by
赵小蒙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重构目录结构
parent
9e7f7550
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
4 deletions
+3
-4
s3.py
app/common/s3.py
+2
-2
__init__.py
pipeline/__init__.py
+0
-0
test_commons.py
test/test_commons.py
+1
-2
__init__.py
test/test_para/__init__.py
+0
-0
No files found.
spark/s3_tools
.py
→
app/common/s3
.py
View file @
789918df
...
...
@@ -2,10 +2,10 @@
import
boto3
from
botocore.client
import
Config
from
spark
import
s3_buckets
,
s3_clusters
,
get_cluster_name
,
s3_users
from
app.common
import
s3_buckets
,
s3_clusters
,
get_cluster_name
,
s3_users
import
re
import
random
from
typing
import
Dict
,
Iterator
,
List
,
Tuple
,
Union
from
typing
import
List
,
Union
__re_s3_path
=
re
.
compile
(
"^s3a?://([^/]+)(?:/(.*))?$"
)
def
get_s3_config
(
path
:
Union
[
str
,
List
[
str
]],
outside
=
False
):
...
...
test
/__init__.py
→
pipeline
/__init__.py
View file @
789918df
File moved
test/test_commons.py
View file @
789918df
import
io
import
json
import
os
import
unittest
from
libs.commons
import
fitz
from
spark.s3_tools
import
get_s3_config
,
get_s3_client
from
app.common.s3
import
get_s3_config
,
get_s3_client
from
libs.commons
import
join_path
,
json_dump_path
,
read_file
,
parse_bucket_key
from
loguru
import
logger
...
...
test/test_para/__init__.py
deleted
100644 → 0
View file @
9e7f7550
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment