%global _empty_manifest_terminate_build 0 Name: python-coto Version: 0.4.2 Release: 1 Summary: Undocumented AWS Mananagement Console API Client License: Apache URL: https://github.com/sentialabs/coto Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ed/e8/0d1a258eddf7b495706896743fdc7115f8b076d129b401deddcda7c79fe0/coto-0.4.2.tar.gz BuildArch: noarch %description # coto: An AWS Management Console Client [![Documentation Status](https://readthedocs.org/projects/coto/badge/?version=latest)](http://coto.readthedocs.io/en/latest/?badge=latest) [![Version](http://img.shields.io/pypi/v/coto.svg?style=flat)](https://pypi.python.org/pypi/coto/) Almost any AWS service can be fully controlled using the AWS API, for this we strongly recommend the use of [boto3](http://boto3.readthedocs.io/). The problem is, that there exist some administrative tasks for which there is no public API, and there exist some [AWS tasks that still require the AWS Account Root User](https://docs.aws.amazon.com/general/latest/gr/aws_tasks-that-require-root.html). For example when creating a new account in an AWS Organization, there are some things that you are unable to do using the documented APIs, such as: * set tax registration information (no documented API) * set additional contacts (no documented API) * reset AWS Account Root User password (no documented API) * setup MFA for the AWS Account Root User (requires root user) > **Note:** > > This project provides a client for the undocumented APIs that are used by the AWS Management Console. **These APIs will be changing without any upfront warning!** As a result of this, coto can break at any moment. ## Examples ### Login using a boto session. ```python import boto3 import coto session = coto.Session( boto3_session=boto3.Session() ) ``` ### Login using root user password. ```python import coto session = coto.Session( email='email@example.com', password='s3cur3 p4ssw0rd!' ) ``` ### Login using root user password with virtual MFA. ```python import coto session = coto.Session( email='email@example.com', password='s3cur3 p4ssw0rd!', mfa_secret='MFAxSECRETxSEEDxXXXXXXXXXXXXXXXXXX' ) ``` ### Get account information ```python iam = session.client('iam') iam.get_account_info() ``` ### Set tax registration ```python billing = session.client('billing') billing.set_tax_registration( TaxRegistration={ 'address': { 'addressLine1': 'Adresweg 1', 'addressLine2': None, 'city': 'Delft', 'countryCode': 'NL', 'postalCode': '2600 AA', 'state': 'Zuid-Holland', }, 'authority': {'country': 'NL', 'state': None}, 'legalName': 'Besloten Venootschap B.V.', 'localTaxRegistration': False, 'registrationId': 'NL000000000B01', } ) ``` ## Development ``` pipenv install -d pipenv run nosetests tests cd docs pipenv run make html ``` %package -n python3-coto Summary: Undocumented AWS Mananagement Console API Client Provides: python-coto BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-coto # coto: An AWS Management Console Client [![Documentation Status](https://readthedocs.org/projects/coto/badge/?version=latest)](http://coto.readthedocs.io/en/latest/?badge=latest) [![Version](http://img.shields.io/pypi/v/coto.svg?style=flat)](https://pypi.python.org/pypi/coto/) Almost any AWS service can be fully controlled using the AWS API, for this we strongly recommend the use of [boto3](http://boto3.readthedocs.io/). The problem is, that there exist some administrative tasks for which there is no public API, and there exist some [AWS tasks that still require the AWS Account Root User](https://docs.aws.amazon.com/general/latest/gr/aws_tasks-that-require-root.html). For example when creating a new account in an AWS Organization, there are some things that you are unable to do using the documented APIs, such as: * set tax registration information (no documented API) * set additional contacts (no documented API) * reset AWS Account Root User password (no documented API) * setup MFA for the AWS Account Root User (requires root user) > **Note:** > > This project provides a client for the undocumented APIs that are used by the AWS Management Console. **These APIs will be changing without any upfront warning!** As a result of this, coto can break at any moment. ## Examples ### Login using a boto session. ```python import boto3 import coto session = coto.Session( boto3_session=boto3.Session() ) ``` ### Login using root user password. ```python import coto session = coto.Session( email='email@example.com', password='s3cur3 p4ssw0rd!' ) ``` ### Login using root user password with virtual MFA. ```python import coto session = coto.Session( email='email@example.com', password='s3cur3 p4ssw0rd!', mfa_secret='MFAxSECRETxSEEDxXXXXXXXXXXXXXXXXXX' ) ``` ### Get account information ```python iam = session.client('iam') iam.get_account_info() ``` ### Set tax registration ```python billing = session.client('billing') billing.set_tax_registration( TaxRegistration={ 'address': { 'addressLine1': 'Adresweg 1', 'addressLine2': None, 'city': 'Delft', 'countryCode': 'NL', 'postalCode': '2600 AA', 'state': 'Zuid-Holland', }, 'authority': {'country': 'NL', 'state': None}, 'legalName': 'Besloten Venootschap B.V.', 'localTaxRegistration': False, 'registrationId': 'NL000000000B01', } ) ``` ## Development ``` pipenv install -d pipenv run nosetests tests cd docs pipenv run make html ``` %package help Summary: Development documents and examples for coto Provides: python3-coto-doc %description help # coto: An AWS Management Console Client [![Documentation Status](https://readthedocs.org/projects/coto/badge/?version=latest)](http://coto.readthedocs.io/en/latest/?badge=latest) [![Version](http://img.shields.io/pypi/v/coto.svg?style=flat)](https://pypi.python.org/pypi/coto/) Almost any AWS service can be fully controlled using the AWS API, for this we strongly recommend the use of [boto3](http://boto3.readthedocs.io/). The problem is, that there exist some administrative tasks for which there is no public API, and there exist some [AWS tasks that still require the AWS Account Root User](https://docs.aws.amazon.com/general/latest/gr/aws_tasks-that-require-root.html). For example when creating a new account in an AWS Organization, there are some things that you are unable to do using the documented APIs, such as: * set tax registration information (no documented API) * set additional contacts (no documented API) * reset AWS Account Root User password (no documented API) * setup MFA for the AWS Account Root User (requires root user) > **Note:** > > This project provides a client for the undocumented APIs that are used by the AWS Management Console. **These APIs will be changing without any upfront warning!** As a result of this, coto can break at any moment. ## Examples ### Login using a boto session. ```python import boto3 import coto session = coto.Session( boto3_session=boto3.Session() ) ``` ### Login using root user password. ```python import coto session = coto.Session( email='email@example.com', password='s3cur3 p4ssw0rd!' ) ``` ### Login using root user password with virtual MFA. ```python import coto session = coto.Session( email='email@example.com', password='s3cur3 p4ssw0rd!', mfa_secret='MFAxSECRETxSEEDxXXXXXXXXXXXXXXXXXX' ) ``` ### Get account information ```python iam = session.client('iam') iam.get_account_info() ``` ### Set tax registration ```python billing = session.client('billing') billing.set_tax_registration( TaxRegistration={ 'address': { 'addressLine1': 'Adresweg 1', 'addressLine2': None, 'city': 'Delft', 'countryCode': 'NL', 'postalCode': '2600 AA', 'state': 'Zuid-Holland', }, 'authority': {'country': 'NL', 'state': None}, 'legalName': 'Besloten Venootschap B.V.', 'localTaxRegistration': False, 'registrationId': 'NL000000000B01', } ) ``` ## Development ``` pipenv install -d pipenv run nosetests tests cd docs pipenv run make html ``` %prep %autosetup -n coto-0.4.2 %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-coto -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Apr 11 2023 Python_Bot - 0.4.2-1 - Package Spec generated