diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-11 18:20:15 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 18:20:15 +0000 |
commit | b75f0b8bf5b0e6adc9c84115ea3e40fa089a1cd5 (patch) | |
tree | 454ee719ca4e7d16b5b28e0654616381263e292d /python-bergen.spec | |
parent | f7b0206c2bbbfe06dde41003805720579203c414 (diff) |
automatic import of python-bergen
Diffstat (limited to 'python-bergen.spec')
-rw-r--r-- | python-bergen.spec | 366 |
1 files changed, 366 insertions, 0 deletions
diff --git a/python-bergen.spec b/python-bergen.spec new file mode 100644 index 0000000..29cea65 --- /dev/null +++ b/python-bergen.spec @@ -0,0 +1,366 @@ +%global _empty_manifest_terminate_build 0 +Name: python-bergen +Version: 0.4.75 +Release: 1 +Summary: A python client for the Arnheim Framework +License: CC BY-NC 3.0 +URL: https://github.com/jhnnsrs/bergen +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0f/50/ca90ee0d0b9704e215e231c38adea27e52a400def1b087f9c453b33aa9d8/bergen-0.4.75.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-requests-oauthlib +Requires: python3-websockets +Requires: python3-pydantic +Requires: python3-aiostream +Requires: python3-contextvars +Requires: python3-gql[all] +Requires: python3-namegenerator +Requires: python3-nest-asyncio +Requires: python3-docstring-parser +Requires: python3-tqdm +Requires: python3-rich +Requires: python3-PyQt5 +Requires: python3-PyQtWebEngine +Requires: python3-aiohttp +Requires: python3-PyYAML +Requires: python3-janus +Requires: python3-PySide2 + +%description +# Bergen + +### Idea + +Bergen is the API-Client for the Arnheim Framework + + +### Prerequisites + +Bergen only works with a running Arnheim Instance (in your network or locally for debugging). + +### Usage + +In order to initialize the Client you need to connect it as a Valid Application with your Arnheim Instance + +```python +client = Bergen(host="p-tnagerl-lab1", + port=8000, + client_id="APPLICATION_ID_FROM_ARNHEIM", + client_secret="APPLICATION_SECRET_FROM_ARNHEIM", + name="karl", +) +``` + +In your following code you can simple query your data according to the Schema of the Datapoint + +```python +from bergen.schema import Node + +node = Node.objects.get(id=1) +print(node.name) + +``` + +## Access Data from different Datapoints + +The Arnheim Framework is able to provide data from different Data Endpoints through a commong GraphQL Interface +. This allows you to access data from various different storage formats like Elements and Omero and interact without +knowledge of their underlying api. + +Each Datapoint provides a typesafe schema. Arnheim Elements provides you with an implemtation of that schema. + +## Provide a Template for a Node + +Documentation neccesary + + +### Testing and Documentation + +So far Bergen does only provide limitedunit-tests and is in desperate need of documentation, +please beware that you are using an Alpha-Version + + +### Build with + +- [Arnheim](https://github.com/jhnnsrs/arnheim) +- [Pydantic](https://github.com/jhnnsrs/arnheim) + + +#### Features + +- Scss +- [Domain-style](https://github.com/reactjs/redux/blob/master/docs/faq/CodeStructure.md) for code structure +- Bundle Size analysis +- Code splitting with [react-loadable](https://github.com/jamiebuilds/react-loadable) + + +## Roadmap + +This is considered pre-Alpha so pretty much everything is still on the roadmap + + +## Deployment + +Contact the Developer before you plan to deploy this App, it is NOT ready for public release + +## Versioning + +There is not yet a working versioning profile in place, consider non-stable for every release + +## Authors + +* **Johannes Roos ** - *Initial work* - [jhnnsrs](https://github.com/jhnnsrs) + +See also the list of [contributors](https://github.com/your/project/contributors) who participated in this project. + +## License + +Attribution-NonCommercial 3.0 Unported (CC BY-NC 3.0) + +## Acknowledgments + +* EVERY single open-source project this library used (the list is too extensive so far) + +%package -n python3-bergen +Summary: A python client for the Arnheim Framework +Provides: python-bergen +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-bergen +# Bergen + +### Idea + +Bergen is the API-Client for the Arnheim Framework + + +### Prerequisites + +Bergen only works with a running Arnheim Instance (in your network or locally for debugging). + +### Usage + +In order to initialize the Client you need to connect it as a Valid Application with your Arnheim Instance + +```python +client = Bergen(host="p-tnagerl-lab1", + port=8000, + client_id="APPLICATION_ID_FROM_ARNHEIM", + client_secret="APPLICATION_SECRET_FROM_ARNHEIM", + name="karl", +) +``` + +In your following code you can simple query your data according to the Schema of the Datapoint + +```python +from bergen.schema import Node + +node = Node.objects.get(id=1) +print(node.name) + +``` + +## Access Data from different Datapoints + +The Arnheim Framework is able to provide data from different Data Endpoints through a commong GraphQL Interface +. This allows you to access data from various different storage formats like Elements and Omero and interact without +knowledge of their underlying api. + +Each Datapoint provides a typesafe schema. Arnheim Elements provides you with an implemtation of that schema. + +## Provide a Template for a Node + +Documentation neccesary + + +### Testing and Documentation + +So far Bergen does only provide limitedunit-tests and is in desperate need of documentation, +please beware that you are using an Alpha-Version + + +### Build with + +- [Arnheim](https://github.com/jhnnsrs/arnheim) +- [Pydantic](https://github.com/jhnnsrs/arnheim) + + +#### Features + +- Scss +- [Domain-style](https://github.com/reactjs/redux/blob/master/docs/faq/CodeStructure.md) for code structure +- Bundle Size analysis +- Code splitting with [react-loadable](https://github.com/jamiebuilds/react-loadable) + + +## Roadmap + +This is considered pre-Alpha so pretty much everything is still on the roadmap + + +## Deployment + +Contact the Developer before you plan to deploy this App, it is NOT ready for public release + +## Versioning + +There is not yet a working versioning profile in place, consider non-stable for every release + +## Authors + +* **Johannes Roos ** - *Initial work* - [jhnnsrs](https://github.com/jhnnsrs) + +See also the list of [contributors](https://github.com/your/project/contributors) who participated in this project. + +## License + +Attribution-NonCommercial 3.0 Unported (CC BY-NC 3.0) + +## Acknowledgments + +* EVERY single open-source project this library used (the list is too extensive so far) + +%package help +Summary: Development documents and examples for bergen +Provides: python3-bergen-doc +%description help +# Bergen + +### Idea + +Bergen is the API-Client for the Arnheim Framework + + +### Prerequisites + +Bergen only works with a running Arnheim Instance (in your network or locally for debugging). + +### Usage + +In order to initialize the Client you need to connect it as a Valid Application with your Arnheim Instance + +```python +client = Bergen(host="p-tnagerl-lab1", + port=8000, + client_id="APPLICATION_ID_FROM_ARNHEIM", + client_secret="APPLICATION_SECRET_FROM_ARNHEIM", + name="karl", +) +``` + +In your following code you can simple query your data according to the Schema of the Datapoint + +```python +from bergen.schema import Node + +node = Node.objects.get(id=1) +print(node.name) + +``` + +## Access Data from different Datapoints + +The Arnheim Framework is able to provide data from different Data Endpoints through a commong GraphQL Interface +. This allows you to access data from various different storage formats like Elements and Omero and interact without +knowledge of their underlying api. + +Each Datapoint provides a typesafe schema. Arnheim Elements provides you with an implemtation of that schema. + +## Provide a Template for a Node + +Documentation neccesary + + +### Testing and Documentation + +So far Bergen does only provide limitedunit-tests and is in desperate need of documentation, +please beware that you are using an Alpha-Version + + +### Build with + +- [Arnheim](https://github.com/jhnnsrs/arnheim) +- [Pydantic](https://github.com/jhnnsrs/arnheim) + + +#### Features + +- Scss +- [Domain-style](https://github.com/reactjs/redux/blob/master/docs/faq/CodeStructure.md) for code structure +- Bundle Size analysis +- Code splitting with [react-loadable](https://github.com/jamiebuilds/react-loadable) + + +## Roadmap + +This is considered pre-Alpha so pretty much everything is still on the roadmap + + +## Deployment + +Contact the Developer before you plan to deploy this App, it is NOT ready for public release + +## Versioning + +There is not yet a working versioning profile in place, consider non-stable for every release + +## Authors + +* **Johannes Roos ** - *Initial work* - [jhnnsrs](https://github.com/jhnnsrs) + +See also the list of [contributors](https://github.com/your/project/contributors) who participated in this project. + +## License + +Attribution-NonCommercial 3.0 Unported (CC BY-NC 3.0) + +## Acknowledgments + +* EVERY single open-source project this library used (the list is too extensive so far) + +%prep +%autosetup -n bergen-0.4.75 + +%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-bergen -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.75-1 +- Package Spec generated |