Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ENDPOINT_URL environment option #53

Merged
merged 3 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion parquet_tools/commands/csv.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import sys
from argparse import ArgumentParser, Namespace
from typing import List, Optional
Expand Down Expand Up @@ -34,7 +35,7 @@ def configure_parser(paser: ArgumentParser) -> ArgumentParser:
paser.add_argument('--endpoint-url',
type=str,
required=False,
default=None,
default=os.environ.get('ENDPOINT_URL'),
help='A custom S3 endpoint URL')
paser.set_defaults(handler=_cli)
return paser
Expand Down
3 changes: 2 additions & 1 deletion parquet_tools/commands/inspect.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import sys
from argparse import ArgumentParser, Namespace
from typing import List
Expand Down Expand Up @@ -32,7 +33,7 @@ def configure_parser(paser: ArgumentParser) -> ArgumentParser:
paser.add_argument('--endpoint-url',
type=str,
required=False,
default=None,
default=os.environ.get('ENDPOINT_URL'),
help='A custom S3 endpoint URL')

paser.set_defaults(handler=_cli)
Expand Down
3 changes: 2 additions & 1 deletion parquet_tools/commands/show.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import sys
from argparse import ArgumentParser, Namespace
from logging import getLogger
Expand Down Expand Up @@ -49,7 +50,7 @@ def configure_parser(paser: ArgumentParser) -> ArgumentParser:
paser.add_argument('--endpoint-url',
type=str,
required=False,
default=None,
default=os.environ.get('ENDPOINT_URL'),
help='A custom S3 endpoint URL')

paser.set_defaults(handler=_cli)
Expand Down
Loading
Loading