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.15.1.tar.gz
(6.2 kB
view details)
Built Distribution
File details
Details for the file pylacus-1.15.1.tar.gz
.
File metadata
- Download URL: pylacus-1.15.1.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
7fb2e4d78cdd911817d779f1c7317b77e5c336557947662163f7e8f957398718
|
|
MD5 |
1a91e5db5bdeb2894d272ed8e1d19e9e
|
|
BLAKE2b-256 |
d83ded733ddeac7eba509bd106bb6e0b3144e7ef158e1535cdd7bcced0193a87
|
Provenance
The following attestation bundles were made for pylacus-1.15.1.tar.gz
:
Publisher:
release.yml
on ail-project/PyLacus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
pylacus-1.15.1.tar.gz
-
Subject digest:
7fb2e4d78cdd911817d779f1c7317b77e5c336557947662163f7e8f957398718
- Sigstore transparency entry: 228758460
- Sigstore integration time:
-
Permalink:
ail-project/PyLacus@7f3cdbaf30a56d3185cf4fb1dd1e20561b2529fe
-
Branch / Tag:
refs/tags/v1.15.1
- Owner: https://github.com/ail-project
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
release.yml@7f3cdbaf30a56d3185cf4fb1dd1e20561b2529fe
-
Trigger Event:
release
-
Statement type:
File details
Details for the file pylacus-1.15.1-py3-none-any.whl
.
File metadata
- Download URL: pylacus-1.15.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
7abccdff66840a9b66d71440e8517a3afceacbe2110dcae85bcde7ac712cf6a8
|
|
MD5 |
880b613be908570cbbbbafeff99f16cc
|
|
BLAKE2b-256 |
89c5eff4dacbf8373afa1bc8433f635696de99177ba03b061fea8acc95ee9d0d
|
Provenance
The following attestation bundles were made for pylacus-1.15.1-py3-none-any.whl
:
Publisher:
release.yml
on ail-project/PyLacus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
pylacus-1.15.1-py3-none-any.whl
-
Subject digest:
7abccdff66840a9b66d71440e8517a3afceacbe2110dcae85bcde7ac712cf6a8
- Sigstore transparency entry: 228758476
- Sigstore integration time:
-
Permalink:
ail-project/PyLacus@7f3cdbaf30a56d3185cf4fb1dd1e20561b2529fe
-
Branch / Tag:
refs/tags/v1.15.1
- Owner: https://github.com/ail-project
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
release.yml@7f3cdbaf30a56d3185cf4fb1dd1e20561b2529fe
-
Trigger Event:
release
-
Statement type: