summaryrefslogtreecommitdiff
path: root/python-nanohubtools.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-nanohubtools.spec')
-rw-r--r--python-nanohubtools.spec406
1 files changed, 406 insertions, 0 deletions
diff --git a/python-nanohubtools.spec b/python-nanohubtools.spec
new file mode 100644
index 0000000..9ae33ef
--- /dev/null
+++ b/python-nanohubtools.spec
@@ -0,0 +1,406 @@
+%global _empty_manifest_terminate_build 0
+Name: python-nanohubtools
+Version: 0.2.3
+Release: 1
+Summary: A set of tools to run nanoHubtools
+License: BSD
+URL: https://github.com/denphi/nanohubtools
+Source0: https://mirrors.aliyun.com/pypi/web/packages/d1/e6/0756e345f2fcc355331b7472b7a7f9ea14028f2a02ef55d0cf1ee126f186/nanohubtools-0.2.3.tar.gz
+BuildArch: noarch
+
+Requires: python3-floatview
+Requires: python3-plotly
+Requires: python3-numpy
+Requires: python3-hublib
+
+%description
+# Nanohubtools
+
+A set of tools/apps to run on nanohub
+
+## Installation
+
+
+```bash
+pip install nanohubtools
+```
+
+## Usage
+
+
+
+```python
+
+import nanohubtools as nt
+auth_data = {
+ 'client_id': XXXXXXXX,
+ 'client_secret': XXXXXXXX,
+ 'grant_type': 'password',
+ 'username': XXXXXXXX,
+ 'password': XXXXXXXX
+}
+
+# to get username and password, register on nanohub.org (https://nanohub.org/register/)
+# to get client id and secret, create a web application (https://nanohub.org/developer/api/applications/new), use "https://127.0.0.1" as Redirect URL
+
+tool = nt.Qdotexplorer(auth_data, parameters={'Number of States'}, modal=True, mode='split-right')
+
+# modal defines if the container outputs to use FloatView or standard ipywidgets Output
+# mode defines the positions of new windows of Floatview is enabled
+
+tool.loadExperiment('IDSESSION') If an experiment was created befores
+
+```
+
+## Available Nanohub Tools
+
+### BravaisViewerSimplified, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer)
+```python
+ nt.CrystalViewerConstructor(auth_data, modal=False)
+```
+
+### CrystalViewerSimplified, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer)
+```python
+ nt.CrystalViewerConstructor(auth_data, modal=False)
+```
+
+### CrystalLab, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer)
+```python
+ nt.CrystalLab(auth_data)
+```
+![CrystalLab](https://raw.githubusercontent.com/denphi/nanohubtools/master/images/CrystalLab.gif)
+
+### CrystalViewerMaterial, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer)
+```python
+ nt.CrystalViewerMaterial(auth_data, modal=False)
+```
+![CrystalViewerMaterial](https://raw.githubusercontent.com/denphi/nanohubtools/master/images/CrystalViewerMaterial.gif)
+
+
+### CrystalViewerBravais, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer)
+```python
+ nt.CrystalViewerBravais(auth_data, modal=False)
+```
+![CrystalViewerBravais](https://raw.githubusercontent.com/denphi/nanohubtools/master/images/CrystalViewerBravais.gif)
+
+
+### CrystalViewerConstructor, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer)
+```python
+ nt.CrystalViewerConstructor(auth_data, modal=False)
+```
+
+### SimpleQuantumDot, supported by [Quantum Dot Lab ](https://nanohub.org/resources/qdot/)
+```python
+ nt.SimpleQuantumDot(auth_data, modal=False)
+```
+![SimpleQuantumDot](https://raw.githubusercontent.com/denphi/nanohubtools/master/images/SimpleQuantumDot.gif)
+
+
+### StackedQuantumDot, supported by [Quantum Dot Lab ](https://nanohub.org/resources/qdot/)
+```python
+ nt.StackedQuantumDot(auth_data, modal=False)
+```
+
+
+### PNToy, supported by [PN Junction Lab] (https://nanohub.org/resources/pntoy)
+```python
+ nt.PNToy(auth_data, modal=False)
+```
+![PNToy](https://raw.githubusercontent.com/denphi/nanohubtools/master/images/PNToy.gif)
+
+
+### Driftdiffusionlab, supported by [Drift-Diffusion Lab] (https://nanohub.org/resources/semi)
+```python
+ nt.Driftdiffusionlab(auth_data, modal=False)
+```
+![Driftdiffusionlab](https://raw.githubusercontent.com/denphi/nanohubtools/master/images/Driftdiffusionlab.gif)
+
+
+### DFTExplorer, supported by [DFT calculations with Quantum ESPRESSO] (https://nanohub.org/resources/dftqe)
+```python
+ nt.DFTExplorer(auth_data, modal=False)
+```
+![DFTExplorer](https://raw.githubusercontent.com/denphi/nanohubtools/master/images/DFTExplorer.gif)
+
+
+
+
+
+%package -n python3-nanohubtools
+Summary: A set of tools to run nanoHubtools
+Provides: python-nanohubtools
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-nanohubtools
+# Nanohubtools
+
+A set of tools/apps to run on nanohub
+
+## Installation
+
+
+```bash
+pip install nanohubtools
+```
+
+## Usage
+
+
+
+```python
+
+import nanohubtools as nt
+auth_data = {
+ 'client_id': XXXXXXXX,
+ 'client_secret': XXXXXXXX,
+ 'grant_type': 'password',
+ 'username': XXXXXXXX,
+ 'password': XXXXXXXX
+}
+
+# to get username and password, register on nanohub.org (https://nanohub.org/register/)
+# to get client id and secret, create a web application (https://nanohub.org/developer/api/applications/new), use "https://127.0.0.1" as Redirect URL
+
+tool = nt.Qdotexplorer(auth_data, parameters={'Number of States'}, modal=True, mode='split-right')
+
+# modal defines if the container outputs to use FloatView or standard ipywidgets Output
+# mode defines the positions of new windows of Floatview is enabled
+
+tool.loadExperiment('IDSESSION') If an experiment was created befores
+
+```
+
+## Available Nanohub Tools
+
+### BravaisViewerSimplified, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer)
+```python
+ nt.CrystalViewerConstructor(auth_data, modal=False)
+```
+
+### CrystalViewerSimplified, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer)
+```python
+ nt.CrystalViewerConstructor(auth_data, modal=False)
+```
+
+### CrystalLab, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer)
+```python
+ nt.CrystalLab(auth_data)
+```
+![CrystalLab](https://raw.githubusercontent.com/denphi/nanohubtools/master/images/CrystalLab.gif)
+
+### CrystalViewerMaterial, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer)
+```python
+ nt.CrystalViewerMaterial(auth_data, modal=False)
+```
+![CrystalViewerMaterial](https://raw.githubusercontent.com/denphi/nanohubtools/master/images/CrystalViewerMaterial.gif)
+
+
+### CrystalViewerBravais, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer)
+```python
+ nt.CrystalViewerBravais(auth_data, modal=False)
+```
+![CrystalViewerBravais](https://raw.githubusercontent.com/denphi/nanohubtools/master/images/CrystalViewerBravais.gif)
+
+
+### CrystalViewerConstructor, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer)
+```python
+ nt.CrystalViewerConstructor(auth_data, modal=False)
+```
+
+### SimpleQuantumDot, supported by [Quantum Dot Lab ](https://nanohub.org/resources/qdot/)
+```python
+ nt.SimpleQuantumDot(auth_data, modal=False)
+```
+![SimpleQuantumDot](https://raw.githubusercontent.com/denphi/nanohubtools/master/images/SimpleQuantumDot.gif)
+
+
+### StackedQuantumDot, supported by [Quantum Dot Lab ](https://nanohub.org/resources/qdot/)
+```python
+ nt.StackedQuantumDot(auth_data, modal=False)
+```
+
+
+### PNToy, supported by [PN Junction Lab] (https://nanohub.org/resources/pntoy)
+```python
+ nt.PNToy(auth_data, modal=False)
+```
+![PNToy](https://raw.githubusercontent.com/denphi/nanohubtools/master/images/PNToy.gif)
+
+
+### Driftdiffusionlab, supported by [Drift-Diffusion Lab] (https://nanohub.org/resources/semi)
+```python
+ nt.Driftdiffusionlab(auth_data, modal=False)
+```
+![Driftdiffusionlab](https://raw.githubusercontent.com/denphi/nanohubtools/master/images/Driftdiffusionlab.gif)
+
+
+### DFTExplorer, supported by [DFT calculations with Quantum ESPRESSO] (https://nanohub.org/resources/dftqe)
+```python
+ nt.DFTExplorer(auth_data, modal=False)
+```
+![DFTExplorer](https://raw.githubusercontent.com/denphi/nanohubtools/master/images/DFTExplorer.gif)
+
+
+
+
+
+%package help
+Summary: Development documents and examples for nanohubtools
+Provides: python3-nanohubtools-doc
+%description help
+# Nanohubtools
+
+A set of tools/apps to run on nanohub
+
+## Installation
+
+
+```bash
+pip install nanohubtools
+```
+
+## Usage
+
+
+
+```python
+
+import nanohubtools as nt
+auth_data = {
+ 'client_id': XXXXXXXX,
+ 'client_secret': XXXXXXXX,
+ 'grant_type': 'password',
+ 'username': XXXXXXXX,
+ 'password': XXXXXXXX
+}
+
+# to get username and password, register on nanohub.org (https://nanohub.org/register/)
+# to get client id and secret, create a web application (https://nanohub.org/developer/api/applications/new), use "https://127.0.0.1" as Redirect URL
+
+tool = nt.Qdotexplorer(auth_data, parameters={'Number of States'}, modal=True, mode='split-right')
+
+# modal defines if the container outputs to use FloatView or standard ipywidgets Output
+# mode defines the positions of new windows of Floatview is enabled
+
+tool.loadExperiment('IDSESSION') If an experiment was created befores
+
+```
+
+## Available Nanohub Tools
+
+### BravaisViewerSimplified, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer)
+```python
+ nt.CrystalViewerConstructor(auth_data, modal=False)
+```
+
+### CrystalViewerSimplified, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer)
+```python
+ nt.CrystalViewerConstructor(auth_data, modal=False)
+```
+
+### CrystalLab, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer)
+```python
+ nt.CrystalLab(auth_data)
+```
+![CrystalLab](https://raw.githubusercontent.com/denphi/nanohubtools/master/images/CrystalLab.gif)
+
+### CrystalViewerMaterial, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer)
+```python
+ nt.CrystalViewerMaterial(auth_data, modal=False)
+```
+![CrystalViewerMaterial](https://raw.githubusercontent.com/denphi/nanohubtools/master/images/CrystalViewerMaterial.gif)
+
+
+### CrystalViewerBravais, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer)
+```python
+ nt.CrystalViewerBravais(auth_data, modal=False)
+```
+![CrystalViewerBravais](https://raw.githubusercontent.com/denphi/nanohubtools/master/images/CrystalViewerBravais.gif)
+
+
+### CrystalViewerConstructor, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer)
+```python
+ nt.CrystalViewerConstructor(auth_data, modal=False)
+```
+
+### SimpleQuantumDot, supported by [Quantum Dot Lab ](https://nanohub.org/resources/qdot/)
+```python
+ nt.SimpleQuantumDot(auth_data, modal=False)
+```
+![SimpleQuantumDot](https://raw.githubusercontent.com/denphi/nanohubtools/master/images/SimpleQuantumDot.gif)
+
+
+### StackedQuantumDot, supported by [Quantum Dot Lab ](https://nanohub.org/resources/qdot/)
+```python
+ nt.StackedQuantumDot(auth_data, modal=False)
+```
+
+
+### PNToy, supported by [PN Junction Lab] (https://nanohub.org/resources/pntoy)
+```python
+ nt.PNToy(auth_data, modal=False)
+```
+![PNToy](https://raw.githubusercontent.com/denphi/nanohubtools/master/images/PNToy.gif)
+
+
+### Driftdiffusionlab, supported by [Drift-Diffusion Lab] (https://nanohub.org/resources/semi)
+```python
+ nt.Driftdiffusionlab(auth_data, modal=False)
+```
+![Driftdiffusionlab](https://raw.githubusercontent.com/denphi/nanohubtools/master/images/Driftdiffusionlab.gif)
+
+
+### DFTExplorer, supported by [DFT calculations with Quantum ESPRESSO] (https://nanohub.org/resources/dftqe)
+```python
+ nt.DFTExplorer(auth_data, modal=False)
+```
+![DFTExplorer](https://raw.githubusercontent.com/denphi/nanohubtools/master/images/DFTExplorer.gif)
+
+
+
+
+
+%prep
+%autosetup -n nanohubtools-0.2.3
+
+%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-nanohubtools -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.3-1
+- Package Spec generated