Integration examples
Repository with examples
All examples of working with Passwork integration tools are collected in a separate repository on GitHub. The repository contains ready-to-use code examples demonstrating various Passwork integration scenarios.
Installation
Before using the examples, you need to install the corresponding tools:
- Python connector: installation is described in Python connector
- CLI utility: installation is described in CLI utility
In repository
Examples for Python connector
In the python section, you will find ready-to-use scripts and code snippets demonstrating:
- Basic operations: authorization, working with sessions;
- Vault management: creating, retrieving, updating, and deleting vaults;
- Working with items: creating, reading, updating, and deleting items with data;
- Folder management: creating folder structures, moving items;
- User management: managing users, groups, and access rights;
- Attachment handling: uploading and retrieving files attached to items;
- Automation: example scripts for automating routine tasks.
Examples for CLI utility
The cli section presents practical examples of using CLI in various modes:
execmode: integration into scripts and commands with automatic substitution of passwords from items and shortcuts into environment variables;getmode: retrieving data from items and shortcuts for use in scripts;updatemode: updating items and shortcuts via command line;apimode: direct API method calls via CLI;- CI/CD integration: examples of use in continuous integration and deployment pipelines;
- Docker: examples of using CLI in containers.
The repository is constantly updated with new examples and kept up to date in accordance with updates to the Passwork API and tools.
Share your examples
If you have Passwork integration examples that you would like to share with the community, we would be happy to accept a pull request to the passwork-integration-examples repository.
We will add a link to the example author so other users can learn about your contribution to the Passwork ecosystem.
Useful links
- Python connector — main Python connector repository with source code
- Python connector examples — examples of using the Python connector
- CLI utility examples — examples of using the CLI utility
- Examples repository — repository with integration examples