Python client and module for Lacus
Use this module to interact with a Lacus instance.
Installation
pip install pylacus
Usage
Command line
You can use the pylacus command:
$ pylacus -h
usage: pylacus [-h] --url-instance URL_INSTANCE [--redis_up] {enqueue,status,result} ...
Query a Lacus instance.
positional arguments:
{enqueue,status,result}
Available commands
enqueue Enqueue a url for capture
status Get status of a capture
result Get result of a capture.
options:
-h, --help show this help message and exit
--url-instance URL_INSTANCE
URL of the instance.
--redis_up Check if redis is up.
Library
See API Reference
Example
Enqueue
from redis import Redis
from lacuscore import LacusCore
redis = Redis()
lacus = lacus = PyLacus("http://127.0.0.1:7100")
uuid = lacus.enqueue('google.fr')
Status of a capture
status = lacus.get_capture_status(uuid)
Capture result
result = lacus.get_capture(uuid)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pylacus-1.3.0.tar.gz
(5.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pylacus-1.3.0.tar.gz.
File metadata
- Download URL: pylacus-1.3.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.3.2 CPython/3.10.7 Linux/5.19.0-31-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
083bdfc63a5945f1ab0826db00911c1886f5b6a0c609a332bed48d14c329eaac
|
|
| MD5 |
356927233d33c21bca107e78310ca59d
|
|
| BLAKE2b-256 |
1a38515c5f55708a86fb23c5552a978e88648b37b5b288b9f2566b3342be16b8
|
File details
Details for the file pylacus-1.3.0-py3-none-any.whl.
File metadata
- Download URL: pylacus-1.3.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.3.2 CPython/3.10.7 Linux/5.19.0-31-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e66eae59c176a5ae352e541f23305e4f3daed11830ebd6d0899bfef60d0178b
|
|
| MD5 |
1f2b4603de5a9ceca72714c840837ad1
|
|
| BLAKE2b-256 |
9d2a853fd3a83cb23dd2e903ff7409e9361d66da8ffef8c55beb4c817800ab9a
|