Source code for pyvcad._license

"""The license notice of this OpenVCAD installation.

Read it with ``license()``, the same way ``version()`` reports the version.
"""

#: The notice returned by :func:`license`. Licensed builds replace this one line when they are
#: packaged, so keep it a single ``LICENSE_NOTICE = "..."`` assignment.
LICENSE_NOTICE = "Licensed for non-commercial use"


[docs] def license(): """Return the license notice of this OpenVCAD installation. Returns: str: The notice, e.g. ``"Licensed for non-commercial use"``. Example: >>> import pyvcad as pv >>> pv.license() 'Licensed for non-commercial use' """ return LICENSE_NOTICE