diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 17:59:35 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 17:59:35 +0000 |
commit | 96544c72873ccaed5a523dfe1e34c8656edd877b (patch) | |
tree | d4427c49b6a1d4860dcfef0e5fe5e35d0ba301e4 | |
parent | c86da0592fe403cb943b69dcb395fcea5ec67ea8 (diff) |
automatic import of python-pinkboto
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pinkboto.spec | 297 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 299 insertions, 0 deletions
@@ -0,0 +1 @@ +/pinkboto-0.0.45.tar.gz diff --git a/python-pinkboto.spec b/python-pinkboto.spec new file mode 100644 index 0000000..cfc585d --- /dev/null +++ b/python-pinkboto.spec @@ -0,0 +1,297 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pinkboto +Version: 0.0.45 +Release: 1 +Summary: A Colorful AWS SDK wrapper for Python +License: GNU General Public License v3 (GPLv3) +URL: https://github.com/Hotmart-Org/pinkboto +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f8/3e/93bba5e267931b874f8ba61a7339ab5955f8f3b10f2fcc14e44c4fc53651/pinkboto-0.0.45.tar.gz +BuildArch: noarch + + +%description +# pinkboto + +A Colorful AWS SDK wrapper for Python + +[](https://pypi.python.org/pypi/pinkboto) + + + + +## Install + +```bash +pip install pinkboto +``` + +### Usage + +```python +import pinkboto +aws = pinkboto.aws(profile='production', region='us-east-1') +selector = {'resource': 'aws_db_instance'} +projection = ['DBInstanceIdentifier', 'Endpoint'] +rds = aws.find(selector, projection) +``` + +### Caching + +By default, pinkboto caching all requests with 120 seconds lifespan. + +To disable: + +```python +aws = pinkboto.aws(profile='production', region='us-east-1', cache=False) +``` + +To modify lifespan to 1 hour: + +```python +aws = pinkboto.aws(profile='production', region='us-east-1', cache=3600) +``` + +### Subfield projection + +You can access a subfield in projection. For example 'Endpoint.Address' in rds + +```python +rds = aws.find({'resource': 'aws_db_instance'}, ['Endpoint.Address', 'AvailabilityZone']) +``` + +### CSV output + +```python +pinkboto.to_csv(rds, 'result.csv') +``` + +### pypi package publish + +```bash +update setup.py version. +python3 setup.py sdist +twine upload dist/pinkboto-${new-version}.tar.gz +``` + +### Contributing + +Pull requests for new features, bug fixes, and suggestions are welcome! + +### License + +GNU General Public License v3 (GPLv3) + +### Developer install requirements + +```bash +pre-commit install +``` + +%package -n python3-pinkboto +Summary: A Colorful AWS SDK wrapper for Python +Provides: python-pinkboto +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pinkboto +# pinkboto + +A Colorful AWS SDK wrapper for Python + +[](https://pypi.python.org/pypi/pinkboto) + + + + +## Install + +```bash +pip install pinkboto +``` + +### Usage + +```python +import pinkboto +aws = pinkboto.aws(profile='production', region='us-east-1') +selector = {'resource': 'aws_db_instance'} +projection = ['DBInstanceIdentifier', 'Endpoint'] +rds = aws.find(selector, projection) +``` + +### Caching + +By default, pinkboto caching all requests with 120 seconds lifespan. + +To disable: + +```python +aws = pinkboto.aws(profile='production', region='us-east-1', cache=False) +``` + +To modify lifespan to 1 hour: + +```python +aws = pinkboto.aws(profile='production', region='us-east-1', cache=3600) +``` + +### Subfield projection + +You can access a subfield in projection. For example 'Endpoint.Address' in rds + +```python +rds = aws.find({'resource': 'aws_db_instance'}, ['Endpoint.Address', 'AvailabilityZone']) +``` + +### CSV output + +```python +pinkboto.to_csv(rds, 'result.csv') +``` + +### pypi package publish + +```bash +update setup.py version. +python3 setup.py sdist +twine upload dist/pinkboto-${new-version}.tar.gz +``` + +### Contributing + +Pull requests for new features, bug fixes, and suggestions are welcome! + +### License + +GNU General Public License v3 (GPLv3) + +### Developer install requirements + +```bash +pre-commit install +``` + +%package help +Summary: Development documents and examples for pinkboto +Provides: python3-pinkboto-doc +%description help +# pinkboto + +A Colorful AWS SDK wrapper for Python + +[](https://pypi.python.org/pypi/pinkboto) + + + + +## Install + +```bash +pip install pinkboto +``` + +### Usage + +```python +import pinkboto +aws = pinkboto.aws(profile='production', region='us-east-1') +selector = {'resource': 'aws_db_instance'} +projection = ['DBInstanceIdentifier', 'Endpoint'] +rds = aws.find(selector, projection) +``` + +### Caching + +By default, pinkboto caching all requests with 120 seconds lifespan. + +To disable: + +```python +aws = pinkboto.aws(profile='production', region='us-east-1', cache=False) +``` + +To modify lifespan to 1 hour: + +```python +aws = pinkboto.aws(profile='production', region='us-east-1', cache=3600) +``` + +### Subfield projection + +You can access a subfield in projection. For example 'Endpoint.Address' in rds + +```python +rds = aws.find({'resource': 'aws_db_instance'}, ['Endpoint.Address', 'AvailabilityZone']) +``` + +### CSV output + +```python +pinkboto.to_csv(rds, 'result.csv') +``` + +### pypi package publish + +```bash +update setup.py version. +python3 setup.py sdist +twine upload dist/pinkboto-${new-version}.tar.gz +``` + +### Contributing + +Pull requests for new features, bug fixes, and suggestions are welcome! + +### License + +GNU General Public License v3 (GPLv3) + +### Developer install requirements + +```bash +pre-commit install +``` + +%prep +%autosetup -n pinkboto-0.0.45 + +%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-pinkboto -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.45-1 +- Package Spec generated @@ -0,0 +1 @@ +2a97d53a7d351cd639866e4146677799 pinkboto-0.0.45.tar.gz |