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.
Metadata
Release files for aiobastion 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aiobastion-0.1.9.tar.gz | 76.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiobastion-0.1.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 137.3 kB
Release files / aiobastion-0.1.9.tar.gz
| Download URL | aiobastion-0.1.9.tar.gz |
|---|---|
| Size | 76.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d583a9272b7e360986aea8a06890a9bb3d3f1c6826997527ffbca0d02ca8eac7
|
|
BLAKE2b-256 checksum How to use checksums |
5f3bfdf85966e52fe5f4c5d49afe36c6ad7c5d90c1938081778b95d8ff6a99a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.22
|
Release files / aiobastion-0.1.9-py3-none-any.whl
| Download URL | aiobastion-0.1.9-py3-none-any.whl |
|---|---|
| Size | 61.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
01cbea07a281f47729ac3faae84ee59d302579699634f79a5d5d72a25614221c
|
|
BLAKE2b-256 checksum How to use checksums |
3354715672d8f5bea4021c9183a5e3bcfc9c6d5dc40ba4a6b95e65982917551a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.22
|
Security for aiobastion 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.