boostnode
v1.0.26
Published
a high reliable python library
Downloads
1,076
Readme
Project status
Use case
boostNode is a high level python library. This library supports python2.7+ and python3.4+ environments. And will always try to use every new cutting edge python features! The main goal of boostNode is to support all typical use cases for applications in a full generic, reusable and very solid way.
Content
[TOC]
Features
Usage
Copy this folder to your projects directory and write something like:
#!/usr/bin/env python
from boostNode.extension.file import Handler as FileHandler
from boostNode.extension.native import Dictionary, Module, \
PropertyInitializer, String
from boostNode.extension.output import Buffer, Print
from boostNode.extension.system import CommandLine, Runnable
## python3.4 from boostNode.extension.type import Self, SelfClass
pass
from boostNode.paradigm.aspectOrientation import JointPoint
from boostNode.paradigm.objectOrientation import Class
# some stuff using imported boostNode components...
For advanced usage see the recommended module pattern described in "boosNode/__init__.py".
boostNode is able to switch itself between python2.X and python3.X. To switch boostNode version between python3.X and python 2.X use this command:
>>> /path/to/boostNode/runnable/macro.py -p /path/to/boostNode -e py
Note that you have to temporary support the needed python environment of given boostNode version to convert to the other one. Writing own code supporting two different interpreter version is very easy. Follow one of the two following syntax examples:
#!/usr/bin/env interpreterA
## interpreterB
## if True || False do {
## something();
## }
# Your multiline code supported by interpreterA
if True or False do
something()
endif
##
# Your two version of any one line code supportted by interpreterA or
# interpreterB
## interpreterB functionCall();
functionCall()
Have Fun with boostNode!
Copyright
see header in ./__init__.py
License
see header in ./__init__.py