autowrap.pynih.wrap

Wrapping functionality for D to Python.

Members

Functions

createPythonModule
auto createPythonModule()
Undocumented in source. Be warned that the author may not have intended to support it.
createPythonModuleMixin
string createPythonModuleMixin()
Undocumented in source. Be warned that the author may not have intended to support it.
wrapDlang
string wrapDlang()

Returns a string to mixin that implements the necessary boilerplate to create a Python library containing one Python module wrapping all relevant D code and data structures.

Imports

No (from std.typecons)
public import std.typecons : Yes, No;
Undocumented in source.
Yes (from std.typecons)
public import std.typecons : Yes, No;
Undocumented in source.

Mixin templates

createPythonModule
mixintemplate createPythonModule(python.boilerplate.Module module_, alias cfunctions, alias aggregates)
Undocumented in source.
createPythonModule
mixintemplate createPythonModule(python.boilerplate.Module module_, alias cfunctions, alias aggregates)
Undocumented in source.

Structs

LibraryName (from autowrap.types)
struct LibraryName via public import autowrap.types : Modules, Module, isModule, LibraryName, PreModuleInitCode, PostModuleInitCode, RootNamespace;

The name of the dynamic library, i.e. the file name with the .so/.dll extension

Module (from autowrap.types)
struct Module via public import autowrap.types : Modules, Module, isModule, LibraryName, PreModuleInitCode, PostModuleInitCode, RootNamespace;

A module to automatically wrap. Usually not needed since a string will do, but is useful when trying to export all functions from a module by using Module("mymodule", Yes.alwaysExport) instead of "mymodule"

Modules (from autowrap.types)
struct Modules via public import autowrap.types : Modules, Module, isModule, LibraryName, PreModuleInitCode, PostModuleInitCode, RootNamespace;

The list of modules to automatically wrap for consumption by other languages.

PostModuleInitCode (from autowrap.types)
struct PostModuleInitCode via public import autowrap.types : Modules, Module, isModule, LibraryName, PreModuleInitCode, PostModuleInitCode, RootNamespace;

Code to be inserted after the call to module_init

PreModuleInitCode (from autowrap.types)
struct PreModuleInitCode via public import autowrap.types : Modules, Module, isModule, LibraryName, PreModuleInitCode, PostModuleInitCode, RootNamespace;

Code to be inserted before the call to module_init

RootNamespace (from autowrap.types)
struct RootNamespace via public import autowrap.types : Modules, Module, isModule, LibraryName, PreModuleInitCode, PostModuleInitCode, RootNamespace;
Undocumented in source.

Templates

isModule (from autowrap.types)
template isModule(alias T) via public import autowrap.types : Modules, Module, isModule, LibraryName, PreModuleInitCode, PostModuleInitCode, RootNamespace;
Undocumented in source.

Meta