Skip to main content

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 :

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiobastion-0.1.9.tar.gz (76.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiobastion-0.1.9-py3-none-any.whl (61.1 kB view details)

Uploaded Python 3

File details

Details for the file aiobastion-0.1.9.tar.gz.

File metadata

  • Download URL: aiobastion-0.1.9.tar.gz
  • Upload date:
  • Size: 76.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for aiobastion-0.1.9.tar.gz
Algorithm Hash digest
SHA256 d583a9272b7e360986aea8a06890a9bb3d3f1c6826997527ffbca0d02ca8eac7
MD5 eb366f3f55a0dc22b1d54d9621b84015
BLAKE2b-256 5f3bfdf85966e52fe5f4c5d49afe36c6ad7c5d90c1938081778b95d8ff6a99a4

See more details on using hashes here.

File details

Details for the file aiobastion-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: aiobastion-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 61.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for aiobastion-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 01cbea07a281f47729ac3faae84ee59d302579699634f79a5d5d72a25614221c
MD5 f3cf690b55b99ddba8d881e3471fd213
BLAKE2b-256 3354715672d8f5bea4021c9183a5e3bcfc9c6d5dc40ba4a6b95e65982917551a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page