summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 17:59:35 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 17:59:35 +0000
commit96544c72873ccaed5a523dfe1e34c8656edd877b (patch)
treed4427c49b6a1d4860dcfef0e5fe5e35d0ba301e4
parentc86da0592fe403cb943b69dcb395fcea5ec67ea8 (diff)
automatic import of python-pinkboto
-rw-r--r--.gitignore1
-rw-r--r--python-pinkboto.spec297
-rw-r--r--sources1
3 files changed, 299 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..3de9451 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
+
+[![Current version at PyPI](https://img.shields.io/pypi/v/pinkboto.svg)](https://pypi.python.org/pypi/pinkboto)
+![Supported Python Versions](https://img.shields.io/pypi/pyversions/pinkboto.svg)
+![Software status](https://img.shields.io/pypi/status/pinkboto.svg)
+![PyPI - Downloads](https://img.shields.io/pypi/dd/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
+
+[![Current version at PyPI](https://img.shields.io/pypi/v/pinkboto.svg)](https://pypi.python.org/pypi/pinkboto)
+![Supported Python Versions](https://img.shields.io/pypi/pyversions/pinkboto.svg)
+![Software status](https://img.shields.io/pypi/status/pinkboto.svg)
+![PyPI - Downloads](https://img.shields.io/pypi/dd/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
+
+[![Current version at PyPI](https://img.shields.io/pypi/v/pinkboto.svg)](https://pypi.python.org/pypi/pinkboto)
+![Supported Python Versions](https://img.shields.io/pypi/pyversions/pinkboto.svg)
+![Software status](https://img.shields.io/pypi/status/pinkboto.svg)
+![PyPI - Downloads](https://img.shields.io/pypi/dd/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
diff --git a/sources b/sources
new file mode 100644
index 0000000..2745f02
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+2a97d53a7d351cd639866e4146677799 pinkboto-0.0.45.tar.gz