File tree 4 files changed +37
-7
lines changed
4 files changed +37
-7
lines changed Original file line number Diff line number Diff line change 14
14
/async_hvac /version
15
15
16
16
.idea
17
- * .iml
17
+ * .iml
18
+ .vscode /
19
+ try.py
Original file line number Diff line number Diff line change 6
6
[ ![ Travis CI] ( https://travis-ci.com/Aloomaio/async-hvac.svg?branch=master )] ( https://travis-ci.com/Aloomaio/async-hvac ) [ ![ Latest Version] ( https://img.shields.io/pypi/v/async-hvac.svg )] ( https://pypi.python.org/pypi/async-hvac/ )
7
7
8
8
## Getting started
9
+ Fork of original [ Async-hvac] ( https://github.com/Aloomaio/async-hvac ) , which supports Python 3.10 and aiohttp==3.8.1
10
+
11
+ KVv2 backend was mentioned in this doc
12
+
9
13
10
14
### Installation
11
15
@@ -59,6 +63,19 @@ print(await client.read('secret/foo'))
59
63
await client.delete(' secret/foo' )
60
64
```
61
65
66
+ ### Read and write to KVv2 backend
67
+
68
+ ``` python
69
+ # Replace 'data' to 'metadata' for for metadata operations
70
+ await client.read(' secret/data/foo' )
71
+
72
+ # Be careful, root key for payload MUST be 'data'
73
+ await client.write(' secret/data/foo' , data = {" spam" :" eggs" })
74
+
75
+ await client.delete(' secret/data/foo' )
76
+ ```
77
+
78
+
62
79
### Authenticate to different auth backends
63
80
64
81
``` python
Original file line number Diff line number Diff line change 1
- aiohttp == 3.3.1
1
+ aiohttp == 3.8.1
2
+ aiosignal == 1.2.0
3
+ async-timeout == 4.0.2
4
+ attrs == 21.4.0
5
+ chardet == 3.0.4
6
+ charset-normalizer == 2.0.12
7
+ frozenlist == 1.3.0
8
+ idna == 3.3
9
+ multidict == 4.7.6
10
+ ply == 3.10
2
11
pyhcl == 0.3.10
12
+ yarl == 1.7.2
Original file line number Diff line number Diff line change 1
1
[tox]
2
- envlist = py36
2
+ envlist = py310
3
3
4
4
[flake8]
5
5
max-line-length = 160
6
6
exclude: .git,.venv,.tox
7
7
8
8
[testenv]
9
+ setuptools_version = 58
9
10
commands = nosetests -s --with-coverage --cover-package =async_hvac --cover-html {posargs}
10
- deps = -rrequirements .txt
11
- -rrequirements -dev.txt
11
+ deps = -r requirements .txt
12
+ -r requirements -dev.txt
12
13
13
- [testenv:py36 -flake8]
14
- basepython = python3.6
14
+ [testenv:py310 -flake8]
15
+ basepython = python3.10
15
16
deps = flake8
16
17
commands = flake8 {posargs}
You can’t perform that action at this time.
0 commit comments