Catalog PyPI
Back to packageRELEASE DETAILS

0.1.9

PyPI

aiobastion

Manage your Cyberark implementation

cyberark
Published4 Jun 2025
Direct dependencies4
Transitive dependenciesNot calculated

README

Version 0.1.9 documentation

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 :

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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 4

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
pyyaml
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.7",
  "evaluation": "NOT_EVALUATED"
}
pyyamlruntime
aiohttp
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.7",
  "evaluation": "NOT_EVALUATED"
}
aiohttpruntime
coverage
Environment
{
  "extras": "",
  "marker": "extra == \"test\"",
  "requires_python": ">=3.7",
  "evaluation": "NOT_EVALUATED"
}
coverage; extra == "test"runtime
unittest
Environment
{
  "extras": "",
  "marker": "extra == \"test\"",
  "requires_python": ">=3.7",
  "evaluation": "NOT_EVALUATED"
}
unittest; extra == "test"runtime

Distribution files

2 collected
aiobastion-0.1.9-py3-none-any.whl

bdist_wheel · 59.64 KB · Python py3

Source file
aiobastion-0.1.9.tar.gz

sdist · 74.42 KB · Python source

Source file

Repository

PENDING
labanquepostale/aiobastion

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:38 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:177ed48bc67383ddc000f4862de030abb185e2b5900fbc29127d55c3ef86d137

Other collected versions

View all collected versions →