dowell-license-compatibility


Namedowell-license-compatibility JSON
Version 0.0.1 PyPI version JSON
download
home_page
SummaryOpen Source Licence Compatibility Check Package
upload_time2023-07-11 06:33:28
maintainer
docs_urlNone
authorMarvin Okwaro
requires_python
license
keywords python license open source compatibility
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## DOWELL LICENCE COMPATIBILITY CHECK PACKAGE



This package consumes the Open Source License Compatibility check API, which provides access to a wide range of legal information and resources. It allows developers to retrieve information about software licenses, legal documents, legal entities, check license compatibility, and more. The API aims to facilitate the integration of legal information into applications, websites, or other software systems.





## Example Usage

 ### creating a licence



`from compatibility import Compatibility`



`Compatibility.create_licence(data)`





### Methods



#### `create_licence(data)`



Create a new licence



- `data`: The json data with format as shown:

            ```json

            {

            "license_name": "Test & Sample Update",

            "license_tags": [],

            "version": "No Version",

            "type_of_license": "PERMISSIVE",

            "short_description": "You can copy,modify and distribute this license as long as you fulfill license requirements.",

            "description": "The SFL (Standard Function Library) from iMatix is a portable function library for C/C++ programs.The SFL is written in ANSI C and has been ported to MS-DOS, Windows, OS/2, Linux and other UNIX systems and Digital OpenVMS. It comes with complete sources and documentation in HTML. The SFL is free software that you may use and distribute for private or commercial purposes according to license agreement.",

            "disclaimer": "Copyright © 1991-2000 iMatix Corporation.",

            "risk_for_choosing_license": "This license places a lot of conditions on use and distribution of it.",

            "limitation_of_liability": "In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.",

            "license_url": "https://spdx.org/licenses/iMatix.html",

            "logo_detail": {

                "filename": "img_02c8ccb5-3ffb-4737-83db-effb3da529ed.png",

                "actual_filename": "Logo.png",

                "file_extension": "png",

                "url": "https://100080.pythonanywhere.com/media/img/img_02c8ccb5-3ffb-4737-83db-effb3da529ed.png"

            },

            "recommendation": "",

            "is_active": true,

            "permissions": [

                {

                    "action": "Patent Use",

                    "permission": "No",

                    "has_other_condition": false

                },

                {

                    "action": "Patent Grant",

                    "permission": "No",

                    "has_other_condition": false

                }

            ],

            "conditions": [

                {

                    "action": "Disclose Source Code",

                    "permission": "No",

                    "has_other_condition": false

                },

                {

                    "action": "Network Use is for Distribution",

                    "permission": "No",

                    "has_other_condition": false

                },

                {

                    "action": "Release Under Same License",

                    "permission": "Yes",

                    "has_other_condition": false

                },

                {

                    "action": "State Changes",

                    "permission": "Yes",

                    "has_other_condition": false

                },

                {

                    "action": "Code can be used in closed source project",

                    "permission": "No",

                    "has_other_condition": false

                },

                {

                    "action": "Copied",

                    "permission": "Yes",

                    "has_other_condition": false

                },

                {

                    "action": "Distributed",

                    "permission": "Yes",

                    "has_other_condition": true

                },

                {

                    "action": "Reproduced",

                    "permission": "Yes",

                    "has_other_condition": false

                },

                {

                    "action": "Modified",

                    "permission": "Yes",

                    "has_other_condition": true

                },

                {

                    "action": "Commercial Used",

                    "permission": "Yes",

                    "has_other_condition": false

                }

            ],

            "limitations": [

                {

                    "action": "Liability",

                    "permission": "No",

                    "has_other_condition": false

                },

                {

                    "action": "Warranty",

                    "permission": "No",

                    "has_other_condition": false

                },

                {

                    "action": "Trademark use",

                    "permission": "No",

                    "has_other_condition": false

                },

                {

                    "action": "Redistribution",

                    "permission": "Yes",

                    "has_other_condition": true

                }

            ],

            "references": [],

            "laws": "Not Fixed",

            "sources": [

                {

                    "action": "FSF Approved",

                    "permission": "Yes"

                },

                {

                    "action": "OSI Approved",

                    "permission": "No"

                }

            ],

            "must_includes": [

                {

                    "action": "License",

                    "permission": "Yes"

                },

                {

                    "action": "Copyright Notice",

                    "permission": "Yes"

                }

            ]

        }



            ```



- Returns: Response returns the created licence in json format, with a status message set to True if succesful.



#### `retrieve_licence(id=None)`



Retrieve a Licence by ID(optional).



- `id(optional)`: The licence id for the particular licence being retrieved.

- Returns: If ID is not specified, it retrieves all licenses. Otherwise it retrieves the Licence with teh specified ID



#### `update_licence(id, data)`



Update a Licence by ID.



- `id`: The id of the licence to be updated.

- `data`: The json data with format as shown in `json_sample.json`

- Returns: Response returns a json of the updated licence.



#### `delete_licence(id)`



Delete a licence by ID.



- `id`: The id of the licence to be deleted.

- Returns: Response an event_id of the deleted licence and a status of success if deleted.



#### `search_licence(term)`



Search for a type of licence



- `term`: The is the type of licence to be searched, e.g mit.

- Returns: Response returns a json containing a list of the type of licence searched



#### `check_licence_compatibility(license_event_id_one,license_event_id_two, user_id, organization_id)`



Checks how compatible two licences are



- `license_event_id_one`: The id of the first licence's event_id

- `license_event_id_two`: The id of the second licence's event_id

- `user_id`: The user's ID

- `organization_id`: the organization's ID

- Returns: Response returns a json that contains percentage_of_compatibility, along with other related comparison information of the two licences



#### `comparison_history(organization_id, user_id)`



Retrieves the comparison history



- `organization_id`: the organization's ID

- `user_id`: The user's ID

- Returns: Response returns a json that contains a history of the comparisons done by the organization and the user


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "dowell-license-compatibility",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,License,Open Source,Compatibility",
    "author": "Marvin Okwaro",
    "author_email": "<marvin.wekesa@gmal.com>",
    "download_url": "https://files.pythonhosted.org/packages/ee/4e/30618eb0e040b6eafa0e8b7846951fef0df76cb1c4eeb44b6584cf16d7b4/dowell-license-compatibility-0.0.1.tar.gz",
    "platform": null,
    "description": "## DOWELL LICENCE COMPATIBILITY CHECK PACKAGE\r\n\r\n\r\n\r\nThis package consumes the Open Source License Compatibility check API, which provides access to a wide range of legal information and resources. It allows developers to retrieve information about software licenses, legal documents, legal entities, check license compatibility, and more. The API aims to facilitate the integration of legal information into applications, websites, or other software systems.\r\n\r\n\r\n\r\n\r\n\r\n## Example Usage\r\n\r\n ### creating a licence\r\n\r\n\r\n\r\n`from compatibility import Compatibility`\r\n\r\n\r\n\r\n`Compatibility.create_licence(data)`\r\n\r\n\r\n\r\n\r\n\r\n### Methods\r\n\r\n\r\n\r\n#### `create_licence(data)`\r\n\r\n\r\n\r\nCreate a new licence\r\n\r\n\r\n\r\n- `data`: The json data with format as shown:\r\n\r\n            ```json\r\n\r\n            {\r\n\r\n            \"license_name\": \"Test & Sample Update\",\r\n\r\n            \"license_tags\": [],\r\n\r\n            \"version\": \"No Version\",\r\n\r\n            \"type_of_license\": \"PERMISSIVE\",\r\n\r\n            \"short_description\": \"You can copy,modify and distribute this license as long as you fulfill license requirements.\",\r\n\r\n            \"description\": \"The SFL (Standard Function Library) from iMatix is a portable function library for C/C++ programs.The SFL is written in ANSI C and has been ported to MS-DOS, Windows, OS/2, Linux and other UNIX systems and Digital OpenVMS. It comes with complete sources and documentation in HTML. The SFL is free software that you may use and distribute for private or commercial purposes according to license agreement.\",\r\n\r\n            \"disclaimer\": \"Copyright \u00a9 1991-2000 iMatix Corporation.\",\r\n\r\n            \"risk_for_choosing_license\": \"This license places a lot of conditions on use and distribution of it.\",\r\n\r\n            \"limitation_of_liability\": \"In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\",\r\n\r\n            \"license_url\": \"https://spdx.org/licenses/iMatix.html\",\r\n\r\n            \"logo_detail\": {\r\n\r\n                \"filename\": \"img_02c8ccb5-3ffb-4737-83db-effb3da529ed.png\",\r\n\r\n                \"actual_filename\": \"Logo.png\",\r\n\r\n                \"file_extension\": \"png\",\r\n\r\n                \"url\": \"https://100080.pythonanywhere.com/media/img/img_02c8ccb5-3ffb-4737-83db-effb3da529ed.png\"\r\n\r\n            },\r\n\r\n            \"recommendation\": \"\",\r\n\r\n            \"is_active\": true,\r\n\r\n            \"permissions\": [\r\n\r\n                {\r\n\r\n                    \"action\": \"Patent Use\",\r\n\r\n                    \"permission\": \"No\",\r\n\r\n                    \"has_other_condition\": false\r\n\r\n                },\r\n\r\n                {\r\n\r\n                    \"action\": \"Patent Grant\",\r\n\r\n                    \"permission\": \"No\",\r\n\r\n                    \"has_other_condition\": false\r\n\r\n                }\r\n\r\n            ],\r\n\r\n            \"conditions\": [\r\n\r\n                {\r\n\r\n                    \"action\": \"Disclose Source Code\",\r\n\r\n                    \"permission\": \"No\",\r\n\r\n                    \"has_other_condition\": false\r\n\r\n                },\r\n\r\n                {\r\n\r\n                    \"action\": \"Network Use is for Distribution\",\r\n\r\n                    \"permission\": \"No\",\r\n\r\n                    \"has_other_condition\": false\r\n\r\n                },\r\n\r\n                {\r\n\r\n                    \"action\": \"Release Under Same License\",\r\n\r\n                    \"permission\": \"Yes\",\r\n\r\n                    \"has_other_condition\": false\r\n\r\n                },\r\n\r\n                {\r\n\r\n                    \"action\": \"State Changes\",\r\n\r\n                    \"permission\": \"Yes\",\r\n\r\n                    \"has_other_condition\": false\r\n\r\n                },\r\n\r\n                {\r\n\r\n                    \"action\": \"Code can be used in closed source project\",\r\n\r\n                    \"permission\": \"No\",\r\n\r\n                    \"has_other_condition\": false\r\n\r\n                },\r\n\r\n                {\r\n\r\n                    \"action\": \"Copied\",\r\n\r\n                    \"permission\": \"Yes\",\r\n\r\n                    \"has_other_condition\": false\r\n\r\n                },\r\n\r\n                {\r\n\r\n                    \"action\": \"Distributed\",\r\n\r\n                    \"permission\": \"Yes\",\r\n\r\n                    \"has_other_condition\": true\r\n\r\n                },\r\n\r\n                {\r\n\r\n                    \"action\": \"Reproduced\",\r\n\r\n                    \"permission\": \"Yes\",\r\n\r\n                    \"has_other_condition\": false\r\n\r\n                },\r\n\r\n                {\r\n\r\n                    \"action\": \"Modified\",\r\n\r\n                    \"permission\": \"Yes\",\r\n\r\n                    \"has_other_condition\": true\r\n\r\n                },\r\n\r\n                {\r\n\r\n                    \"action\": \"Commercial Used\",\r\n\r\n                    \"permission\": \"Yes\",\r\n\r\n                    \"has_other_condition\": false\r\n\r\n                }\r\n\r\n            ],\r\n\r\n            \"limitations\": [\r\n\r\n                {\r\n\r\n                    \"action\": \"Liability\",\r\n\r\n                    \"permission\": \"No\",\r\n\r\n                    \"has_other_condition\": false\r\n\r\n                },\r\n\r\n                {\r\n\r\n                    \"action\": \"Warranty\",\r\n\r\n                    \"permission\": \"No\",\r\n\r\n                    \"has_other_condition\": false\r\n\r\n                },\r\n\r\n                {\r\n\r\n                    \"action\": \"Trademark use\",\r\n\r\n                    \"permission\": \"No\",\r\n\r\n                    \"has_other_condition\": false\r\n\r\n                },\r\n\r\n                {\r\n\r\n                    \"action\": \"Redistribution\",\r\n\r\n                    \"permission\": \"Yes\",\r\n\r\n                    \"has_other_condition\": true\r\n\r\n                }\r\n\r\n            ],\r\n\r\n            \"references\": [],\r\n\r\n            \"laws\": \"Not Fixed\",\r\n\r\n            \"sources\": [\r\n\r\n                {\r\n\r\n                    \"action\": \"FSF Approved\",\r\n\r\n                    \"permission\": \"Yes\"\r\n\r\n                },\r\n\r\n                {\r\n\r\n                    \"action\": \"OSI Approved\",\r\n\r\n                    \"permission\": \"No\"\r\n\r\n                }\r\n\r\n            ],\r\n\r\n            \"must_includes\": [\r\n\r\n                {\r\n\r\n                    \"action\": \"License\",\r\n\r\n                    \"permission\": \"Yes\"\r\n\r\n                },\r\n\r\n                {\r\n\r\n                    \"action\": \"Copyright Notice\",\r\n\r\n                    \"permission\": \"Yes\"\r\n\r\n                }\r\n\r\n            ]\r\n\r\n        }\r\n\r\n\r\n\r\n            ```\r\n\r\n\r\n\r\n- Returns: Response returns the created licence in json format, with a status message set to True if succesful.\r\n\r\n\r\n\r\n#### `retrieve_licence(id=None)`\r\n\r\n\r\n\r\nRetrieve a Licence by ID(optional).\r\n\r\n\r\n\r\n- `id(optional)`: The licence id for the particular licence being retrieved.\r\n\r\n- Returns: If ID is not specified, it retrieves all licenses. Otherwise it retrieves the Licence with teh specified ID\r\n\r\n\r\n\r\n#### `update_licence(id, data)`\r\n\r\n\r\n\r\nUpdate a Licence by ID.\r\n\r\n\r\n\r\n- `id`: The id of the licence to be updated.\r\n\r\n- `data`: The json data with format as shown in `json_sample.json`\r\n\r\n- Returns: Response returns a json of the updated licence.\r\n\r\n\r\n\r\n#### `delete_licence(id)`\r\n\r\n\r\n\r\nDelete a licence by ID.\r\n\r\n\r\n\r\n- `id`: The id of the licence to be deleted.\r\n\r\n- Returns: Response an event_id of the deleted licence and a status of success if deleted.\r\n\r\n\r\n\r\n#### `search_licence(term)`\r\n\r\n\r\n\r\nSearch for a type of licence\r\n\r\n\r\n\r\n- `term`: The is the type of licence to be searched, e.g mit.\r\n\r\n- Returns: Response returns a json containing a list of the type of licence searched\r\n\r\n\r\n\r\n#### `check_licence_compatibility(license_event_id_one,license_event_id_two, user_id, organization_id)`\r\n\r\n\r\n\r\nChecks how compatible two licences are\r\n\r\n\r\n\r\n- `license_event_id_one`: The id of the first licence's event_id\r\n\r\n- `license_event_id_two`: The id of the second licence's event_id\r\n\r\n- `user_id`: The user's ID\r\n\r\n- `organization_id`: the organization's ID\r\n\r\n- Returns: Response returns a json that contains percentage_of_compatibility, along with other related comparison information of the two licences\r\n\r\n\r\n\r\n#### `comparison_history(organization_id, user_id)`\r\n\r\n\r\n\r\nRetrieves the comparison history\r\n\r\n\r\n\r\n- `organization_id`: the organization's ID\r\n\r\n- `user_id`: The user's ID\r\n\r\n- Returns: Response returns a json that contains a history of the comparisons done by the organization and the user\r\n\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Open Source Licence Compatibility Check Package",
    "version": "0.0.1",
    "project_urls": null,
    "split_keywords": [
        "python",
        "license",
        "open source",
        "compatibility"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "019a2b587b8c65b38a9f925eeac658f6575b99c2674add2cfa64843faf167ca9",
                "md5": "b8426d1e72a0ea9df7592f26b0389366",
                "sha256": "0e2021b5639684125a179e375affc19b078f37a0c9818528a09b093605e816b8"
            },
            "downloads": -1,
            "filename": "dowell_license_compatibility-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b8426d1e72a0ea9df7592f26b0389366",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 9572,
            "upload_time": "2023-07-11T06:33:26",
            "upload_time_iso_8601": "2023-07-11T06:33:26.219286Z",
            "url": "https://files.pythonhosted.org/packages/01/9a/2b587b8c65b38a9f925eeac658f6575b99c2674add2cfa64843faf167ca9/dowell_license_compatibility-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ee4e30618eb0e040b6eafa0e8b7846951fef0df76cb1c4eeb44b6584cf16d7b4",
                "md5": "25c24cee054600d1d59c161ac471e196",
                "sha256": "b5dcddc2c2ac335e84ee8eaa3077ab344a18e2b63a0088f21e7d9303509f7cf4"
            },
            "downloads": -1,
            "filename": "dowell-license-compatibility-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "25c24cee054600d1d59c161ac471e196",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 9279,
            "upload_time": "2023-07-11T06:33:28",
            "upload_time_iso_8601": "2023-07-11T06:33:28.261185Z",
            "url": "https://files.pythonhosted.org/packages/ee/4e/30618eb0e040b6eafa0e8b7846951fef0df76cb1c4eeb44b6584cf16d7b4/dowell-license-compatibility-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-11 06:33:28",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "dowell-license-compatibility"
}
        
Elapsed time: 0.09629s