Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HELpy
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
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
hive
HELpy
Commits
3366efd8
Commit
3366efd8
authored
1 month ago
by
Krzysztof Mochocki
Browse files
Options
Downloads
Patches
Plain Diff
Add beekeeper_arguments
parent
bc2199ab
No related branches found
No related tags found
1 merge request
!80
Draft: Remove notifications
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
beekeepy/beekeepy/_executable/beekeeper_arguments.py
+43
-0
43 additions, 0 deletions
beekeepy/beekeepy/_executable/beekeeper_arguments.py
with
43 additions
and
0 deletions
beekeepy/beekeepy/_executable/beekeeper_arguments.py
0 → 100644
+
43
−
0
View file @
3366efd8
from
__future__
import
annotations
from
dataclasses
import
dataclass
from
pathlib
import
Path
from
typing
import
Any
,
ClassVar
,
Literal
from
beekeepy._communication
import
HttpUrl
from
beekeepy._executable.abc.arguments
import
Arguments
class
BeekeeperArgumentsDefaults
:
DEFAULT_BACKTRACE
:
ClassVar
[
Literal
[
"
yes
"
,
"
no
"
]]
=
"
yes
"
DEFAULT_EXPORT_KEYS_WALLET
:
ClassVar
[
ExportKeysWalletParams
|
None
]
=
None
DEFAULT_LOG_JSON_RPC
:
ClassVar
[
Path
|
None
]
=
None
DEFAULT_UNLOCK_TIMEOUT
:
ClassVar
[
int
]
=
900
DEFAULT_UNLOCK_INTERVAL
:
ClassVar
[
int
]
=
500
DEFAULT_WALLET_DIR
:
ClassVar
[
Path
]
=
Path
.
cwd
()
DEFAULT_WEBSERVER_THREAD_POOL_SIZE
:
ClassVar
[
int
]
=
32
DEFAULT_WEBSERVER_HTTP_ENDPOINT
:
ClassVar
[
HttpUrl
|
None
]
=
None
@dataclass
class
ExportKeysWalletParams
:
wallet_name
:
str
wallet_password
:
str
class
BeekeeperArguments
(
Arguments
):
backtrace
:
Literal
[
"
yes
"
,
"
no
"
]
|
None
=
BeekeeperArgumentsDefaults
.
DEFAULT_BACKTRACE
data_dir
:
Path
|
None
=
None
export_keys_wallet
:
ExportKeysWalletParams
|
None
=
BeekeeperArgumentsDefaults
.
DEFAULT_EXPORT_KEYS_WALLET
log_json_rpc
:
Path
|
None
=
BeekeeperArgumentsDefaults
.
DEFAULT_LOG_JSON_RPC
unlock_timeout
:
int
|
None
=
BeekeeperArgumentsDefaults
.
DEFAULT_UNLOCK_TIMEOUT
wallet_dir
:
Path
|
None
=
BeekeeperArgumentsDefaults
.
DEFAULT_WALLET_DIR
webserver_thread_pool_size
:
int
|
None
=
BeekeeperArgumentsDefaults
.
DEFAULT_WEBSERVER_THREAD_POOL_SIZE
webserver_http_endpoint
:
HttpUrl
|
None
=
BeekeeperArgumentsDefaults
.
DEFAULT_WEBSERVER_HTTP_ENDPOINT
def
_convert_member_value_to_string_default
(
self
,
member_value
:
Any
)
->
str
|
Any
:
if
isinstance
(
member_value
,
HttpUrl
):
return
member_value
.
as_string
(
with_protocol
=
False
)
if
isinstance
(
member_value
,
ExportKeysWalletParams
):
return
f
'
[
"
{
member_value
.
wallet_name
}
"
,
"
{
member_value
.
wallet_password
}
"
]
'
return
member_value
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment