API and integrations
Python сonnector
6 min
passwork python connector is a tool that simplifies integration of passwork with company infrastructure for programmers and devops engineers the connector allows quick and secure automation of password, vault, and access management without diving into the details of low level api interaction and cryptography main tasks and benefits integration simplification the connector eliminates the need to manually implement api work, encryption, and sessions all basic operations are reduced to simple methods client side security all client cryptography (encryption, decryption, master key work) is implemented inside the connector your secrets are always protected — even when working with open api session management the connector allows saving and restoring sessions to avoid re authorization on every script run flexibility for all api methods that are not covered by separate connector functions, a universal call method is implemented with it, you can access any passwork api endpoints while maintaining security and convenience usage examples creating a new password password = { "name" "service name", "login" "username", "password" "secure password", "vaultid" vault id, "folderid" folder id, # optional "description" "description", "url" "https //service url com", "tags" \["tag1", "tag2"], "customs" \[ { "name" "additional login", "value" "second username", "type" "text" }, { "name" "recovery code", "value" "recovery code value", "type" "password" }, { "name" "totp", "value" "jbswy3dpehpk3pxp", "type" "totp" } ], "attachments" \[ { "path" "path/to/file png", "name" "file png" } ] } password id = client create password(password) direct api calls for operations not covered by helper methods \# direct api call response = client call("delete", f"/api/v1/folders/{folder id}") what python connector is suitable for password and vault management automation from python scripts; passwork integration with ci/cd pipelines and internal services; secure centralized access management and change auditing; quick passwork implementation in corporate infrastructure without deep api knowledge security all secrets are encrypted and decrypted only on the client side (if client side encryption is enabled); session data can be stored in encrypted form; all operations use a master key that never leaves your environment technical documentation review the technical documentation for python connector