Skip to content

Add license headers#33

Merged
agmangas merged 2 commits into
eclipse-thingweb:developfrom
Nickgraviton:develop
Jun 6, 2026
Merged

Add license headers#33
agmangas merged 2 commits into
eclipse-thingweb:developfrom
Nickgraviton:develop

Conversation

@Nickgraviton

@Nickgraviton Nickgraviton commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

@agmangas @egekorkan I added the MIT license headers to all python source files. Let me know if further changes are needed. Thank you!

Summary by CodeRabbit

Release Notes

  • Chores
    • Added comprehensive MIT license/copyright headers to all source files throughout the project, including example applications, test suites, and core library modules, ensuring consistent licensing attribution and compliance documentation across the codebase.
    • Updated package version to 0.17.2.

@coderabbitai

coderabbitai Bot commented Jun 5, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This PR adds MIT license headers consistently across the entire wotpy codebase—130+ files spanning library modules, test suites, examples, and utility scripts. The only substantive code change is the introduction of __version__ = "0.17.2" in wotpy/__version__.py.

Changes

License Header Addition and Package Versioning

Layer / File(s) Summary
Package version constant
wotpy/__version__.py
Module-level variable __version__ defined as "0.17.2" is introduced alongside the MIT license header.
Library and protocol module license headers
wotpy/__init__.py, wotpy/codecs/*, wotpy/protocols/*, wotpy/wot/*, wotpy/utils/*, wotpy/support.py
MIT license headers are prepended to all core library modules across codecs, protocol implementations (CoAP, HTTP, MQTT, WebSocket), WoT abstractions, discovery, and utility modules.
Test suite license headers and package initialization
tests/__init__.py, tests/codecs/*, tests/protocols/*, tests/wot/*, and all nested conftest.py and __init__.py files
MIT license headers are prepended to all test modules, fixtures, and test package initializers throughout the test directory structure.
Example code and utility script license headers
examples/coffee-machine/*, examples/cpumonitor/server.py, examples/subscriber/client.py, pytest-docker.sh, version.sh
MIT license headers are added to example Python scripts and shell utility scripts.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A license for each, both great and small,
MIT headers now grace them all,
From tests to code, the headers stand,
Protecting the work across the land! 📜✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Add license headers' accurately and concisely summarizes the primary change: adding MIT license headers across all Python source files in the repository.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
wotpy/protocols/coap/resources/__init__.py (1)

4-4: 💤 Low value

Note: Copyright year differs from other files in this PR.

This file uses copyright year 2017 while other files in the PR use 2018. This may be intentional to reflect the original creation date of this file, but verify for consistency.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@wotpy/protocols/coap/resources/__init__.py` at line 4, Update the copyright
year in wotpy/protocols/coap/resources/__init__.py to match the rest of the PR
(change "2017" to "2018") or confirm and document why this file intentionally
uses 2017; modify the header comment accordingly so it is consistent with other
files in the branch.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@wotpy/protocols/coap/resources/__init__.py`:
- Line 4: Update the copyright year in
wotpy/protocols/coap/resources/__init__.py to match the rest of the PR (change
"2017" to "2018") or confirm and document why this file intentionally uses 2017;
modify the header comment accordingly so it is consistent with other files in
the branch.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: aa1d5ff0-b1b0-4e1a-a008-b21ddcd51fa7

📥 Commits

Reviewing files that changed from the base of the PR and between 2edb728 and cb8beca.

📒 Files selected for processing (132)
  • examples/coffee-machine/client.py
  • examples/coffee-machine/server.py
  • examples/cpumonitor/server.py
  • examples/subscriber/client.py
  • pytest-docker.sh
  • tests/__init__.py
  • tests/codecs/__init__.py
  • tests/codecs/test_json.py
  • tests/protocols/__init__.py
  • tests/protocols/coap/__init__.py
  • tests/protocols/coap/conftest.py
  • tests/protocols/coap/test_client.py
  • tests/protocols/coap/test_server.py
  • tests/protocols/conftest.py
  • tests/protocols/helpers.py
  • tests/protocols/http/__init__.py
  • tests/protocols/http/conftest.py
  • tests/protocols/http/test_client.py
  • tests/protocols/http/test_server.py
  • tests/protocols/mqtt/__init__.py
  • tests/protocols/mqtt/broker.py
  • tests/protocols/mqtt/conftest.py
  • tests/protocols/mqtt/test_client.py
  • tests/protocols/mqtt/test_server.py
  • tests/protocols/test_protocols.py
  • tests/protocols/ws/__init__.py
  • tests/protocols/ws/conftest.py
  • tests/protocols/ws/test_client.py
  • tests/protocols/ws/test_server.py
  • tests/td_examples.py
  • tests/utils.py
  • tests/wot/__init__.py
  • tests/wot/conftest.py
  • tests/wot/discovery/__init__.py
  • tests/wot/discovery/dnssd/__init__.py
  • tests/wot/discovery/dnssd/conftest.py
  • tests/wot/discovery/dnssd/test_service.py
  • tests/wot/test_consumed.py
  • tests/wot/test_dictionaries.py
  • tests/wot/test_exposed.py
  • tests/wot/test_servient.py
  • tests/wot/test_td.py
  • tests/wot/test_thing.py
  • tests/wot/test_wot.py
  • tests/wot/utils.py
  • version.sh
  • wotpy/__init__.py
  • wotpy/__version__.py
  • wotpy/codecs/__init__.py
  • wotpy/codecs/base.py
  • wotpy/codecs/enums.py
  • wotpy/codecs/json_codec.py
  • wotpy/codecs/text.py
  • wotpy/protocols/__init__.py
  • wotpy/protocols/client.py
  • wotpy/protocols/coap/__init__.py
  • wotpy/protocols/coap/client.py
  • wotpy/protocols/coap/enums.py
  • wotpy/protocols/coap/resources/__init__.py
  • wotpy/protocols/coap/resources/action.py
  • wotpy/protocols/coap/resources/event.py
  • wotpy/protocols/coap/resources/property.py
  • wotpy/protocols/coap/resources/utils.py
  • wotpy/protocols/coap/server.py
  • wotpy/protocols/enums.py
  • wotpy/protocols/exceptions.py
  • wotpy/protocols/http/__init__.py
  • wotpy/protocols/http/client.py
  • wotpy/protocols/http/enums.py
  • wotpy/protocols/http/handlers/__init__.py
  • wotpy/protocols/http/handlers/action.py
  • wotpy/protocols/http/handlers/event.py
  • wotpy/protocols/http/handlers/property.py
  • wotpy/protocols/http/handlers/utils.py
  • wotpy/protocols/http/server.py
  • wotpy/protocols/mqtt/__init__.py
  • wotpy/protocols/mqtt/client.py
  • wotpy/protocols/mqtt/enums.py
  • wotpy/protocols/mqtt/handlers/__init__.py
  • wotpy/protocols/mqtt/handlers/action.py
  • wotpy/protocols/mqtt/handlers/base.py
  • wotpy/protocols/mqtt/handlers/event.py
  • wotpy/protocols/mqtt/handlers/ping.py
  • wotpy/protocols/mqtt/handlers/property.py
  • wotpy/protocols/mqtt/handlers/subs.py
  • wotpy/protocols/mqtt/runner.py
  • wotpy/protocols/mqtt/server.py
  • wotpy/protocols/mqtt/utils.py
  • wotpy/protocols/refs.py
  • wotpy/protocols/server.py
  • wotpy/protocols/utils.py
  • wotpy/protocols/ws/__init__.py
  • wotpy/protocols/ws/client.py
  • wotpy/protocols/ws/enums.py
  • wotpy/protocols/ws/handler.py
  • wotpy/protocols/ws/messages.py
  • wotpy/protocols/ws/schemas.py
  • wotpy/protocols/ws/server.py
  • wotpy/support.py
  • wotpy/utils/__init__.py
  • wotpy/utils/enums.py
  • wotpy/utils/utils.py
  • wotpy/wot/__init__.py
  • wotpy/wot/constants.py
  • wotpy/wot/consumed/__init__.py
  • wotpy/wot/consumed/interaction_map.py
  • wotpy/wot/consumed/thing.py
  • wotpy/wot/dictionaries/__init__.py
  • wotpy/wot/dictionaries/base.py
  • wotpy/wot/dictionaries/filter.py
  • wotpy/wot/dictionaries/interaction.py
  • wotpy/wot/dictionaries/link.py
  • wotpy/wot/dictionaries/schema.py
  • wotpy/wot/dictionaries/security.py
  • wotpy/wot/dictionaries/thing.py
  • wotpy/wot/dictionaries/version.py
  • wotpy/wot/discovery/__init__.py
  • wotpy/wot/discovery/dnssd/__init__.py
  • wotpy/wot/discovery/dnssd/service.py
  • wotpy/wot/enums.py
  • wotpy/wot/events.py
  • wotpy/wot/exposed/__init__.py
  • wotpy/wot/exposed/interaction_map.py
  • wotpy/wot/exposed/thing.py
  • wotpy/wot/exposed/thing_set.py
  • wotpy/wot/form.py
  • wotpy/wot/interaction.py
  • wotpy/wot/servient.py
  • wotpy/wot/td.py
  • wotpy/wot/thing.py
  • wotpy/wot/validation.py
  • wotpy/wot/wot.py

@agmangas agmangas self-requested a review June 6, 2026 10:30
@agmangas agmangas merged commit 97e0c2e into eclipse-thingweb:develop Jun 6, 2026
1 of 6 checks passed
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