Skip to content
Snippets Groups Projects
Commit 564ae2ae authored by Dominik Rimpf's avatar Dominik Rimpf
Browse files

FIX: typos

parent a927aa43
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ build:
- python -m pep517.build .
artifacts:
paths:
- dist/
- dist/*
expire_in: 2 days
only:
- master
# NETDB API 3.x Client Library for Python3
## Install
### Pre-Built (updated every night)
`pip install https://git.scc.kit.edu/scc-net/net-suite/netdb-client-lib/-/jobs/artifacts/master/raw/dist/netdb_client-1.0-py3-none-any.whl?job=build`
`pip install https://git.scc.kit.edu/scc-net/netvs/netdb-client-lib/-/jobs/artifacts/master/raw/dist/netdb_client-1.0-py3-none-any.whl?job=build`
### Self-Built
`env NETDB_AUTH=<your API token> pip install git+https://git.scc.kit.edu/scc-net/net-suite/netdb-client-lib.git@master`
`env NETDB_AUTH=<your API token> pip install git+https://git.scc.kit.edu/scc-net/netvs/netdb-client-lib.git@master`
## Usage
......@@ -74,7 +74,7 @@ Variable precendence is as followed (from greatest to least,means the first list
An example config can be found in this repo (`example_config.ini`). Be aware to set the file mode of the config at least to `0600` but never other-readable.
## Examples
More examples can be found in the [wiki article](https://git.scc.kit.edu/scc-net/net-suite/netdb-client-lib/-/wikis/examples)
More examples can be found in the [wiki article](https://git.scc.kit.edu/scc-net/netvs/netdb-client-lib/-/wikis/examples)
### Basic queries
List all BCDs:
```python
......
......@@ -92,14 +92,14 @@ class ArgumentParser(argparse.ArgumentParser):
def list_to_generator_map_one2one(array, key_name):
"""Mapping function to convert list of dicts to an mapping with value as key for each dict
(1 to 1 Mapping). Returns an generator object."""
"""Mapping function to convert list of dicts to a mapping with value as key for each dict
(1 to 1 Mapping). Returns a generator object."""
return ((item[key_name], item) for item in array)
def list_to_generator_map_one2many(array, key_name):
"""Mapping function to convert list of dicts to an mapping with values as key for each lists
(1 to n Mapping). Returns an generator object."""
"""Mapping function to convert list of dicts to a mapping with values as key for each lists
(1 to n Mapping). Returns a generator object."""
res = {}
for item in array:
if not item[key_name] in res:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment