diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-15 07:17:54 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 07:17:54 +0000 |
| commit | bea6e1b868c359eead47e9ece697df539e8807e2 (patch) | |
| tree | 656aa67f9c948162ae705eade65dae6774581705 | |
| parent | d7c48359e1fd8feed153cef01bb6ed33194fafda (diff) | |
automatic import of python-bamboo-core
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-bamboo-core.spec | 249 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 251 insertions, 0 deletions
@@ -0,0 +1 @@ +/bamboo-core-0.10.5.tar.gz diff --git a/python-bamboo-core.spec b/python-bamboo-core.spec new file mode 100644 index 0000000..9eb6c15 --- /dev/null +++ b/python-bamboo-core.spec @@ -0,0 +1,249 @@ +%global _empty_manifest_terminate_build 0 +Name: python-bamboo-core +Version: 0.10.5 +Release: 1 +Summary: General purpose server framework in Python +License: MIT +URL: https://jjj999.github.io/bamboo +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ed/37/bc4768b7aaf62b583e8063c054590ad6038dd346ee7bf5196efc5f631f9d/bamboo-core-0.10.5.tar.gz +BuildArch: noarch + + +%description +# bamboo + +[](https://jjj999.github.io/bamboo/) +[](http://badge.fury.io/py/bamboo-core) +[](https://pypi.python.org/pypi/bamboo-core/) +[](https://jjj999.github.io/bamboo) + +## Supported Interfaces + +- WSGI +- ASGI v3.0 (HTTP, WebSocket and Lifespan) + +## Installing + +* Python: >= 3.7 + +``` +python -m pip install bamboo-core +``` + +## [Usage](https://jjj999.github.io/bamboo/tutorials/concept/) + +以下は簡単な実装例です. + +```python +from bamboo import WSGIApp, WSGIEndpoint, WSGITestExecutor + +app = WSGIApp() + +@app.route("hello") +class MockEndpoint(WSGIEndpoint): + + def do_GET(self) -> None: + self.send_body(b"Hello, World!") + +if __name__ == "__main__": + WSGITestExecutor.debug(app) +``` + +上記スクリプトを実行後,ブラウザで http://localhost:8000/hello にアクセスするとレスポンスを確認できます. + +## API documentation + +API ドキュメントは[こちら](https://jjj999.github.io/bamboo/api/bamboo/pkg/). + +## Examples + +### [upsidedown](https://github.com/jjj999/bamboo/tree/main/examples/upsidedown) + +リクエストされた文字列を逆順に反転させて返すアプリケーションです. + +### [image_traffic](https://github.com/jjj999/bamboo/tree/main/examples/image_traffic) + +アクセスに対して静的な画像を返すアプリケーションです. + +### [tweets](https://github.com/jjj999/bamboo/tree/main/examples/tweets) + +CLI ベースの簡易的な Twitter のような投稿アプリです.認証機能は実装されていません. + + + +%package -n python3-bamboo-core +Summary: General purpose server framework in Python +Provides: python-bamboo-core +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-bamboo-core +# bamboo + +[](https://jjj999.github.io/bamboo/) +[](http://badge.fury.io/py/bamboo-core) +[](https://pypi.python.org/pypi/bamboo-core/) +[](https://jjj999.github.io/bamboo) + +## Supported Interfaces + +- WSGI +- ASGI v3.0 (HTTP, WebSocket and Lifespan) + +## Installing + +* Python: >= 3.7 + +``` +python -m pip install bamboo-core +``` + +## [Usage](https://jjj999.github.io/bamboo/tutorials/concept/) + +以下は簡単な実装例です. + +```python +from bamboo import WSGIApp, WSGIEndpoint, WSGITestExecutor + +app = WSGIApp() + +@app.route("hello") +class MockEndpoint(WSGIEndpoint): + + def do_GET(self) -> None: + self.send_body(b"Hello, World!") + +if __name__ == "__main__": + WSGITestExecutor.debug(app) +``` + +上記スクリプトを実行後,ブラウザで http://localhost:8000/hello にアクセスするとレスポンスを確認できます. + +## API documentation + +API ドキュメントは[こちら](https://jjj999.github.io/bamboo/api/bamboo/pkg/). + +## Examples + +### [upsidedown](https://github.com/jjj999/bamboo/tree/main/examples/upsidedown) + +リクエストされた文字列を逆順に反転させて返すアプリケーションです. + +### [image_traffic](https://github.com/jjj999/bamboo/tree/main/examples/image_traffic) + +アクセスに対して静的な画像を返すアプリケーションです. + +### [tweets](https://github.com/jjj999/bamboo/tree/main/examples/tweets) + +CLI ベースの簡易的な Twitter のような投稿アプリです.認証機能は実装されていません. + + + +%package help +Summary: Development documents and examples for bamboo-core +Provides: python3-bamboo-core-doc +%description help +# bamboo + +[](https://jjj999.github.io/bamboo/) +[](http://badge.fury.io/py/bamboo-core) +[](https://pypi.python.org/pypi/bamboo-core/) +[](https://jjj999.github.io/bamboo) + +## Supported Interfaces + +- WSGI +- ASGI v3.0 (HTTP, WebSocket and Lifespan) + +## Installing + +* Python: >= 3.7 + +``` +python -m pip install bamboo-core +``` + +## [Usage](https://jjj999.github.io/bamboo/tutorials/concept/) + +以下は簡単な実装例です. + +```python +from bamboo import WSGIApp, WSGIEndpoint, WSGITestExecutor + +app = WSGIApp() + +@app.route("hello") +class MockEndpoint(WSGIEndpoint): + + def do_GET(self) -> None: + self.send_body(b"Hello, World!") + +if __name__ == "__main__": + WSGITestExecutor.debug(app) +``` + +上記スクリプトを実行後,ブラウザで http://localhost:8000/hello にアクセスするとレスポンスを確認できます. + +## API documentation + +API ドキュメントは[こちら](https://jjj999.github.io/bamboo/api/bamboo/pkg/). + +## Examples + +### [upsidedown](https://github.com/jjj999/bamboo/tree/main/examples/upsidedown) + +リクエストされた文字列を逆順に反転させて返すアプリケーションです. + +### [image_traffic](https://github.com/jjj999/bamboo/tree/main/examples/image_traffic) + +アクセスに対して静的な画像を返すアプリケーションです. + +### [tweets](https://github.com/jjj999/bamboo/tree/main/examples/tweets) + +CLI ベースの簡易的な Twitter のような投稿アプリです.認証機能は実装されていません. + + + +%prep +%autosetup -n bamboo-core-0.10.5 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-bamboo-core -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.10.5-1 +- Package Spec generated @@ -0,0 +1 @@ +65ba4c4d5fc59fc00a5799ea95396d80 bamboo-core-0.10.5.tar.gz |
