Skip to content

Commit 21f247a

Browse files
bjoernricksgreenbonebot
authored andcommitted
Update API example in our README
Use all upper case naming for GMP. Some time in the past we agreed on using all upper case naming for abbreviations.
1 parent efbd99f commit 21f247a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,22 @@ Python 3.9 and later is supported.
6363
You can install the latest stable release of python-gvm from the Python Package
6464
Index using [pip](https://pip.pypa.io/):
6565

66-
python3 -m pip install --user python-gvm
66+
```shell
67+
python3 -m pip install --user python-gvm
68+
```
6769

6870
## Example
6971

7072
```python3
7173
from gvm.connections import UnixSocketConnection
72-
from gvm.protocols.gmp import Gmp
74+
from gvm.protocols.gmp import GMP
7375
from gvm.transforms import EtreeTransform
7476
from gvm.xml import pretty_print
7577

7678
connection = UnixSocketConnection()
7779
transform = EtreeTransform()
7880

79-
with Gmp(connection, transform=transform) as gmp:
81+
with GMP(connection, transform=transform) as gmp:
8082
# Retrieve GMP version supported by the remote daemon
8183
version = gmp.get_version()
8284

0 commit comments

Comments
 (0)