Main Interface
imports for doppel. Use __all__
to add things
to the API Reference in the docs in docs/
.
- class doppel.PackageAPI(pkg_dict)
Package API class
This class is used to hold the interface of a given package being analyzed by doppel. It’s comparison operators enable comparison between interfaces and its standard JSON format allows this comparison to happen across programming languages.
- class_names()
Get a list with the names of all exported classes in the package.
- classmethod from_json(filename)
Instantiate a Package object from a file.
- Parameters:
filename (
str
) – Name of the JSON file that contains the description of the target package’s API.- Return type:
- function_names()
Get a list with the names of all exported functions in the package.
- functions_with_args()
Get a dictionary with all exported functions in the package and some details describing them.
- public_method_args(class_name, method_name)
Get a list of arguments for a public method from a class.
- class doppel.PackageCollection(packages)
Create a collection of multiple
PackageAPI
objects. This class contains access methods so you don’t have to keep doingfor package in packages
over a collection ofPackageAPI
instances.- all_classes()
List of all classes that exist in at least one of the packages.
- all_functions()
List of all functions that exist in at least one of the packages.