Module src.jsonid.version
jsonid version information.
Functions
def get_agent()-
Expand source code
def get_agent(): """Return an agent string for tooling that benefits from having a user-agent output. """ jsonid_version = get_version() return f"jsonid/{jsonid_version} (ffdev-info)"Return an agent string for tooling that benefits from having a user-agent output.
def get_version()-
Expand source code
def get_version(): """Return information about the version of this application. If it returns 0.0.0 then the user is to assume this is a development version. Otherwise the version must be driven by the source control management through appropriate tagging. """ __version__ = "0.0.0" try: __version__ = version("jsonid") except PackageNotFoundError: # package is not installed pass return __version__Return information about the version of this application. If it returns 0.0.0 then the user is to assume this is a development version. Otherwise the version must be driven by the source control management through appropriate tagging.