pyplusplus.file_writers

Package pyplusplus :: Package file_writers |

# Package file_writers

source code

This package contains few classes, that writes code_creators.module_t to files.

Right now 3 strategies were implemented:

1. All code is written in one file
2. Classic strategy of deviding classes to files: one class in one header + source files.

   2.1 Huge classes are splitten to few source files.

Submodules
pyplusplus.file_writers.balanced_files: defines a class that writes code_creators.module_t to multiple files pyplusplus.file_writers.class_multiple_files: defines a class that writes code_creators.module_t to multiple files, the class also splits huge C++ classes to few source files pyplusplus.file_writers.md5sum_repository: defines interface for repository of generated files hash pyplusplus.file_writers.multiple_files: defines a class that writes code_creators.module_t to multiple files pyplusplus.file_writers.single_file: defines a class that writes code_creators.module_t to single file pyplusplus.file_writers.writer: defines interface for all classes that writes code_creators.module_t to file(s)

Functions
has_pypp_extenstion(fname) returns True if file has Py++ specific extension, otherwise False | source code
write_file(data, file_path, encoding=`'``ascii``'`) writes data to file | source code
write_multiple_files(extmodule, dir_path, files_sum_repository=None, encoding=`'``ascii``'`) writes extmodule to multiple files | source code
write_balanced_files(extmodule, dir_path, number_of_buckets, files_sum_repository=None, encoding=`'``ascii``'`) writes extmodule to fixed number of multiple cpp files | source code
write_class_multiple_files(extmodule, dir_path, huge_classes, files_sum_repository, encoding=`'``ascii``'`) writes extmodule to multiple files and splits huge classes to few source files | source code