Skip to content

Commit bcbb68c

Browse files
author
romanov
committed
Requirements updated
1 parent e87b6ab commit bcbb68c

File tree

4 files changed

+37
-7
lines changed

4 files changed

+37
-7
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@
1414
/async_hvac/version
1515

1616
.idea
17-
*.iml
17+
*.iml
18+
.vscode/
19+
try.py

README.md

+17
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
[![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/)
77

88
## 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+
913

1014
### Installation
1115

@@ -59,6 +63,19 @@ print(await client.read('secret/foo'))
5963
await client.delete('secret/foo')
6064
```
6165

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+
6279
### Authenticate to different auth backends
6380

6481
```python

requirements.txt

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
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
211
pyhcl==0.3.10
12+
yarl==1.7.2

tox.ini

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
[tox]
2-
envlist = py36
2+
envlist = py310
33

44
[flake8]
55
max-line-length = 160
66
exclude: .git,.venv,.tox
77

88
[testenv]
9+
setuptools_version = 58
910
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
1213

13-
[testenv:py36-flake8]
14-
basepython = python3.6
14+
[testenv:py310-flake8]
15+
basepython = python3.10
1516
deps = flake8
1617
commands = flake8 {posargs}

0 commit comments

Comments
 (0)