An extensible framework for building browser automations.
Project description
Cantaloupe
An extensible framework for building browser automations.
Note: This library is still very much WIP 🧪. This means that breaking changes can be introduced at any point in time.
Getting Started
Installation
$ pip install cantaloupe
Usage
$ poetry run cantaloupe --help
Example Workflow
A workflow is a YAML file that describes a series of steps to be executed. The following example workflow will open Google and type "cantaloupe" into the search bar.
Note: nothing will actually happen until a cantaloupe plugin is installed that implements the logic to translate the workflow steps into browser actions. Please see the Plugins section for more information.
name: "Google Search"
steps:
- action: goto
config:
url: "https://google.com"
- action: type
config:
selector: "input[name='q']"
text: "cantaloupe"
Plugins
- cantaloupe-playwright coming soon
Development
Requirements
- Python >= 3.10
- Poetry
Creating plugins
Plugins are created by implementing the cantaloupe hookspec. See cantaloupe/hookspecs.py for the hookspecs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cantaloupe-0.1.2.tar.gz
(7.2 kB
view hashes)
Built Distribution
cantaloupe-0.1.2-py3-none-any.whl
(10.2 kB
view hashes)
Close
Hashes for cantaloupe-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbcca9c35c01cb0e3a674d00b14cc800e45c7f6e9bb8519730bfa79fa39a32a5 |
|
MD5 | 9452d2e16a1ce7dd105fe4fecee0a330 |
|
BLAKE2b-256 | 245d9c6839176f0fe9c6ad57d09eb46edbd88a514c4a4a8edd52b90625827c24 |