Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
netdb-client-lib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
scc-net
netvs
netdb-client-lib
Commits
611b4998
Commit
611b4998
authored
Oct 19, 2020
by
Dominik Rimpf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UPD: README.md
parent
211f7cf0
Pipeline
#117069
passed with stage
in 23 seconds
Changes
1
Pipelines
20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
README.md
README.md
+29
-0
No files found.
README.md
View file @
611b4998
...
...
@@ -37,6 +37,35 @@ Variable precendence is as followed (from greatest to least, means the first sou
>>>
endpoint
=
netdb_client
.
APIEndpoint
(
**
vars
(
args
))
>>>
api
=
netdb_client
.
APISession
(
endpoint
)
```
Example help (
`h`
/
`--help`
) output:
```
usage: test2.py [-h] [--auth-config AUTH_CONFIG] [--base-url BASE_URL]
[--version VERSION] [--token TOKEN]
Argument Parser for netdb_client
optional arguments:
-h, --help show this help message and exit
--auth-config AUTH_CONFIG
config file path (default: /Users/dominik/.config/netdb_client.ini)
--base-url BASE_URL, -b BASE_URL
webapi server.
Environment: "NETDB_BASE_URL"
Config: [DEFAULT]: endpoint
--version VERSION webapi version.
Environment: "NETDB_VERSION"
Config: [$endpoint]: version
--token TOKEN, -t TOKEN
user API token.
Environment: "NETDB_TOKEN"
Config: [$endpoint]: token
The Variables BASE_URL, VERSION and TOKEN can be loaded from config file,environment or from command line arguments.
Variable precendence is as followed (from greatest to least,means the first listed variable overwrites all other variables):
1. cli-arguments
2. environment variables
3. config-file
```
## Examples
More examples can be found in the
[
wiki article
](
https://git.scc.kit.edu/scc-net/net-suite/netdb-client-lib/-/wikis/examples
)
...
...
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