From 3e18afffe0fbad990e6ed6aa52782ef37684fd12 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 29 May 2023 12:03:10 +0000 Subject: automatic import of python-pydent --- .gitignore | 1 + python-pydent.spec | 374 +++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 376 insertions(+) create mode 100644 python-pydent.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..0cdea03 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/pydent-1.0.11.tar.gz diff --git a/python-pydent.spec b/python-pydent.spec new file mode 100644 index 0000000..349fb23 --- /dev/null +++ b/python-pydent.spec @@ -0,0 +1,374 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pydent +Version: 1.0.11 +Release: 1 +Summary: Aquarium's Python API for planning, executing, and analyzing scientific experiments. +License: MIT +URL: https://www.github.com/aquariumbio/trident +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/5d/82/749fa90a7c0745b5c756942d31080e17abd744080f7738328a987b4659f2/pydent-1.0.11.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-inflection +Requires: python3-tqdm +Requires: python3-networkx +Requires: python3-nest-asyncio +Requires: python3-colorlog +Requires: python3-retry +Requires: python3-jsonschema + +%description +# Pydent: Aquarium API Scripting + +[![CircleCI](https://circleci.com/gh/klavinslab/trident/tree/master.svg?style=svg&circle-token=88677c59698d55a127a080cba9ca025cf8072f6c)](https://circleci.com/gh/klavinslab/trident/tree/master) +[![PyPI version](https://badge.fury.io/py/pydent.svg)](https://badge.fury.io/py/pydent) + +Pydent is the python API for Aquarium. + +## Documentation + +[API documentation can be found here at http://aquariumbio.github.io/pydent](http://aquariumbio.github.io/pydent/) + +## Requirements + +* Python > 3.4 +* An Aquarium login + +## Quick installation + +Pydent can be installed using `pip3`. + +``` + pip3 install pydent +``` + +or upgraded using + +``` + pip3 install pydent --upgrade +``` + +## Basic Usage + +### Logging in + +```python +from pydent import AqSession + +# open a session +mysession = AqSession("username", "password", "www.aquarium_nursery.url") + +# find a user +u = mysession.User.find(1) + +# print the user data +print(u) +``` + +### Models + +```python +print(mysession.models) +``` + +#### Finding models + +* By name: `nursery.SampleType.find_by_name("Primer")` + +* By ID: `nursery.SampleType.find(1)` + +* By property: `nursery.SampleType.where({'name': 'Primer'})` + +* All models: `nursery.SampleType.all()` + +#### Getting nested data + +```python +# samples are linked to sample_type +primer_type = mysession.SampleType.find_by_name("Primer") +primers = primer_type.samples + +# and sample type is linked to sample +p = primers[0] +print(p.sample_type) +``` + +#### Listing Available nested relationships + +```python +primer_type = mysession.SampleType.find(1) +print(primer_type.get_relationships()) +``` + +## making a release + +Update dependencies + +```bash +poetry update +``` + + +```bash +poetry build +poetry publish +``` + +To use a pypi token, the user name should be `__token__` and the password should be the token including the `pypi-` prefix. + +Update documents with `make docs` + +%package -n python3-pydent +Summary: Aquarium's Python API for planning, executing, and analyzing scientific experiments. +Provides: python-pydent +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pydent +# Pydent: Aquarium API Scripting + +[![CircleCI](https://circleci.com/gh/klavinslab/trident/tree/master.svg?style=svg&circle-token=88677c59698d55a127a080cba9ca025cf8072f6c)](https://circleci.com/gh/klavinslab/trident/tree/master) +[![PyPI version](https://badge.fury.io/py/pydent.svg)](https://badge.fury.io/py/pydent) + +Pydent is the python API for Aquarium. + +## Documentation + +[API documentation can be found here at http://aquariumbio.github.io/pydent](http://aquariumbio.github.io/pydent/) + +## Requirements + +* Python > 3.4 +* An Aquarium login + +## Quick installation + +Pydent can be installed using `pip3`. + +``` + pip3 install pydent +``` + +or upgraded using + +``` + pip3 install pydent --upgrade +``` + +## Basic Usage + +### Logging in + +```python +from pydent import AqSession + +# open a session +mysession = AqSession("username", "password", "www.aquarium_nursery.url") + +# find a user +u = mysession.User.find(1) + +# print the user data +print(u) +``` + +### Models + +```python +print(mysession.models) +``` + +#### Finding models + +* By name: `nursery.SampleType.find_by_name("Primer")` + +* By ID: `nursery.SampleType.find(1)` + +* By property: `nursery.SampleType.where({'name': 'Primer'})` + +* All models: `nursery.SampleType.all()` + +#### Getting nested data + +```python +# samples are linked to sample_type +primer_type = mysession.SampleType.find_by_name("Primer") +primers = primer_type.samples + +# and sample type is linked to sample +p = primers[0] +print(p.sample_type) +``` + +#### Listing Available nested relationships + +```python +primer_type = mysession.SampleType.find(1) +print(primer_type.get_relationships()) +``` + +## making a release + +Update dependencies + +```bash +poetry update +``` + + +```bash +poetry build +poetry publish +``` + +To use a pypi token, the user name should be `__token__` and the password should be the token including the `pypi-` prefix. + +Update documents with `make docs` + +%package help +Summary: Development documents and examples for pydent +Provides: python3-pydent-doc +%description help +# Pydent: Aquarium API Scripting + +[![CircleCI](https://circleci.com/gh/klavinslab/trident/tree/master.svg?style=svg&circle-token=88677c59698d55a127a080cba9ca025cf8072f6c)](https://circleci.com/gh/klavinslab/trident/tree/master) +[![PyPI version](https://badge.fury.io/py/pydent.svg)](https://badge.fury.io/py/pydent) + +Pydent is the python API for Aquarium. + +## Documentation + +[API documentation can be found here at http://aquariumbio.github.io/pydent](http://aquariumbio.github.io/pydent/) + +## Requirements + +* Python > 3.4 +* An Aquarium login + +## Quick installation + +Pydent can be installed using `pip3`. + +``` + pip3 install pydent +``` + +or upgraded using + +``` + pip3 install pydent --upgrade +``` + +## Basic Usage + +### Logging in + +```python +from pydent import AqSession + +# open a session +mysession = AqSession("username", "password", "www.aquarium_nursery.url") + +# find a user +u = mysession.User.find(1) + +# print the user data +print(u) +``` + +### Models + +```python +print(mysession.models) +``` + +#### Finding models + +* By name: `nursery.SampleType.find_by_name("Primer")` + +* By ID: `nursery.SampleType.find(1)` + +* By property: `nursery.SampleType.where({'name': 'Primer'})` + +* All models: `nursery.SampleType.all()` + +#### Getting nested data + +```python +# samples are linked to sample_type +primer_type = mysession.SampleType.find_by_name("Primer") +primers = primer_type.samples + +# and sample type is linked to sample +p = primers[0] +print(p.sample_type) +``` + +#### Listing Available nested relationships + +```python +primer_type = mysession.SampleType.find(1) +print(primer_type.get_relationships()) +``` + +## making a release + +Update dependencies + +```bash +poetry update +``` + + +```bash +poetry build +poetry publish +``` + +To use a pypi token, the user name should be `__token__` and the password should be the token including the `pypi-` prefix. + +Update documents with `make docs` + +%prep +%autosetup -n pydent-1.0.11 + +%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-pydent -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot - 1.0.11-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..6d665b4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +cbd4efbd5d91f2f1885d7e357fb87e43 pydent-1.0.11.tar.gz -- cgit v1.2.3