Wykres commitów

6 Commity (bd0759eec00d0de864c1e6523f85f3dc17d3b999)

Autor SHA1 Wiadomość Data
Zoran Bošnjak b48ee35e70 fix flake8 errors 2019-12-20 18:57:36 +01:00
Zoran Bošnjak 689d60ebbe Allow dynamic settings override
Additional (optional) 'settings' attribute in AprsClient,
to be able to pass custom settings to the client,
without changing the settings.py file.

Added 'CustomSettings' class for backward compatible attribute access.

Example (myapp.py):
...
args = ... parse arguments from command line

settings = CustomSettings(
    APRS_SERVER_HOST = args.server,
    APRS_SERVER_PORT_FULL_FEED = args.port,
    APRS_SERVER_PORT_CLIENT_DEFINED_FILTERS = args.port,
    APRS_APP_NAME = 'python-ogn-client',
    PACKAGE_VERSION = '0.9.5',
    APRS_APP_VER = '0.9',
    APRS_KEEPALIVE_TIME = 240,
    TELNET_SERVER_HOST = 'localhost',
    TELNET_SERVER_PORT = 50001,
    )

client = AprsClient(aprs_user='N0CALL', aprs_filter=args.filter, settings=settings)
client.connect()
...
2019-12-18 08:30:39 +01:00
Konstantin Gründger 226a8239fa Release v0.9.5 2019-09-07 16:26:32 +02:00
Konstantin Gründger 1eae059cf6 Fix some flake8 problems 2019-06-07 20:08:51 +02:00
Fabian P. Schmidt a8f0e1f464 client: Import class AprsClient at package level 2016-03-08 02:46:11 +01:00
Fabian P. Schmidt abae52b165 Rename module ogn.gateway to ogn.client
Renamed also class ognGateway to AprsClient to comply with the PEP8 naming
convention and to emphasis that it is a generic aprs client, not ogn specific.
2016-03-08 02:05:50 +01:00