Skip to content

Commit 4d5bd7e

Browse files
committed
Init commit with Code
1 parent 80b0d35 commit 4d5bd7e

29 files changed

+4986
-21
lines changed

.gitignore

-20
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,6 @@ __pycache__/
66
# C extensions
77
*.so
88

9-
# Distribution / packaging
10-
.Python
11-
build/
12-
develop-eggs/
13-
dist/
14-
downloads/
15-
eggs/
16-
.eggs/
17-
lib/
18-
lib64/
19-
parts/
20-
sdist/
21-
var/
22-
wheels/
23-
share/python-wheels/
24-
*.egg-info/
25-
.installed.cfg
26-
*.egg
27-
MANIFEST
28-
299
# PyInstaller
3010
# Usually these files are written by a python script from a template
3111
# before PyInstaller builds the exe, so as to inject date/other infos into it.

CODE_OF_CONDUCT.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Mercedes-Benz Open Source Code of Conduct
2+
3+
## Purpose
4+
5+
The Mercedes-Benz Free and Open Source Software (FOSS) Code of Conduct defines the proper behavior and the responsibilities for contributing and participating in FOSS communities to facilitate an open and welcoming culture that encourages active participation, learning, and constructive FOSS community interaction.
6+
7+
The Mercedes-Benz FOSS Code of Conduct is created based on the [Mercedes-Benz Integrity Code](https://group.mercedes-benz.com/company/compliance/integrity-code.html) and extends and details the Mercedes-Benz Integrity Code with regard to the proper behavior for contribution and participation in FOSS communities. The Mercedes-Benz FOSS Code of Conduct does not restrict the Mercedes-Benz Integrity Code in any way.
8+
9+
The Mercedes-Benz FOSS Code of Conduct applies to all FOSS community interactions with Mercedes-Benz, of Mercedes-Benz, within Mercedes-Benz and within the public, whenever an individual is part of or representing a FOSS community.
10+
11+
## Behavior
12+
13+
Participants are committed to contribute and participate in FOSS communities in a harassment-free culture and environment for everyone regardless of gender, sexual identity and orientation, religion, disability, illness, ethnicity, socioeconomic status, nationality, age, level of experience, and education.
14+
15+
Examples for expected behavior to create a positive culture and environment:
16+
17+
* Being nice, friendly, welcoming, and inclusive
18+
* Acting considerate, modest, and respectful
19+
* Criticize constructively and accept constructive criticism
20+
* Respect different points of view and the experiences of individuals
21+
* Encourage for collaboration
22+
* Being mindful and empathetic towards other individuals
23+
* Focusing on benefits for the community
24+
* Using polite and inclusive language
25+
26+
Examples for unacceptable behavior that will not be tolerated:
27+
28+
* Intimidating other individuals
29+
* Political or personal attacks as well as publishing private information without permission (e. g. an address)
30+
* Trolling
31+
* Using sexualized language
32+
* Insulting, derogatory, harmful or prejudicial verbal or written comments
33+
* Harassment
34+
35+
## Responsibilities
36+
37+
By contributing and participating in Mercedes-Benz managed FOSS communities, external individuals and Mercedes-Benz employees are obliged to comply with the Mercedes-Benz FOSS Code of Conduct. Contributors are obligated to respect internationally recognized human rights and to promote adherence to them. By contributing and participating in non-Mercedes-Benz managed (external) FOSS communities, Mercedes-Benz employees are obliged to comply with the Mercedes-Benz FOSS Code of Conduct as well.
38+
39+
Mercedes-Benz is responsible to define the values and put rules for proper behavior into practice and to take appropriate and corrective actions in any case of unacceptable behavior as per this FOSS Code of Conduct. In case of individuals violating the Mercedes-Benz FOSS Code of Conduct, Mercedes-Benz has the authority to reject, edit, or remove the contributions (e. g. comments, source code commits, and discussion entries) in Mercedes-Benz-managed FOSS communities. In addition, Mercedes-Benz may, but is not obliged to explain why the behavior of the individual negatively impacted other individuals and give a warning in public or in private. Furthermore Mercedes-Benz is allowed to ban participants with inappropriate behavior temporarily or permanently.
40+
41+
42+
## Enforcement
43+
44+
To put the values for proper behavior into practice, the Mercedes-Benz FOSS Code of Conduct has to be enforced. Any Mercedes-Benz FOSS Code of Conduct irregularity (e. g. through unacceptable behavior) shall be reported to <[email protected]>. After reporting a Mercedes-Benz FOSS Code of Conduct irregularity, the complaint will be evaluated and appropriate action will be taken if deemed necessary. The confidentiality with regard to the reporter of the Mercedes-Benz FOSS Code of Conduct irregularity is ensured by Mercedes-Benz at any time.
45+
46+
If you have concrete indications of major risk violations in connection with the Mercedes-Benz Group, you can always contact the [Whistleblower System BPO](https://group.mercedes-benz.com/unternehmen/compliance/bpo/) directly.

CONTRIBUTING.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!-- SPDX-License-Identifier: MIT --->
2+
# Contributing
3+
4+
_Contributions are highly welcome!_
5+
6+
This document explains how to contribute to this project.
7+
By contributing you will agree that your contribution will be put under the same license as this repository.
8+
9+
## Table of Contents
10+
- [Contributor License Agreement (CLA)](#contributor-license-agreement-cla)
11+
- [Communication](#communication)
12+
- [Contributions](#contributions)
13+
14+
## Contributor License Agreement (CLA)#
15+
16+
Before you can contribute, you will need to sign our cla [Contributor License Agreement](https://github.com/mercedes-benz/foss/blob/master/cla/2022-04-25_MB_FOSS_CLA_MBTI.pdf) and send the signed CLA to <[email protected]>
17+
18+
19+
## Communication
20+
For communication please respect our [FOSS Code of Conduct](https://github.com/mercedes-benz/foss/blob/master/CODE_OF_CONDUCT.md).
21+
22+
IMPORTANT: For contributions or issue reports, please start by creating an [issue on Github](link to issue).
23+
24+
Transparent and open communication is important to us. Thus, all project-related communication should happen here and in English. Issue-related communication should happen within the concerned issue.
25+
26+
## Contributions
27+
When submitting code, please follow the existing conventions and style in order to keep the code as readable as possible.
28+
29+
If you would like to contribute code you can do so through GitHub. We are following [Git Strategy](docs/GitStrategy.md) to maintain the branching standards on Github. We are requested to follow the same.
30+
31+
When submitting code, please make every effort to follow existing conventions and style in order to keep the code as readable as possible.
32+
33+
If you are new to contributing in Github, [First Contributions](https://github.com/firstcontributions/first-contributions) might be a good starting point.

CONTRIBUTORS_LICENSE_AGREEMENT.md

+135
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
# Contributors License Agreement
2+
Version 1.2, proprietary document Mercedes-Benz Group.
3+
4+
>**Contributions** to any **Mercedes-Benz Tech Innovation repository**: please sign the Mercedes-Benz Tech Innovation CLA "[2022-04-25_MB_FOSS_CLA_MBTI.pdf](./cla/2022-04-25_MB_FOSS_CLA_MBTI.pdf)" and send a scan of the CLA to [email protected].
5+
6+
## 0 CLA Parties
7+
8+
This _Contributor_ License Agreement (**_“CLA”_**) is concluded by and between
9+
10+
11+
Company Name/Individual’s Name:
12+
13+
Platform Username:
14+
15+
Address:
16+
17+
E-Mail:
18+
19+
If you contribute as a company, the following person is authorized to act on aforementioned company’s behalf in connection with the _FOSS Project_: [name, function]
20+
21+
(hereinafter **_“Contributor“_**)
22+
23+
and
24+
25+
**_FOSS Co_**
26+
27+
[Address 1]
28+
29+
[Address 2]
30+
31+
[Address 3]
32+
33+
(hereinafter **_“FOSS Co“_**)
34+
35+
(_Contributor_ and _FOSS Co_ hereinafter individually a **_“Party”_** and jointly the **_“Parties”_**)
36+
37+
## 1 Definitions
38+
Capitalized terms in _italics_ that are used in this _CLA_ shall have the following meaning:
39+
40+
**_Contribution_** means any _Contributor’s Work of Authorship_, which the _Contributor_ submits to _FOSS Co_.
41+
42+
**_FOSS License_** means a license approved as open source license by the Open Source Initiative (https://opensource.org/licenses/), or other open source license terms as specified by _FOSS Co_ for the _FOSS Project_.
43+
44+
**_FOSS Project_** means _FOSS Co’s_ free and open source projects on https://github.com/mercedes-benz, in which software and/or documentation is made available under a _FOSS License_ determined by _FOSS Co_ per repository.
45+
46+
**_Contributor’s Work of Authorship_** means any work of authorship, such as but not limited to, software code, documentation, databases, or parts of the foregoing, including modifications or additions to software code or documentation made available in the _Project_, which entirely and independently has been developed, invented, designed or otherwise created by (i) the _Contributor_ itself, and/or (ii) third parties for and on behalf of the _Contributor_ (e.g. _Contributor_’s employees).
47+
48+
**_Submit_** means any form of electronic communication, including, without limitation, upload, communication on mailing lists, source code control systems and bug tracking systems that are used by _FOSS Co_ for its _FOSS Project_.
49+
50+
**_Third Party Materials_** means any work of authorship to the extent it is not _Contributor’s Work of Authorship_, e.g. third party proprietary or open source software.
51+
52+
## 2 Subject matter and scope
53+
2.1 The subject matter of this _CLA_ is the grant of rights and licenses in _Contributions_ according to the terms and conditions laid out herein.
54+
55+
2.2 The _Contributor_ has no obligation to _submit_ any _Contribution_ to _FOSS Co_. If the _Contributor_ decides to create and _submit_ a _Contribution_, however, such _Contribution_ is governed by the terms of this _CLA_, _FOSS Co’s_ guidelines on _submitting Contributions_ published by _FOSS Co_ for the _Project_, and any applicable third party guidelines on _submitting Contributions_ (e.g. platform guidelines). In the absence of _FOSS Co’s_ and applicable third party guidelines, the _Contributor_ shall _submit Contributions_ in a way customary and reasonable in open source projects. _FOSS Co_ has no obligation to accept _Contributions_ to be used in the _FOSS Project_ or otherwise.
56+
57+
2.3 The _Contributor_ agrees not to _submit_ any _Third Party Materials_ to _FOSS Co_, and will particularly ensure that no _Third Party Materials_ are included in any _Contribution_.
58+
59+
## 3 Grant of rights
60+
3.1 Upon _submission_ of a _Contribution_, _Contributor_ irrevocably grants _FOSS Co_ the non-exclusive, worldwide, perpetual and royalty-free right and license covering all copyrights and other intellectual property rights (e.g. database rights, trademarks, trade names, but with the exception of patents and utility models, see section 3.2) to use, copy, modify, combine, sell, lease, otherwise distribute, make publicly available and otherwise exploit the _Contribution_ and any portion thereof, in each case either modified or unmodified. This particularly includes the non-exclusive right of _FOSS Co_ to
61+
62+
1. use, test, run, host, access, grant access to, copy and otherwise reproduce the _Contribution_ and any portions thereof, for any commercial or non-commercial purpose, in isolated form as well as combined with or integrated into products or components, without any restriction on territory, content or quantity (e.g. regarding user number), both on (also virtual) servers and on clients;
63+
1. offer, demonstrate, sell, lease, otherwise distribute and make publicly or non-publicly available the _Contribution_ or parts thereof to third parties, in any tangible or intangible form, for free or against fees, with or without restrictions, for any commercial or non-commercial purpose, under licensing terms and conditions at _FOSS Co_’s choice, including proprietary license terms and free and open source license terms, including the _FOSS License_;
64+
1. modify, adapt, configure, and create derivatives from the _Contribution_ and any portion thereof, for any commercial or non-commercial purpose, particularly to decompile and disassemble the object code, modify, amend and replace (parts of) the source code, and to compile and assemble the modified or unmodified source code;
65+
1. remove error and defects in and maintain and further develop the _Contribution_ and any portions thereof for any non-commercial or commercial purpose; and
66+
1. otherwise exploit the _Contribution_ and any portion thereof in any known or yet unknown form.
67+
68+
3.2 For patent rights including, without limitation, methods, processes, and apparatus claims which the _Contributor_ owns, controls or has the right to grant, now or in the future, the _Contributor_ irrevocably grants _FOSS Co_ a non-exclusive, perpetual, worldwide, royalty-free, patent license to the extent necessary to exploit the rights and license granted under section 3.1. This patent license particularly includes the right to use, copy and otherwise reproduce, modify, combine, sell, offer for sell, distribute, make publicly available and otherwise exploit the _Contribution_, or parts thereof, in each case either unmodified or modified, without infringing the relevant patents. This section 3.2 also applies to utility model rights.
69+
70+
3.3 If moral rights apply to the _Contribution_, to the maximum extent permitted by applicable law, the _Contributor_ waives and agrees not to assert such moral rights against _FOSS Co_ or any of _FOSS Co_’s licensees. If _FOSS Co_ accepts the _Contribution_ to be used in the _FOSS Project_, and decides to (in addition) exploit the _Contribution_ for commercial purposes, _Contributor_ hereby authorizes _FOSS Co_ to remove copyright notices, license notices, comparable notices, and annotations in the _Contribution_ and add notices at _FOSS Co_’s discretion, but only for these commercial purposes. For the sake of clarity, any and all aforementioned notices of the _Contribution_ to be used within the _FOSS Project_ shall remain unaffected.
71+
72+
3.4 All rights granted to _FOSS Co_ under this _CLA_ include the right to transfer these rights and to grant sublicenses through multiple tiers of sublicensees without any restriction.
73+
74+
3.5 _FOSS Co_ will not make further use of the rights and licenses granted under this section 3, should _FOSS Co_ decide not to accept the _Contribution_ to be used in the _FOSS Project_.
75+
76+
## 4 Confirmations
77+
4.1 By submitting a _Contribution_, the _Contributor_ confirms to _FOSS Co_ that
78+
1. all portions of the _Contribution_ are Contributor’s Original Work of Authorship and therefore neither are the result of a cooperation with third parties (e.g. joint development), nor contain any _Third Party Materials_; and
79+
1. the _Contributor_ owns all copyrights, other intellectual property rights and patent rights required to grant the rights and licenses under section 3.1 to 3.4; and
80+
1. the _Contribution_ and its exploitation does not violate any third party rights, including, where applicable, the rights of the _Contributor_’s employer or the _Contributor_’s employees; and
81+
1. the _Contributor_ has legal authority to enter into this _CLA_, and is of legal age (if applicable).
82+
83+
4.2 If you are signing this _CLA_ on behalf of your employer (_Contributor_), you confirm to _FOSS Co_ your authorization to act on your employer’s behalf.
84+
85+
4.3 The _Contributor_ represents the accuracy of the confirmations under section 4.1 and 4.2 and will without undue delay notify _FOSS Co_ in writing of any circumstances that would make these confirmations inaccurate in any respect.
86+
87+
## 5 Data Protection
88+
5.1 Given that, _Contributor_ is a natural person the following shall apply.
89+
90+
5.2 The controller for the processing of personal data is _FOSS Co_ and can be reached through the contact details above or CLA-[FOSSCo]@mercedes-benz.com. The following has been appointed as Data Protection Officer: Chief Officer Corporate Data Protection, Mercedes-Benz Group AG, HPC E600 70546 Stuttgart, [email protected]. If possible, please enter the details of _FOSS Co_ and topic, which you wish to contact the data protection officer.
91+
92+
5.3 _FOSS Co_ uses the personal data a _Contributor_ provides in this _CLA_ and the personal data linked to the _Contribution_, including contact details and source code, to perform the contract concluded with _Contributor_. This includes also the archiving of the _Contribution_, as _FOSS Co_ has to provide evidence of the Grant of rights under section 3. with regards to the respective _Contribution_. The lawfulness of data processing is derived from Art. 6 (1) b) GDPR.
93+
94+
5.4 Personal data is processed by _FOSS Co_ and service providers acting as maintainer and IT service provider, within data centers in Germany. No transfer to third countries is intended.
95+
96+
5.5 Personal data will be stored for a period of thirty years after the termination of this _CLA_. Non personal data is not affected by this deletion.
97+
98+
5.6 _Contributor_ has the right at any time to obtain information about _Contributor_’s personal data, the right to have it corrected or deleted, the right to limit its processing, and the right to make a complaint to _FOSS Co_ or to a super-visory authority. _Contributor_ is free to exercise the right to data portability. To exercise these rights, please contact _FOSS Co_ at CLA-[FOSSCo]@mercedes-benz.com.
99+
100+
## 6 Governing law and jurisdiction
101+
6.1 The terms of this _CLA_ as well as any rights and claims arising from or in connection with the _CLA_ shall be governed by and construed in accordance with German law. The United Nations Convention on Contracts for the International Sale of Goods (CISG) shall be excluded. The applicability of mandatory consumer legislation of the state in which the _Contributor_ has its habitual place of residence shall remain unaffected.
102+
103+
6.2 In case the _Contributor_ is a merchant (_Kaufmann_) or a legal person under public law, the exclusive venue for any disputes arising from or in connection with this _CLA_ shall be Stuttgart (Mitte), Germany. In such case, _FOSS Co_ shall also be entitled to bring suit at the general venue of the _Contributor_.
104+
105+
## 7 Miscellaneous
106+
7.1 Within the framework of its commercial dealings with _FOSS Co_, the _Contributor_ is obliged to desist from all practices which may lead to penal liability due to fraud or embezzlement, insolvency crimes, crimes in violation of competition, guaranteeing advantages, bribery, acceptance of bribes or other corruption crimes on its own part and on the part of persons employed by the _Contributor_ or other third parties. In the event of violation of the above, _FOSS Co_ has the right to immediately withdraw from or terminate all legal transactions existing with the _Contributor_ and the right to cancel all negotiations. The above notwithstanding, the _Contributor_ is obliged to adhere to all laws and regulations applicable to both itself and the commercial relationship with _FOSS Co_.
107+
108+
7.2 In case of any separate agreement between the _Contributor_ and _FOSS Co_ relating to the subject matter of the _CLA_, the terms of such separate agreement shall apply in addition and prevail, it being understood that _FOSS Co_ shall in any case at least obtain the rights in _Contributions_ agreed in this _CLA_ as a minimum standard. Such separate agreements shall not affect other participants of the _FOSS Project_.
109+
110+
7.3 Any amendments and modifications to the _CLA_ must at a minimum be agreed upon in text form to be binding, including amendments or modifications to this text form requirement.
111+
112+
7.4 If any provision of the _CLA_ should fully or partially be found unenforceable or invalid, the remaining provisions shall remain unaffected and remain in full force. The _Parties_ will in such case agree on a valid and enforceable replacement provision which legally and commercially best reflects what the _Parties_ intended or would have intended considering the spirit and purpose of the _CLA_.
113+
114+
## Signatures
115+
116+
### _Contributor_
117+
118+
Place, Date:
119+
120+
Signature:
121+
122+
Name:
123+
124+
Title:
125+
126+
127+
### _FOSS Co_
128+
129+
Place, Date:
130+
131+
Signature:
132+
133+
Name:
134+
135+
Title:

LICENSE renamed to LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Mercedes-Benz Group
3+
Copyright (c) 2024 MBition GmbH
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)