Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyiostream

A C++ approach to I/O in Python with OStream << and manipulators << endl;

Quick Overview:

from pyiostream import OStream, endl, Hex

cout = OStream()

cout << "Hello World!" << endl;
cout << "1+1 = " << 1+1 << endl;
cout << "hex(1+1) = " << Hex << 1+1 << "\n" << endl;

Installation

The Wizard pip will guide you through the package installation process.

Run pip install . inside the same folder containing the setup.cfg file.

Note:

Main goal of the project now is to implement basic IOStream like functionality with basic manipulators. Custom IOManipulators can be made, however, the implementation with OStream will likely change; So only use predefined IOManipulators to avoid breaking.

Future goals/ ideas:

  • Implementing float and integer conversion using decimal.Decimal -- where the default output is to "Round as taught in school", and convert floats to Decimal automatically by Decimal(str(some_float)),
  • Support basic terminal output control sequences for changing color, moving cursor, etc. + in addition, supporting cross-platform functionality with Windows Console host (cmd.exe) native api.

About

A C++ approach to I/O in Python with OStream << and manipulators << endl;

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages