Commit Graph

207 Commits

Author SHA1 Message Date
Fabio Manganiello 0483fbac0b
Bump version: 1.0.5 → 1.0.6
continuous-integration/drone/push Build is passing Details
2024-06-01 11:00:43 +02:00
Fabio Manganiello 67b6e3a608
Bump version: 1.0.4 → 1.0.5
continuous-integration/drone/push Build is passing Details
2024-06-01 01:43:12 +02:00
Fabio Manganiello 944fd45f9f
Bump version: 1.0.3 → 1.0.4
continuous-integration/drone/push Build is passing Details
2024-05-31 19:57:51 +02:00
Fabio Manganiello 23e02de1d7
Bump version: 1.0.2 → 1.0.3
continuous-integration/drone/push Build is passing Details
2024-05-31 02:57:08 +02:00
Fabio Manganiello 5b3c0ad1cf
Bump version: 1.0.1 → 1.0.2
continuous-integration/drone/push Build is passing Details
2024-05-26 11:09:51 +02:00
Fabio Manganiello a4a776986b
Bump version: 1.0.0 → 1.0.1
continuous-integration/drone/push Build is passing Details
2024-05-26 04:27:27 +02:00
Fabio Manganiello 0f6f119089
Bump version: 0.99.11 → 1.0.0
continuous-integration/drone/push Build is passing Details
2024-05-26 04:15:52 +02:00
Fabio Manganiello c64ff40dd3
Bump version: 0.99.10 → 0.99.11
continuous-integration/drone/push Build is passing Details
2024-05-26 04:06:15 +02:00
Fabio Manganiello e6702398dc
Bump version: 0.99.9 → 0.99.10
continuous-integration/drone/push Build is passing Details
2024-05-26 03:46:51 +02:00
Fabio Manganiello 8d26721040
Bump version: 0.99.8 → 0.99.9
continuous-integration/drone/push Build is passing Details
2024-05-26 03:32:49 +02:00
Fabio Manganiello 0ffff854d3
Bump version: 0.99.7 → 0.99.8
continuous-integration/drone/push Build is passing Details
2024-05-26 03:18:16 +02:00
Fabio Manganiello 42174b31bc
Bump version: 0.99.6 → 0.99.7
continuous-integration/drone/push Build is passing Details
2024-05-26 03:12:26 +02:00
Fabio Manganiello 104457a302
Bump version: 0.99.5 → 0.99.6
continuous-integration/drone/push Build is passing Details
2024-05-26 01:47:22 +02:00
Fabio Manganiello 751d719b04
Bump version: 0.99.4 → 0.99.5
continuous-integration/drone/push Build encountered an error Details
2024-05-26 01:46:29 +02:00
Fabio Manganiello cc670f9d4a
Bump version: 0.99.3 → 0.99.4
continuous-integration/drone/push Build is passing Details
2024-05-26 01:26:46 +02:00
Fabio Manganiello ee3933dc77
Bump version: 0.99.2 → 0.99.3
continuous-integration/drone/push Build is passing Details
2024-05-26 00:56:29 +02:00
Fabio Manganiello 0537815721
Bump version: 0.99.1 → 0.99.2
continuous-integration/drone/push Build is passing Details
2024-05-26 00:50:37 +02:00
Fabio Manganiello d3562f4d20
Bump version: 0.99.0 → 0.99.1
continuous-integration/drone/push Build is passing Details
2024-05-26 00:44:30 +02:00
Fabio Manganiello 1911c05afe
Bump version: 0.50.3 → 0.99.0
continuous-integration/drone/push Build is passing Details
2024-05-26 00:25:34 +02:00
Fabio Manganiello 86b4b14112
Added the current running application as a static object.
continuous-integration/drone/push Build is passing Details
```python
from platypush import app
```
2024-05-20 01:54:25 +02:00
Fabio Manganiello 7a849379f9
[#399] Added `@when` decorator as an alias for `@hook`.
continuous-integration/drone/push Build is passing Details
Closes: #399
2024-05-08 21:58:58 +02:00
Fabio Manganiello a6f7b6e790 Added more default imports under the `platypush` module root.
These objects can now also be imported in scripts through
`from platypush import <name>`:

- `Variable`
- `cron`
- `hook`
- `procedure`
2024-05-02 00:51:09 +00:00
Fabio Manganiello 266ee3cadf Expose `run` on the base package level.
This enables a syntax like:

```
from platypush import run

run('application.restart')
```
2023-11-03 20:54:46 +00:00
Fabio Manganiello dc1a152433
Added `get_default_pid_file` utility method. 2023-08-14 10:47:25 +02:00
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
Fabio Manganiello 0dc380fa94
Removed dependency from prctl.
Also, black'd and LINT-fixed some files that hadn't been touched in a
while.
2023-07-23 19:17:30 +02:00
Fabio Manganiello 1d98f54c54
Bump version: 0.50.2 → 0.50.3 2023-07-22 23:36:04 +02:00
Fabio Manganiello 66981bd00b
Updated email addresses and black'd some old source files. 2023-07-22 23:02:44 +02:00
Fabio Manganiello c846c61493
Refactored `Config.__init__`.
The constructor of the `Config` class had grown too big. It's much more
manageable if split into multiple sub-constructor helpers.
2023-07-15 13:38:07 +02:00
Fabio Manganiello e0af2daaff
Bump version: 0.50.1 → 0.50.2 2023-06-30 23:12:40 +02:00
Fabio Manganiello f3b2386ed6
Bump version: 0.50.0 → 0.50.1 2023-06-28 02:44:13 +02:00
Fabio Manganiello 08c3a1e11a
Bump version: 0.24.5 → 0.50.0 2023-06-28 02:23:09 +02:00
Fabio Manganiello 7fa545d7f8
Merge branch 'master' into 29-generic-entities-support 2023-02-22 00:46:33 +01:00
Fabio Manganiello c645ce6bb8
Bump version: 0.24.4 → 0.24.5 2023-02-22 00:32:57 +01:00
Fabio Manganiello 0513339be7
Merge branch 'master' into 29-generic-entities-support 2022-12-20 23:06:19 +01:00
Fabio Manganiello 84ce31cab0
Bump version: 0.24.3 → 0.24.4 2022-12-20 23:05:42 +01:00
Fabio Manganiello 9ddebb920f
Merge branch 'master' into 29-generic-entities-support 2022-12-17 00:51:51 +01:00
Fabio Manganiello 6666f5581c
Bump version: 0.24.2 → 0.24.3 2022-12-17 00:31:22 +01:00
Fabio Manganiello 2ee2a1d7b5
Replaced `disable_logging` with a more generic `logging_level`.
The `disable_logging` attribute was only available on events and
responses, and it could only either entirely disable or enable logging
for all the events of a certain type.

The new flag allows more customization by setting the default logging
level used for any message of a certain type (or `None` to disable
logging). This makes it possible to e.g. set some verbose events to
debug level, and the user can see them if they configure the application
in debug mode.

It also delegates the logging logic to the message itself, instead of
having different parts of the application handling their own logic.
2022-12-11 11:46:37 +01:00
Fabio Manganiello d4b540dd67
Replaced `disable_logging` with a more generic `logging_level`.
The `disable_logging` attribute was only available on events and
responses, and it could only either entirely disable or enable logging
for all the events of a certain type.

The new flag allows more customization by setting the default logging
level used for any message of a certain type (or `None` to disable
logging). This makes it possible to e.g. set some verbose events to
debug level, and the user can see them if they configure the application
in debug mode.

It also delegates the logging logic to the message itself, instead of
having different parts of the application handling their own logic.
2022-12-11 11:39:38 +01:00
Fabio Manganiello aa3479abeb
Added [-v|--verbose] and --version options to the command line. 2022-12-11 10:59:12 +01:00
Fabio Manganiello a1d3724b8d
Added [-v|--verbose] and --version options to the command line. 2022-12-11 10:54:03 +01:00
Fabio Manganiello 5a47308516
Merge branch 'master' into 29-generic-entities-support 2022-12-10 15:57:28 +01:00
Fabio Manganiello 4c8190ac14
Bump version: 0.24.1 → 0.24.2 2022-12-10 15:37:49 +01:00
Fabio Manganiello 3b1147eaae Bump version: 0.24.0 → 0.24.1 2022-12-08 12:33:34 +01:00
Fabio Manganiello 00fca6b187
Merge branch 'master' into 29-generic-entities-support 2022-12-04 20:58:06 +01:00
Fabio Manganiello 73f6712f7a
Bump version: 0.23.6 → 0.24.0 2022-11-22 00:12:25 +01:00
Fabio Manganiello 26f869b6e4
LINT fixes 2022-11-11 21:49:38 +01:00
Fabio Manganiello 84bb77bd5b
Replaced ambiguous logger variable name 2022-11-11 20:37:39 +01:00
Fabio Manganiello deb25196d2
Merge branch 'master' into 191-support-for-general-entities-backend-and-plugin 2022-09-28 02:17:10 +02:00