2

Open Source licences are hard to read and understand for non-native English speakers because it sounds more like a constitutional text (at least I'm having problems to understand them and that's why I am asking this question). That makes it hard to choose a license for a piece of code I developed.

Suppose that I have developed some code (let's call it magic-code) and I want to make it open source with some limitations:

Usage limitations:

  • Any software that uses magic-code must state that it uses magic-code.
  • Any software that uses magic-code must state where it is obtained from (GitHub repo, package manager etc.).
  • Any software that uses magic-code must state the author of magic-code (by either GitHub account or email address specified in magic-code code).

An example statement for a software that confirms to usage limitations:

This software uses magic-code developed by https://github.com/ramazanpolat and obtained from https://github.com/ramazanpolat/magiccode

Modification limitations:

  • Any modification made to magic-code source code must be available publicly as it must include the whole code (modified and non-modified).
  • The publicly available modified code is also subject to Usage limitations.

Is there any existing Open Source licence that covers these limitaions?

unor
  • 5,620
  • 24
  • 55
ramazan polat
  • 123
  • 1
  • 4

1 Answers1

4

There are two different licensed I can think of:

Any software that uses magic-code must state that it uses magic-code

I would say that even MIT falls under this: You need to include the license with, quoting:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.


Any software that uses magic-code must state where it is obtained from (github repo, package manager etc.)

AGPL/GPL and other share-alike licenses like CC-BY-SA - these require to provide the source code. Where it is provided from is not really included: The place of development may change, can be on your local computer, ... . If you include it in the header of the MIT license with a link, this will be copied with the software.

is obtained

is a passive formulation. You want the user to know where this one copy is stored? Or where it is developed? Whether it is in the cache?


Any software that uses magic-code must state the author of magic-code (by either github account or email address specified in magic-code code)

You can use the Creative-Commons licenses and specify links and name and what you like to have included in the license notice. https://creativecommons.org/choose/


Does this provice an overview? Maybe you are satisfied with AGPL or CC-BY-SA.

User
  • 332
  • 1
  • 8