cppstream-0.1.0
توضیحات
C++-style IO with streams
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cppstream-0.1.0 |
| نام | cppstream |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | mrlegohead0x45 |
| ایمیل نویسنده | mrlegohead0x45@gmail.com |
| آدرس صفحه اصلی | https://github.com/mrlegohead0x45/cppstream |
| آدرس اینترنتی | https://pypi.org/project/cppstream/ |
| مجوز | MIT |
cppstream
---------
This is a library that implements C++-style IO with streams in Python.
It is **not** a wrapper around the actual C++ streams, but instead provides a
higher-level interface that is more Pythonic.
For example
.. code:: cpp
#include <iostream>
#include <fstream>
std::cout << "Hello, " << "World!" << std::endl;
std::ofstream ostrm("test.txt");
ostrm << "Hello, World!" << std::endl;
translates to
.. code:: python
import cppstream
cppstream.cout << "Hello, " << "World!" << cppstream.endl
ostrm = cppstream.OutFileStream()
# or using the context manager
with cppstream.OutFileStream() as ofs:
ofs.open("test.txt")
ofs << "beans" << cppstream.endl
See the inheritance diagram:
.. image:: streams.png
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10,<4.0 | Python |
نحوه نصب
نصب پکیج whl cppstream-0.1.0:
pip install cppstream-0.1.0.whl
نصب پکیج tar.gz cppstream-0.1.0:
pip install cppstream-0.1.0.tar.gz