Manage your Cyberark implementation
Project description
aiobastion
aiobastion is a simple and fully asynchronous framework for Cyberark API written in Python 3.11 with asyncio and aiohttp. It helps you to manage your Cyberark implementation faster and in an intuitive way.
Examples
See examples of usage in the documentation
Quick (and dirty) start
List safes
Here's a minimal python snippet to list safes
import aiobastion
import asyncio
from aiobastion import GetTokenException
async def main():
# Define your PVWA host here
pvwa_host = "pvwa.mycompany.fr"
vault = aiobastion.EPV(serialized={'api_host': pvwa_host})
# Define login and password
login = input("Login: ")
password = input("Password: ")
# Login to the PVWA
try:
await vault.login(login, password)
except GetTokenException as err:
print(f"An error occured while login : {err}")
await vault.close_session()
exit(0)
# Working with PVWA
async with vault as epv:
# For example, listing all safes
safes = await epv.safe.list()
for s in safes:
print(s)
if __name__ == '__main__':
asyncio.run(main())
Getting started
Define a config file, and start using functions to avoid spending hours in annoying tasks in the PVWA :
- Accounts manipulation
- Safe manipulation
- User manipulation
- Check the documentation for more
Documentation
The documention is hosted on readthedocs : https://aiobastion.readthedocs.io/en/latest/index.html
Rationale
I've been working on Cyberark projects for years and I see everywhere a profusion of scripts, very often complicated and long to execute for very simple tasks (sometimes even with a "do not turn off" post-it on the screen). This package makes it quick and easy to accomplish without having to deal with the specifics of the Cyberark API. The acquisition time may be longer than for other well-known libraries, but, believe me, you will save this time very quickly.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aiobastion-0.1.8.tar.gz
.
File metadata
- Download URL: aiobastion-0.1.8.tar.gz
- Upload date:
- Size: 76.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5506ac10dc50e7ff3c6c43c1071d95d22e4242916f21113bc729821d226b4ea0 |
|
MD5 | 5bc701a040154a3fdaca6f823c02b432 |
|
BLAKE2b-256 | a3bef3bf964e0342d5a43354d487b8fa85c3f3e15661f4431d7df8a892c05f16 |
File details
Details for the file aiobastion-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: aiobastion-0.1.8-py3-none-any.whl
- Upload date:
- Size: 61.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7769cfa978ff78508e8a555a35db339d4479dfdced5bc5e1637d7dd3a6a3787 |
|
MD5 | ca20413737b93a4e2f06b679c0f6d166 |
|
BLAKE2b-256 | e7fd8ea24b7b1c3ff5fe77d585652ba019e888d2b39ce5df9771b71b208b0452 |