summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 06:49:11 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 06:49:11 +0000
commitd0e09afc34b0fc3d73b2d86f127a8fe245817a8a (patch)
tree31804741b420e9e28f0bdf3b2083f2bf3594756c
parentede8e56762f6c8d430fed851f1d5c24453a58718 (diff)
automatic import of python-pyaim
-rw-r--r--.gitignore1
-rw-r--r--python-pyaim.spec786
-rw-r--r--sources1
3 files changed, 788 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..73242cb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyaim-1.2.9.tar.gz
diff --git a/python-pyaim.spec b/python-pyaim.spec
new file mode 100644
index 0000000..902ae52
--- /dev/null
+++ b/python-pyaim.spec
@@ -0,0 +1,786 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pyaim
+Version: 1.2.9
+Release: 1
+Summary: CyberArk Application Access Manager Client Library for Python 3
+License: MIT
+URL: https://github.com/infamousjoeg/pyaim
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d5/d6/0ef07bed57edc5b7e17d887648b58683a7778b2661857c40066d655fb2bb/pyaim-1.2.9.tar.gz
+BuildArch: noarch
+
+
+%description
+# pyAIM <!-- OMIT IN TOC -->
+
+![](assets/pyAIM-sm.png)
+
+![GitHub last commit](https://img.shields.io/github/last-commit/infamousjoeg/pyaim.svg) [![GitHub issues](https://img.shields.io/github/issues/infamousjoeg/pyaim.svg?color=blue)](https://github.com/infamousjoeg/pyaim/issues) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyaim.svg) ![GitHub top language](https://img.shields.io/github/languages/top/infamousjoeg/pyaim.svg?color=yellow) [![PyPI](https://img.shields.io/pypi/v/pyaim.svg)](https://pypi.org/project/pyaim) [![PyPI - Downloads](https://img.shields.io/pypi/dm/pyaim.svg?color=blue)](https://pypi.org/project/pyaim) [![Keybase PGP](https://img.shields.io/keybase/pgp/infamousjoeg.svg)](https://keybase.io/infamousjoeg) [![GitHub](https://img.shields.io/github/license/infamousjoeg/pyaim.svg?color=blue)](LICENSE)
+
+> CyberArk Application Access Manager Client Library for Python 3
+
+This project simplifies the interaction between a Python 3 application or script and CyberArk's Application Access Manager's Credential Provider using the appropriate CLIPasswordSDK executable for the Operating System being used. By simplifying this process, developers are only required to change four (4) lines of code in their Python 3 applications and scripts to securely retrieve privileged secrets from CyberArk's Privileged Access Security (PAS) Core Solution as opposed to thirty or more (30+) without the use of this provided Client Library.
+
+### New in Version 1.2.0: <!-- OMIT IN TOC -->
+
+Added support for all possible parameters for both AAM Credential Provider (CLIPasswordSDK) and AAM Central Credential Provider (CCPPasswordREST).
+
+## Table of Contents <!-- OMIT IN TOC -->
+
+- [pyAIM](#pyaim)
+ - [New in Version 1.2.0: <!-- OMIT IN TOC -->](#new-in-version-120)
+ - [Table of Contents <!-- OMIT IN TOC -->](#table-of-contents)
+ - [Install](#install)
+ - [Pre-Requisite](#pre-requisite)
+ - [Credential Provider (CLIPasswordSDK) Method](#credential-provider-clipasswordsdk-method)
+ - [Centralized Credential Provider (CCPPasswordREST) Method](#centralized-credential-provider-ccppasswordrest-method)
+ - [Windows](#windows)
+ - [Install Latest Python 3](#install-latest-python-3)
+ - [Install pyAIM via Pip](#install-pyaim-via-pip)
+ - [Linux](#linux)
+ - [Ubuntu/Debian](#ubuntudebian)
+ - [Install Latest Python 3](#install-latest-python-3-1)
+ - [Install pyAIM via Pip](#install-pyaim-via-pip-1)
+ - [RHEL/CentOS](#rhelcentos)
+ - [Install Latest Python 3](#install-latest-python-3-2)
+ - [RHEL](#rhel)
+ - [CentOS](#centos)
+ - [Install pyAIM via Pip](#install-pyaim-via-pip-2)
+ - [MacOS](#macos)
+ - [Z/OS](#zos)
+ - [Install Latest Python 3](#install-latest-python-3-3)
+ - [Install pyAIM via Pip](#install-pyaim-via-pip-3)
+ - [Usage](#usage)
+ - [Check AIMWebService Availability - check_service()](#check-aimwebservice-availability---check_service)
+ - [Centralized Credential Provider (CCPPasswordREST) Method](#centralized-credential-provider-ccppasswordrest-method-1)
+ - [Retrieve Account - GetPassword()](#retrieve-account---getpassword)
+ - [Credential Provider (CLIPasswordSDK) Method](#credential-provider-clipasswordsdk-method-1)
+ - [Supported Parameters](#supported-parameters)
+ - [Example](#example)
+ - [Centralized Credential Provider (CCPPasswordREST) Method](#centralized-credential-provider-ccppasswordrest-method-2)
+ - [Supported Parameters](#supported-parameters-1)
+ - [Example](#example-1)
+ - [Maintainer](#maintainer)
+ - [Contributing](#contributing)
+ - [License](#license)
+
+## Install
+
+### Pre-Requisite
+
+#### Credential Provider (CLIPasswordSDK) Method
+
+* CyberArk Application Access Manager Credential Provider installed locally.
+
+#### Centralized Credential Provider (CCPPasswordREST) Method
+
+* CyberArk Application Access Manager Centralized Credential Provider and AIMWebService
+
+For information on how to install either of these providers, please refer to CyberArk's Application Access Manager Installation Guide or reach out to your assigned Customer Success Technical Advisor.
+
+### Windows
+
+#### Install Latest Python 3
+
+[Install the Python 3 release for Windows](https://www.python.org/downloads/windows/)
+
+#### Install pyAIM via Pip
+
+`> pip3 install pyaim`
+
+### Linux
+
+#### Ubuntu/Debian
+
+##### Install Latest Python 3
+
+`$ sudo apt install -y python3 python3-pip`
+
+##### Install pyAIM via Pip
+
+`$ pip3 install pyaim`
+
+#### RHEL/CentOS
+
+##### Install Latest Python 3
+
+###### RHEL
+
+Follow the [EPEL Documentation](https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F) to ensure you have the EPEL Release repository available.
+
+`$ sudo yum install -y https://rhel7.iuscommunity.org/ius-release.rpm`
+
+`$ sudo yum update`
+
+`$ sudo yum install -y python36u python36u-libs python36u-devel python36u-pip`
+
+###### CentOS
+
+`$ sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpm`
+
+`$ sudo yum update`
+
+`$ sudo yum install -y python36u python36u-libs python36u-devel python36u-pip`
+
+##### Install pyAIM via Pip
+
+`$ pip3 install pyaim`
+
+### MacOS
+
+No support provided yet.
+
+### Z/OS
+
+pyAIM is untested on Z/OS but should work in theory.
+
+#### Install Latest Python 3
+
+Rocket Software has [ported Python 2 and 3](https://www.rocketsoftware.com/zos-open-source) for Z/OS
+
+#### Install pyAIM via Pip
+
+`$ pip3 install pyaim`
+
+## Usage
+
+### Check AIMWebService Availability - check_service()
+
+#### Centralized Credential Provider (CCPPasswordREST) Method
+
+```python
+from pyaim import CCPPasswordREST
+
+aimccp = CCPPasswordREST('https://ccp.cyberarkdemo.example', verify=True) # set verify=False to ignore SSL
+service_status = aimccp.check_service()
+print(service_status)
+```
+
+### Retrieve Account - GetPassword()
+
+#### Credential Provider (CLIPasswordSDK) Method
+
+##### Supported Parameters
+
+* appid _(required)_
+* safe _(required)_
+* folder _(default: root)_
+* object _(this or `username` required)_
+* username _(this or `object` required)_
+* address
+* database
+* policyid
+* reason
+* query_format _(default: 1)_
+* connport
+* sendhash _(default: False)_
+* dual_accounts _(default: False)_
+
+For compatibility with Dual Accounts where you are referencing a `VirtualUsername` - use the `username` parameter and ensure `dual_accounts=True`.
+
+##### Example
+
+```python
+from pyaim import CLIPasswordSDK
+
+aimcp = CLIPasswordSDK('/opt/CARKaim/sdk/clipasswordsdk')
+response = aimcp.GetPassword(appid='appID',safe='safeName',object='objectName',output='PassProps.Username,Password')
+
+print('Full Response: {}'.format(response))
+print('Username: {}'.format(response['PassProps.Username']))
+print('Password: {}'.format(response['Password']))
+```
+
+#### Centralized Credential Provider (CCPPasswordREST) Method
+
+##### Supported Parameters
+
+* appid _(required)_
+* safe _(required)_
+* folder _(default: root)_
+* object _(this or `username` required)_
+* username _(this or `object` required)_
+* address
+* database
+* policyid
+* reason
+* query_format _(default: exact)_
+* dual_accounts _(default: False)_
+
+For compatibility with Dual Accounts where you are referencing a `VirtualUsername` - use the `username` parameter and ensure `dual_accounts=True`.
+
+##### Example
+
+```python
+from pyaim import CCPPasswordREST
+
+aimccp = CCPPasswordREST('https://ccp.cyberarkdemo.example', verify=True) # set verify=False to ignore SSL
+
+service_status = aimccp.check_service()
+
+if service_status == 'SUCCESS: AIMWebService Found. Status Code: 200':
+ response = aimccp.GetPassword(appid='appid',safe='safe',object='objectName',reason='Reason message')
+ print('Full Python Object: {}'.format(response))
+ print('Username: {}'.format(response['Username']))
+ print('Password: {}'.format(response['Content']))
+else:
+ raise Exception(service_status)
+```
+
+## Maintainer
+
+[@infamousjoeg](https://github.com/infamousjoeg)
+
+[![Buy me a coffee][buymeacoffee-shield]][buymeacoffee]
+
+[buymeacoffee]: https://www.buymeacoffee.com/infamousjoeg
+[buymeacoffee-shield]: https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png
+
+## Contributing
+
+For the time being, only internal CyberArk contributions are being considered.
+
+Feel free to report any feature requests or bugs on the [GitHub Issues](https://github.com/infamousjoeg/pyaim/issues) page.
+
+Keep checking back for an update regarding open Contributions in the near future.
+
+## License
+
+[MIT](LICENSE) © Joe Garcia, CISSP
+
+
+
+
+%package -n python3-pyaim
+Summary: CyberArk Application Access Manager Client Library for Python 3
+Provides: python-pyaim
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pyaim
+# pyAIM <!-- OMIT IN TOC -->
+
+![](assets/pyAIM-sm.png)
+
+![GitHub last commit](https://img.shields.io/github/last-commit/infamousjoeg/pyaim.svg) [![GitHub issues](https://img.shields.io/github/issues/infamousjoeg/pyaim.svg?color=blue)](https://github.com/infamousjoeg/pyaim/issues) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyaim.svg) ![GitHub top language](https://img.shields.io/github/languages/top/infamousjoeg/pyaim.svg?color=yellow) [![PyPI](https://img.shields.io/pypi/v/pyaim.svg)](https://pypi.org/project/pyaim) [![PyPI - Downloads](https://img.shields.io/pypi/dm/pyaim.svg?color=blue)](https://pypi.org/project/pyaim) [![Keybase PGP](https://img.shields.io/keybase/pgp/infamousjoeg.svg)](https://keybase.io/infamousjoeg) [![GitHub](https://img.shields.io/github/license/infamousjoeg/pyaim.svg?color=blue)](LICENSE)
+
+> CyberArk Application Access Manager Client Library for Python 3
+
+This project simplifies the interaction between a Python 3 application or script and CyberArk's Application Access Manager's Credential Provider using the appropriate CLIPasswordSDK executable for the Operating System being used. By simplifying this process, developers are only required to change four (4) lines of code in their Python 3 applications and scripts to securely retrieve privileged secrets from CyberArk's Privileged Access Security (PAS) Core Solution as opposed to thirty or more (30+) without the use of this provided Client Library.
+
+### New in Version 1.2.0: <!-- OMIT IN TOC -->
+
+Added support for all possible parameters for both AAM Credential Provider (CLIPasswordSDK) and AAM Central Credential Provider (CCPPasswordREST).
+
+## Table of Contents <!-- OMIT IN TOC -->
+
+- [pyAIM](#pyaim)
+ - [New in Version 1.2.0: <!-- OMIT IN TOC -->](#new-in-version-120)
+ - [Table of Contents <!-- OMIT IN TOC -->](#table-of-contents)
+ - [Install](#install)
+ - [Pre-Requisite](#pre-requisite)
+ - [Credential Provider (CLIPasswordSDK) Method](#credential-provider-clipasswordsdk-method)
+ - [Centralized Credential Provider (CCPPasswordREST) Method](#centralized-credential-provider-ccppasswordrest-method)
+ - [Windows](#windows)
+ - [Install Latest Python 3](#install-latest-python-3)
+ - [Install pyAIM via Pip](#install-pyaim-via-pip)
+ - [Linux](#linux)
+ - [Ubuntu/Debian](#ubuntudebian)
+ - [Install Latest Python 3](#install-latest-python-3-1)
+ - [Install pyAIM via Pip](#install-pyaim-via-pip-1)
+ - [RHEL/CentOS](#rhelcentos)
+ - [Install Latest Python 3](#install-latest-python-3-2)
+ - [RHEL](#rhel)
+ - [CentOS](#centos)
+ - [Install pyAIM via Pip](#install-pyaim-via-pip-2)
+ - [MacOS](#macos)
+ - [Z/OS](#zos)
+ - [Install Latest Python 3](#install-latest-python-3-3)
+ - [Install pyAIM via Pip](#install-pyaim-via-pip-3)
+ - [Usage](#usage)
+ - [Check AIMWebService Availability - check_service()](#check-aimwebservice-availability---check_service)
+ - [Centralized Credential Provider (CCPPasswordREST) Method](#centralized-credential-provider-ccppasswordrest-method-1)
+ - [Retrieve Account - GetPassword()](#retrieve-account---getpassword)
+ - [Credential Provider (CLIPasswordSDK) Method](#credential-provider-clipasswordsdk-method-1)
+ - [Supported Parameters](#supported-parameters)
+ - [Example](#example)
+ - [Centralized Credential Provider (CCPPasswordREST) Method](#centralized-credential-provider-ccppasswordrest-method-2)
+ - [Supported Parameters](#supported-parameters-1)
+ - [Example](#example-1)
+ - [Maintainer](#maintainer)
+ - [Contributing](#contributing)
+ - [License](#license)
+
+## Install
+
+### Pre-Requisite
+
+#### Credential Provider (CLIPasswordSDK) Method
+
+* CyberArk Application Access Manager Credential Provider installed locally.
+
+#### Centralized Credential Provider (CCPPasswordREST) Method
+
+* CyberArk Application Access Manager Centralized Credential Provider and AIMWebService
+
+For information on how to install either of these providers, please refer to CyberArk's Application Access Manager Installation Guide or reach out to your assigned Customer Success Technical Advisor.
+
+### Windows
+
+#### Install Latest Python 3
+
+[Install the Python 3 release for Windows](https://www.python.org/downloads/windows/)
+
+#### Install pyAIM via Pip
+
+`> pip3 install pyaim`
+
+### Linux
+
+#### Ubuntu/Debian
+
+##### Install Latest Python 3
+
+`$ sudo apt install -y python3 python3-pip`
+
+##### Install pyAIM via Pip
+
+`$ pip3 install pyaim`
+
+#### RHEL/CentOS
+
+##### Install Latest Python 3
+
+###### RHEL
+
+Follow the [EPEL Documentation](https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F) to ensure you have the EPEL Release repository available.
+
+`$ sudo yum install -y https://rhel7.iuscommunity.org/ius-release.rpm`
+
+`$ sudo yum update`
+
+`$ sudo yum install -y python36u python36u-libs python36u-devel python36u-pip`
+
+###### CentOS
+
+`$ sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpm`
+
+`$ sudo yum update`
+
+`$ sudo yum install -y python36u python36u-libs python36u-devel python36u-pip`
+
+##### Install pyAIM via Pip
+
+`$ pip3 install pyaim`
+
+### MacOS
+
+No support provided yet.
+
+### Z/OS
+
+pyAIM is untested on Z/OS but should work in theory.
+
+#### Install Latest Python 3
+
+Rocket Software has [ported Python 2 and 3](https://www.rocketsoftware.com/zos-open-source) for Z/OS
+
+#### Install pyAIM via Pip
+
+`$ pip3 install pyaim`
+
+## Usage
+
+### Check AIMWebService Availability - check_service()
+
+#### Centralized Credential Provider (CCPPasswordREST) Method
+
+```python
+from pyaim import CCPPasswordREST
+
+aimccp = CCPPasswordREST('https://ccp.cyberarkdemo.example', verify=True) # set verify=False to ignore SSL
+service_status = aimccp.check_service()
+print(service_status)
+```
+
+### Retrieve Account - GetPassword()
+
+#### Credential Provider (CLIPasswordSDK) Method
+
+##### Supported Parameters
+
+* appid _(required)_
+* safe _(required)_
+* folder _(default: root)_
+* object _(this or `username` required)_
+* username _(this or `object` required)_
+* address
+* database
+* policyid
+* reason
+* query_format _(default: 1)_
+* connport
+* sendhash _(default: False)_
+* dual_accounts _(default: False)_
+
+For compatibility with Dual Accounts where you are referencing a `VirtualUsername` - use the `username` parameter and ensure `dual_accounts=True`.
+
+##### Example
+
+```python
+from pyaim import CLIPasswordSDK
+
+aimcp = CLIPasswordSDK('/opt/CARKaim/sdk/clipasswordsdk')
+response = aimcp.GetPassword(appid='appID',safe='safeName',object='objectName',output='PassProps.Username,Password')
+
+print('Full Response: {}'.format(response))
+print('Username: {}'.format(response['PassProps.Username']))
+print('Password: {}'.format(response['Password']))
+```
+
+#### Centralized Credential Provider (CCPPasswordREST) Method
+
+##### Supported Parameters
+
+* appid _(required)_
+* safe _(required)_
+* folder _(default: root)_
+* object _(this or `username` required)_
+* username _(this or `object` required)_
+* address
+* database
+* policyid
+* reason
+* query_format _(default: exact)_
+* dual_accounts _(default: False)_
+
+For compatibility with Dual Accounts where you are referencing a `VirtualUsername` - use the `username` parameter and ensure `dual_accounts=True`.
+
+##### Example
+
+```python
+from pyaim import CCPPasswordREST
+
+aimccp = CCPPasswordREST('https://ccp.cyberarkdemo.example', verify=True) # set verify=False to ignore SSL
+
+service_status = aimccp.check_service()
+
+if service_status == 'SUCCESS: AIMWebService Found. Status Code: 200':
+ response = aimccp.GetPassword(appid='appid',safe='safe',object='objectName',reason='Reason message')
+ print('Full Python Object: {}'.format(response))
+ print('Username: {}'.format(response['Username']))
+ print('Password: {}'.format(response['Content']))
+else:
+ raise Exception(service_status)
+```
+
+## Maintainer
+
+[@infamousjoeg](https://github.com/infamousjoeg)
+
+[![Buy me a coffee][buymeacoffee-shield]][buymeacoffee]
+
+[buymeacoffee]: https://www.buymeacoffee.com/infamousjoeg
+[buymeacoffee-shield]: https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png
+
+## Contributing
+
+For the time being, only internal CyberArk contributions are being considered.
+
+Feel free to report any feature requests or bugs on the [GitHub Issues](https://github.com/infamousjoeg/pyaim/issues) page.
+
+Keep checking back for an update regarding open Contributions in the near future.
+
+## License
+
+[MIT](LICENSE) © Joe Garcia, CISSP
+
+
+
+
+%package help
+Summary: Development documents and examples for pyaim
+Provides: python3-pyaim-doc
+%description help
+# pyAIM <!-- OMIT IN TOC -->
+
+![](assets/pyAIM-sm.png)
+
+![GitHub last commit](https://img.shields.io/github/last-commit/infamousjoeg/pyaim.svg) [![GitHub issues](https://img.shields.io/github/issues/infamousjoeg/pyaim.svg?color=blue)](https://github.com/infamousjoeg/pyaim/issues) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyaim.svg) ![GitHub top language](https://img.shields.io/github/languages/top/infamousjoeg/pyaim.svg?color=yellow) [![PyPI](https://img.shields.io/pypi/v/pyaim.svg)](https://pypi.org/project/pyaim) [![PyPI - Downloads](https://img.shields.io/pypi/dm/pyaim.svg?color=blue)](https://pypi.org/project/pyaim) [![Keybase PGP](https://img.shields.io/keybase/pgp/infamousjoeg.svg)](https://keybase.io/infamousjoeg) [![GitHub](https://img.shields.io/github/license/infamousjoeg/pyaim.svg?color=blue)](LICENSE)
+
+> CyberArk Application Access Manager Client Library for Python 3
+
+This project simplifies the interaction between a Python 3 application or script and CyberArk's Application Access Manager's Credential Provider using the appropriate CLIPasswordSDK executable for the Operating System being used. By simplifying this process, developers are only required to change four (4) lines of code in their Python 3 applications and scripts to securely retrieve privileged secrets from CyberArk's Privileged Access Security (PAS) Core Solution as opposed to thirty or more (30+) without the use of this provided Client Library.
+
+### New in Version 1.2.0: <!-- OMIT IN TOC -->
+
+Added support for all possible parameters for both AAM Credential Provider (CLIPasswordSDK) and AAM Central Credential Provider (CCPPasswordREST).
+
+## Table of Contents <!-- OMIT IN TOC -->
+
+- [pyAIM](#pyaim)
+ - [New in Version 1.2.0: <!-- OMIT IN TOC -->](#new-in-version-120)
+ - [Table of Contents <!-- OMIT IN TOC -->](#table-of-contents)
+ - [Install](#install)
+ - [Pre-Requisite](#pre-requisite)
+ - [Credential Provider (CLIPasswordSDK) Method](#credential-provider-clipasswordsdk-method)
+ - [Centralized Credential Provider (CCPPasswordREST) Method](#centralized-credential-provider-ccppasswordrest-method)
+ - [Windows](#windows)
+ - [Install Latest Python 3](#install-latest-python-3)
+ - [Install pyAIM via Pip](#install-pyaim-via-pip)
+ - [Linux](#linux)
+ - [Ubuntu/Debian](#ubuntudebian)
+ - [Install Latest Python 3](#install-latest-python-3-1)
+ - [Install pyAIM via Pip](#install-pyaim-via-pip-1)
+ - [RHEL/CentOS](#rhelcentos)
+ - [Install Latest Python 3](#install-latest-python-3-2)
+ - [RHEL](#rhel)
+ - [CentOS](#centos)
+ - [Install pyAIM via Pip](#install-pyaim-via-pip-2)
+ - [MacOS](#macos)
+ - [Z/OS](#zos)
+ - [Install Latest Python 3](#install-latest-python-3-3)
+ - [Install pyAIM via Pip](#install-pyaim-via-pip-3)
+ - [Usage](#usage)
+ - [Check AIMWebService Availability - check_service()](#check-aimwebservice-availability---check_service)
+ - [Centralized Credential Provider (CCPPasswordREST) Method](#centralized-credential-provider-ccppasswordrest-method-1)
+ - [Retrieve Account - GetPassword()](#retrieve-account---getpassword)
+ - [Credential Provider (CLIPasswordSDK) Method](#credential-provider-clipasswordsdk-method-1)
+ - [Supported Parameters](#supported-parameters)
+ - [Example](#example)
+ - [Centralized Credential Provider (CCPPasswordREST) Method](#centralized-credential-provider-ccppasswordrest-method-2)
+ - [Supported Parameters](#supported-parameters-1)
+ - [Example](#example-1)
+ - [Maintainer](#maintainer)
+ - [Contributing](#contributing)
+ - [License](#license)
+
+## Install
+
+### Pre-Requisite
+
+#### Credential Provider (CLIPasswordSDK) Method
+
+* CyberArk Application Access Manager Credential Provider installed locally.
+
+#### Centralized Credential Provider (CCPPasswordREST) Method
+
+* CyberArk Application Access Manager Centralized Credential Provider and AIMWebService
+
+For information on how to install either of these providers, please refer to CyberArk's Application Access Manager Installation Guide or reach out to your assigned Customer Success Technical Advisor.
+
+### Windows
+
+#### Install Latest Python 3
+
+[Install the Python 3 release for Windows](https://www.python.org/downloads/windows/)
+
+#### Install pyAIM via Pip
+
+`> pip3 install pyaim`
+
+### Linux
+
+#### Ubuntu/Debian
+
+##### Install Latest Python 3
+
+`$ sudo apt install -y python3 python3-pip`
+
+##### Install pyAIM via Pip
+
+`$ pip3 install pyaim`
+
+#### RHEL/CentOS
+
+##### Install Latest Python 3
+
+###### RHEL
+
+Follow the [EPEL Documentation](https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F) to ensure you have the EPEL Release repository available.
+
+`$ sudo yum install -y https://rhel7.iuscommunity.org/ius-release.rpm`
+
+`$ sudo yum update`
+
+`$ sudo yum install -y python36u python36u-libs python36u-devel python36u-pip`
+
+###### CentOS
+
+`$ sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpm`
+
+`$ sudo yum update`
+
+`$ sudo yum install -y python36u python36u-libs python36u-devel python36u-pip`
+
+##### Install pyAIM via Pip
+
+`$ pip3 install pyaim`
+
+### MacOS
+
+No support provided yet.
+
+### Z/OS
+
+pyAIM is untested on Z/OS but should work in theory.
+
+#### Install Latest Python 3
+
+Rocket Software has [ported Python 2 and 3](https://www.rocketsoftware.com/zos-open-source) for Z/OS
+
+#### Install pyAIM via Pip
+
+`$ pip3 install pyaim`
+
+## Usage
+
+### Check AIMWebService Availability - check_service()
+
+#### Centralized Credential Provider (CCPPasswordREST) Method
+
+```python
+from pyaim import CCPPasswordREST
+
+aimccp = CCPPasswordREST('https://ccp.cyberarkdemo.example', verify=True) # set verify=False to ignore SSL
+service_status = aimccp.check_service()
+print(service_status)
+```
+
+### Retrieve Account - GetPassword()
+
+#### Credential Provider (CLIPasswordSDK) Method
+
+##### Supported Parameters
+
+* appid _(required)_
+* safe _(required)_
+* folder _(default: root)_
+* object _(this or `username` required)_
+* username _(this or `object` required)_
+* address
+* database
+* policyid
+* reason
+* query_format _(default: 1)_
+* connport
+* sendhash _(default: False)_
+* dual_accounts _(default: False)_
+
+For compatibility with Dual Accounts where you are referencing a `VirtualUsername` - use the `username` parameter and ensure `dual_accounts=True`.
+
+##### Example
+
+```python
+from pyaim import CLIPasswordSDK
+
+aimcp = CLIPasswordSDK('/opt/CARKaim/sdk/clipasswordsdk')
+response = aimcp.GetPassword(appid='appID',safe='safeName',object='objectName',output='PassProps.Username,Password')
+
+print('Full Response: {}'.format(response))
+print('Username: {}'.format(response['PassProps.Username']))
+print('Password: {}'.format(response['Password']))
+```
+
+#### Centralized Credential Provider (CCPPasswordREST) Method
+
+##### Supported Parameters
+
+* appid _(required)_
+* safe _(required)_
+* folder _(default: root)_
+* object _(this or `username` required)_
+* username _(this or `object` required)_
+* address
+* database
+* policyid
+* reason
+* query_format _(default: exact)_
+* dual_accounts _(default: False)_
+
+For compatibility with Dual Accounts where you are referencing a `VirtualUsername` - use the `username` parameter and ensure `dual_accounts=True`.
+
+##### Example
+
+```python
+from pyaim import CCPPasswordREST
+
+aimccp = CCPPasswordREST('https://ccp.cyberarkdemo.example', verify=True) # set verify=False to ignore SSL
+
+service_status = aimccp.check_service()
+
+if service_status == 'SUCCESS: AIMWebService Found. Status Code: 200':
+ response = aimccp.GetPassword(appid='appid',safe='safe',object='objectName',reason='Reason message')
+ print('Full Python Object: {}'.format(response))
+ print('Username: {}'.format(response['Username']))
+ print('Password: {}'.format(response['Content']))
+else:
+ raise Exception(service_status)
+```
+
+## Maintainer
+
+[@infamousjoeg](https://github.com/infamousjoeg)
+
+[![Buy me a coffee][buymeacoffee-shield]][buymeacoffee]
+
+[buymeacoffee]: https://www.buymeacoffee.com/infamousjoeg
+[buymeacoffee-shield]: https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png
+
+## Contributing
+
+For the time being, only internal CyberArk contributions are being considered.
+
+Feel free to report any feature requests or bugs on the [GitHub Issues](https://github.com/infamousjoeg/pyaim/issues) page.
+
+Keep checking back for an update regarding open Contributions in the near future.
+
+## License
+
+[MIT](LICENSE) © Joe Garcia, CISSP
+
+
+
+
+%prep
+%autosetup -n pyaim-1.2.9
+
+%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-pyaim -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.9-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..66253c1
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+2927dd46b87766028266ee746bd2ffc6 pyaim-1.2.9.tar.gz