A tools collection for Cryptpad. Currently, there is a command line tool to create pads, set and get pad content. Cryptpad lacks a proper API for external tools, so browser automation via Selenium web driver is used for a quick-and-dirty solution without implementing the crypto stuff. It's will likely break with future versions, but I hope there will be a better way to interact with Cryptpad.
- Python 3.8
- Chromium / Chromedriver
- Build / dependency management: Nix
If you have installed the Nix, running the CLI script is easy. Nix installs all dependencies including Chromium / Chromedriver.
- Clone the repository with:
git clone https://github.com/dpausp/pycryptpad-tools
- Enter the project root folder:
cd pycryptpad-tools
- Run the CLI script to see the available commands:
./cryptpad-cli --help
-
Running the Nix wrapper script ./cryptpad-cli takes some seconds. If you want to use the CLI regulary with shorter startup time, install it with:
nix-env -if .
If your shell is configured correctly (nix bin dir in PATH), you should be able to run the cryptpad-cli command from anywhere.
The shell environment for development can be prepared using the Nix Package Manager.
It includes Python, development / testing tools and dependencies for the project itself.
The following instructions assume that the Nix package manager is already installed, nix-shell
is available in PATH.
- Clone the repository with:
git clone https://github.com/dpausp/pycryptpad
- Enter nix shell in the project root folder to open a shell which is your dev environment:
cd pycryptpad-tools nix-shell
AGPLv3, see LICENSE
- Tobias 'dpausp'