{
  "question": "Can I use a PyPI package in closed-source software?",
  "slug": "can-i-use-a-pypi-package-in-closed-source-software",
  "url": "https://www.rightshold.com/answers/can-i-use-a-pypi-package-in-closed-source-software",
  "short_answer": "A BSD-3-Clause package, shipped closed-source: Yes. An LGPL-3.0 package, distributed: Yes. A GPL-3.0 package, modified and distributed: Yes.",
  "framing": "It depends on the package's declared license; MIT, BSD and Apache-2.0 are common on PyPI. Pass the project URL as source_url and Rightshold reads it.",
  "checks": [
    {
      "label": "A BSD-3-Clause package, shipped closed-source",
      "license": "BSD-3-Clause",
      "license_name": "BSD 3-Clause \"New\" or \"Revised\" License",
      "intended_use": {
        "commercial_use": true,
        "redistribution": true
      },
      "verdict": "permitted",
      "answer": "Yes",
      "findings": [
        "Every use you described is granted by BSD 3-Clause, and nothing you described is prohibited."
      ],
      "duties": [
        "attribution",
        "license_notice",
        "no_endorsement"
      ],
      "curation": "curated",
      "official_text": "https://opensource.org/license/bsd-3-clause"
    },
    {
      "label": "An LGPL-3.0 package, distributed",
      "license": "LGPL-3.0-only",
      "license_name": "GNU Lesser General Public License v3.0",
      "intended_use": {
        "commercial_use": true,
        "redistribution": true
      },
      "verdict": "permitted",
      "answer": "Yes",
      "findings": [
        "Every use you described is granted by LGPL 3.0, and nothing you described is prohibited."
      ],
      "duties": [
        "attribution",
        "license_notice",
        "share_alike",
        "source_disclosure"
      ],
      "curation": "curated",
      "official_text": "https://www.gnu.org/licenses/lgpl-3.0.html"
    },
    {
      "label": "A GPL-3.0 package, modified and distributed",
      "license": "GPL-3.0-only",
      "license_name": "GNU General Public License v3.0",
      "intended_use": {
        "commercial_use": true,
        "redistribution": true,
        "modification": true
      },
      "verdict": "permitted",
      "answer": "Yes",
      "findings": [
        "Every use you described is granted by GPL 3.0, and nothing you described is prohibited."
      ],
      "duties": [
        "attribution",
        "license_notice",
        "state_changes",
        "share_alike",
        "source_disclosure"
      ],
      "curation": "curated",
      "official_text": "https://www.gnu.org/licenses/gpl-3.0.html"
    }
  ],
  "context": [
    "The declared license is the publisher's claim; check the LICENSE file shipped with the package."
  ],
  "sources": [
    {
      "title": "PyPI core metadata: License-Expression",
      "url": "https://packaging.python.org/en/latest/specifications/core-metadata/#license-expression"
    }
  ],
  "check_it_yourself": {
    "mcp": {
      "tool": "check_license",
      "arguments": {
        "license": "BSD-3-Clause",
        "intended_use": {
          "commercial_use": true,
          "redistribution": true
        }
      }
    },
    "rest": "POST https://www.rightshold.com/v1/licenses/check"
  },
  "computed_from": "Rightshold license profiles at render time; not legal advice",
  "updated": "2026-10-19"
}