Skip to content

feat: Export the main and create __main__.py - #109

Merged
kpetremann merged 2 commits into
kpetremann:masterfrom
Its-Just-Nans:add-main
Nov 16, 2025
Merged

kpetremann merged 2 commits into
kpetremann:masterfrom
Its-Just-Nans:add-main

Conversation

@Its-Just-Nans

Copy link
Copy Markdown
Contributor

Fixes/Implement: Export the main and create __main__.py

Description:

Export the main and create __main__.py

This file allows to direclty execute the main

python -m pip install mqtt-exporter
python -m mqtt_exporter

@Its-Just-Nans

Copy link
Copy Markdown
Contributor Author

Fixed the CI

@kpetremann
kpetremann merged commit 56f5ebf into kpetremann:master Nov 16, 2025
3 checks passed
@kpetremann

Copy link
Copy Markdown
Owner

thanks!

@kpetremann

Copy link
Copy Markdown
Owner

note: you could already run the project via : python -m mqtt_exporter.main

@Its-Just-Nans

Its-Just-Nans commented Nov 16, 2025 •

Copy link
Copy Markdown
Contributor Author

Yes, but having __main__.py is a little bit cleaner ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants