platypush/platypush
Fabio Manganiello 37dcaba7a1
Refactored structure of main application and startup scripts.
The main application class has been moved from __init__ to the app
module.

__init__ will contain instead the relevant global variables and the
modules and objects exposed to external integrations - such as
`get_plugin` and `get_backend`, or the `main` itself.

This will make future integrations much easier - the global __init__
doesn't contain any business logic now, it can import anything without
fearing circular dependencies, and it can limit its exposed objects to
those that we want to expose to 3rd-party integrations and scripts.

It will also make it easier to extend the main entry point with
additional logic - such as a supervisor or an embedded Redis server.
2023-07-23 23:12:36 +02:00
..
backend Removed dependency from prctl. 2023-07-23 19:17:30 +02:00
bus More LINT fixes + refactors 2023-02-05 22:00:50 +01:00
common Better way to import `declarative_base` from SQLAlchemy. 2023-04-24 23:21:39 +02:00
config Expose `Config.workdir` property. 2023-07-22 15:11:58 +02:00
context Format string typo fix 2023-06-30 23:07:00 +02:00
cron Removed dependency from prctl. 2023-07-23 19:17:30 +02:00
entities Removed dependency from prctl. 2023-07-23 19:17:30 +02:00
event Removed dependency from prctl. 2023-07-23 19:17:30 +02:00
exceptions Added support for JWT token-based authentication 2021-02-12 22:43:34 +01:00
message Removed dependency from prctl. 2023-07-23 19:17:30 +02:00
migrations Migrated `variable` table to the new entities framework. 2023-04-29 11:36:55 +02:00
platydock Upgraded Docker base image. 2023-07-23 17:25:52 +02:00
plugins Removed dependency from prctl. 2023-07-23 19:17:30 +02:00
procedure Major LINT fixes 2021-04-05 00:58:44 +02:00
schemas Disk I/O stats are not always available and should therefore be optional. 2023-04-23 22:25:24 +02:00
user LINT/format fixes. 2023-04-25 10:36:27 +02:00
utils Removed dependency from prctl. 2023-07-23 19:17:30 +02:00
__init__.py Refactored structure of main application and startup scripts. 2023-07-23 23:12:36 +02:00
__main__.py Refactored structure of main application and startup scripts. 2023-07-23 23:12:36 +02:00
app.py Refactored structure of main application and startup scripts. 2023-07-23 23:12:36 +02:00
logger.py Refactored structure of main application and startup scripts. 2023-07-23 23:12:36 +02:00