Python CLI and module for lacus
Project description
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 pylacus import PyLacus
lacus = PyLacus("http://127.0.0.1:7100")
uuid = lacus.enqueue(url='google.fr')
Status of a capture
status = lacus.get_capture_status(uuid)
Capture result
result = lacus.get_capture(uuid)
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
pylacus-1.12.0.tar.gz
(6.0 kB
view details)
Built Distribution
File details
Details for the file pylacus-1.12.0.tar.gz
.
File metadata
- Download URL: pylacus-1.12.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 295d68c05f44782daf0d2dd7245bb1d30b9a074d4747872f11744b3fedb3c5c6 |
|
MD5 | 397efe442da44de4cd0391c1fe39c285 |
|
BLAKE2b-256 | 147229a788f9d0c15c267396a37ee7aa592f011052f0cf136f32aab321c69878 |
Provenance
The following attestation bundles were made for pylacus-1.12.0.tar.gz
:
Publisher:
release.yml
on ail-project/PyLacus
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pylacus-1.12.0.tar.gz
- Subject digest:
295d68c05f44782daf0d2dd7245bb1d30b9a074d4747872f11744b3fedb3c5c6
- Sigstore transparency entry: 147010794
- Sigstore integration time:
- Predicate type:
File details
Details for the file pylacus-1.12.0-py3-none-any.whl
.
File metadata
- Download URL: pylacus-1.12.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3c189b73e6d06cdb79e6ea536bb951d5b9a13f49099996b0553bedff3cd4dca |
|
MD5 | 9c95db50698d312e1001ef456809df2a |
|
BLAKE2b-256 | 3832e17e9c4189b20e63502739454293ef21e3ea5edb8f3f3bd1e3dd863c6521 |
Provenance
The following attestation bundles were made for pylacus-1.12.0-py3-none-any.whl
:
Publisher:
release.yml
on ail-project/PyLacus
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pylacus-1.12.0-py3-none-any.whl
- Subject digest:
d3c189b73e6d06cdb79e6ea536bb951d5b9a13f49099996b0553bedff3cd4dca
- Sigstore transparency entry: 147010798
- Sigstore integration time:
- Predicate type: