craigerl / aprsd

Amateur radio APRS daemon which listens for messages and responds. By KM6LYW.
Apache License 2.0
120 stars 19 forks source link

Refactoring/Cleanup #70

Closed hemna closed 2 years ago

hemna commented 2 years ago

This branch is being used to do some cleanup of the codebase.

The first patch cleans up and separates the utils.py into their components.
This is broken up into config.py now and anything left in utils.py is really just general purpose utility stuff.

The second patch is to refactor the client objects. The client objects now have exactly the same basic API, so the custom transport (aprsis vs kiss) detecting in the messaging objects is no longer needed. This makes this quite a bit cleaner and straight forward. The new ClientFactory registers all client types and creates the correct singleton depending on the config options. The rest of the code doesn't have to know which one to create/use. Just call the client.factory.create() and you will get the correct client object.