https://github.com/torokmark/builders_in_python
Repo of blog post.
https://github.com/torokmark/builders_in_python
Last synced: about 1 month ago
JSON representation
Repo of blog post.
- Host: GitHub
- URL: https://github.com/torokmark/builders_in_python
- Owner: torokmark
- License: mit
- Created: 2019-01-04T10:56:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-08T21:22:33.000Z (over 7 years ago)
- Last Synced: 2025-01-28T18:30:55.691Z (over 1 year ago)
- Language: Python
- Homepage: https://torokmark.github.io/2019/01/08/builders-in-python.html
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Builders in Python
Demo repo to the builder post (https://torokmark.github.io/2019/01/08/builders-in-python.html)
# Usage of multibuilder
```python
print(ResponseBuilder()
.header()
.add('Access-Control-Allow-Origin', '*')
.add('Accept', '*')
.body()
.add('body', json.dumps('hello', default=str))
.status(204))
```