autowrap.pynih.wrap

Wrapping functionality for D to Python.

Members

Functions

createPythonModuleMixin
string createPythonModuleMixin()
Undocumented in source. Be warned that the author may not have intended to support it.
toSnakeCase
string toSnakeCase(string str)
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
struct LibraryName

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

Module (from autowrap.reflection)
struct Module via public import autowrap.reflection : Modules, Module;

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.reflection)
struct Modules via public import autowrap.reflection : Modules, Module;

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

PostModuleInitCode
struct PostModuleInitCode

Code to be inserted after the call to module_init

PreModuleInitCode
struct PreModuleInitCode

Code to be inserted before the call to module_init

Meta