Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
pantsbuild.pants / backend / codegen / thrift / python / python_thrift_library.py
Size: Mime:
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

from pants.backend.python.targets.python_target import PythonTarget


class PythonThriftLibrary(PythonTarget):
    """A Python library generated from Thrift IDL files.

    :API: public
    """

    def __init__(self, **kwargs):
        """
        :param sources: thrift source files (If more than one tries to use the same
          namespace, beware https://issues.apache.org/jira/browse/THRIFT-515)
        :type sources: ``Fileset`` or list of strings. Paths are relative to the
          BUILD file's directory.
        :param resources: non-Python resources, e.g. templates, keys, other data (it is
          recommended that your application uses the pkgutil package to access these
          resources in a .zip-module friendly way.)
        """

        super().__init__(**kwargs)