Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
common-config
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
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
id
eigenservice
common-config
Commits
59a88bab
Commit
59a88bab
authored
3 years ago
by
David Huss
Browse files
Options
Downloads
Patches
Plain Diff
Try read_settings()
parent
0957fc7a
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
common_config/__init__.py
+1
-1
1 addition, 1 deletion
common_config/__init__.py
common_config/common.py
+5
-0
5 additions, 0 deletions
common_config/common.py
pyproject.toml
+1
-1
1 addition, 1 deletion
pyproject.toml
with
7 additions
and
2 deletions
common_config/__init__.py
+
1
−
1
View file @
59a88bab
__version__
=
'
0.1.
1
'
__version__
=
'
0.1.
2
'
from
common_config.common
import
*
\ No newline at end of file
This diff is collapsed.
Click to expand it.
common_config/common.py
+
5
−
0
View file @
59a88bab
...
...
@@ -12,6 +12,11 @@ APPLICATION_NAME = ""
SUFFIX
=
""
DEFAULT_CONFIG
=
""
def
read_settings
(
APPLICATION_NAME
,
SUFFIX
,
DEFAULT_CONFIG
):
common_config
.
common
.
APPLICATION_NAME
=
APPLICATION_NAME
common_config
.
common
.
SUFFIX
=
SUFFIX
common_config
.
common
.
DEFAULT_CONFIG
=
DEFAULT_CONFIG
def
this_or_else
(
this
:
Optional
[
str
],
other
:
str
)
->
str
:
"""
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
+
1
−
1
View file @
59a88bab
[tool.poetry]
name
=
"common-config"
version
=
"0.1.
1
"
version
=
"0.1.
2
"
description
=
"A config library for eigenservice"
authors
=
[
"David Huss <dh@atoav.com>"
]
...
...
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