buildstr-0.1.0
توضیحات
Fancy Pythonic String Builder.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | buildstr-0.1.0 |
| نام | buildstr |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Abilian SAS |
| ایمیل نویسنده | sf@abilian.com |
| آدرس صفحه اصلی | https://github.com/abilian/buildstr |
| آدرس اینترنتی | https://pypi.org/project/buildstr/ |
| مجوز | - |
# Fancy Pythonic String Builder
[](https://pypi.python.org/pypi/buildstr)
[](https://travis-ci.com/sfermigier/buildstr)
[](https://str-builder.readthedocs.io/en/latest/?version=latest)
- Free software: Apache Software License 2.0
<!-- - Documentation: <https://str-builder.readthedocs.io>. -->
## Features
- Builds strings in a pythonic way.
- We're using the `with` statement to build substrings.
- Python code can be interleaved with the string building.
Useful for generating code.
## Example
```python
from buildstr import Builder
b = Builder("A")
b << "B"
with b(surround=("{ ", " }"), separator="; ") as b1:
b1 << ["a", "b", "c"]
assert b.build() == "A B { a; b; c }"
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9,<4.0 | Python |
نحوه نصب
نصب پکیج whl buildstr-0.1.0:
pip install buildstr-0.1.0.whl
نصب پکیج tar.gz buildstr-0.1.0:
pip install buildstr-0.1.0.tar.gz