Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
textgrid-python-clients
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DARIAH-DE
TextGridRep
textgrid-python-clients
Merge requests
!72
Resolve "replace darglint with pydoclint"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "replace darglint with pydoclint"
98-replace-darglint-with-pydoclint
into
main
Overview
0
Commits
4
Pipelines
3
Changes
11
Merged
Ubbo Veentjer
requested to merge
98-replace-darglint-with-pydoclint
into
main
8 months ago
Overview
0
Commits
4
Pipelines
3
Changes
11
Expand
Closes
#98 (closed)
0
0
Merge request reports
Compare
main
version 2
ea8b27cc
8 months ago
version 1
19de09f5
8 months ago
main (base)
and
latest version
latest version
813dbc96
4 commits,
8 months ago
version 2
ea8b27cc
3 commits,
8 months ago
version 1
19de09f5
1 commit,
8 months ago
11 files
+
129
−
98
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
Search (e.g. *.vue) (Ctrl+P)
src/tgclients/aggregator.py
+
5
−
5
Options
@@ -38,7 +38,7 @@ class Aggregator:
https://textgridlab.org/doc/services/submodules/aggregator/docs/zip.html
Args:
textgrid_uris (List[str]
or str
): a single or a list of TextGrid URIs
textgrid_uris (
Union[str,
List[str]
]
): a single or a list of TextGrid URIs
sid (Optional[str], optional): Session ID. Defaults to None.
Returns:
@@ -58,13 +58,13 @@ class Aggregator:
@overload
def
text
(
self
,
textgrid_uris
:
List
[
str
],
sid
:
Optional
[
str
]
=
None
)
->
Response
:
...
# python 3.10 allows writin
h
Union as |
# python 3.10 allows writin
g
Union as |
# https://www.blog.pythonlibrary.org/2021/09/11/python-3-10-simplifies-unions-in-type-annotations/
def
text
(
self
,
textgrid_uris
:
Union
[
str
,
List
[
str
]],
sid
:
Optional
[
str
]
=
None
)
->
Response
:
"""
Download aggregated TextGrid objects as plain text file.
Args:
textgrid_uris (List[str]
or str
): a single or a list of TextGrid URIs
textgrid_uris (
Union[str,
List[str]
]
): a single or a list of TextGrid URIs
sid (Optional[str], optional): Session ID. Defaults to None.
Returns:
@@ -90,7 +90,7 @@ class Aggregator:
"""
Download aggregated TextGrid objects as TEI corpus.
Args:
textgrid_uris (List[str]
or str
): a single or a list of TextGrid URIs
textgrid_uris (
Union[str,
List[str]
]
): a single or a list of TextGrid URIs
sid (Optional[str], optional): Session ID. Defaults to None.
Returns:
@@ -141,7 +141,7 @@ class Aggregator:
see https://textgridlab.org/doc/services/submodules/aggregator/docs/html.html
Args:
textgrid_uris (List[str]
or str
): a single or a list of TextGrid URIs
textgrid_uris (
Union[str,
List[str]
]
): a single or a list of TextGrid URIs
sid (Optional[str], optional): Session ID. Defaults to None.
stylesheet_uri (Optional[str], optional): alternative XSLT stylesheet to use.
Must be a TextGrid URI.
Loading