nftables-http-api/nft_http_api_client
Georg Pfuetzenreuter 8913c5a2fe
Extend client README
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2024-09-29 13:17:28 +02:00
..
nftables_api_client client: implement set_append() 2024-09-29 13:14:28 +02:00
LICENSE Add client library 2024-09-29 02:33:01 +02:00
pyproject.toml Add client library 2024-09-29 02:33:01 +02:00
README.md Extend client README 2024-09-29 13:17:28 +02:00
setup.cfg Add client library 2024-09-29 02:33:01 +02:00

RESTful HTTP API for nftables - Client

Usage

The token can be passed either as an argument to NftablesRemote() or in the environment variable NFT-API-TOKEN.

# initialize
from nftables_api_client.client import NftablesRemote
nft = NftablesRemote('http://localhost:9090', 'mytoken')

# do things
nft.get('/set/inet/filter/foo')