-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
570972a
commit 2a9a97b
Showing
27 changed files
with
207 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,6 @@ exclude= | |
build, | ||
doc, | ||
examples, | ||
cppwg/templates, | ||
tests, | ||
docstring-convention=numpy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,33 @@ | ||
from .generators import CppWrapperGenerator | ||
""" | ||
cppwg: an automatic Python wrapper generator for C++ code. | ||
Available subpackages | ||
--------------------- | ||
generators | ||
Contains the main interface for generating Python wrappers. | ||
input | ||
Contains information structures for C++ code to be wrapped. | ||
parsers | ||
Contains parsers for C++ code and input yaml. | ||
templates | ||
Contains string templates for Python wrappers. | ||
utils | ||
Contains utility functions and constants. | ||
writers | ||
Contains writers for creating Python wrappers and writing to file. | ||
Utilities | ||
--------- | ||
__version__ | ||
cppwg version string | ||
""" | ||
|
||
from importlib import metadata | ||
|
||
from cppwg.generators import CppWrapperGenerator | ||
|
||
__all__ = [ | ||
"CppWrapperGenerator", | ||
] | ||
|
||
__version__ = metadata.version("cppwg") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Contains information structures for C++ code to be wrapped.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
"""Class information structure.""" | ||
|
||
from typing import Any, Dict, Optional | ||
|
||
from cppwg.input.cpp_type_info import CppTypeInfo | ||
|
||
|
||
class CppClassInfo(CppTypeInfo): | ||
""" | ||
This class holds information for individual C++ classes to be wrapped | ||
""" | ||
"""An information structure for individual C++ classes to be wrapped.""" | ||
|
||
def __init__(self, name: str, class_config: Optional[Dict[str, Any]] = None): | ||
|
||
super(CppClassInfo, self).__init__(name, class_config) | ||
|
||
@property | ||
def parent(self) -> "ModuleInfo": # noqa: F821 | ||
""" | ||
Returns the parent module info object | ||
""" | ||
"""Returns the parent module info object.""" | ||
return self.module_info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.