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
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.21.2.tar.gz.
File metadata
- Download URL: pylacus-1.21.2.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7ff42544c58aa721fbed51f519da0a7ebf5b5fec18a2f8412c1c465b3af1c29
|
|
| MD5 |
dcf119c9852ce008edf4145b752208b7
|
|
| BLAKE2b-256 |
0047e718172da7a5d35c9bab281e6ef9bac69f2a30e276978418fe3f80a30e9b
|
Provenance
The following attestation bundles were made for pylacus-1.21.2.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.21.2.tar.gz -
Subject digest:
e7ff42544c58aa721fbed51f519da0a7ebf5b5fec18a2f8412c1c465b3af1c29 - Sigstore transparency entry: 843662291
- Sigstore integration time:
-
Permalink:
ail-project/PyLacus@33d0297b40e4ad6351a221500d004f545a858478 -
Branch / Tag:
refs/tags/v1.21.2 - Owner: https://github.com/ail-project
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@33d0297b40e4ad6351a221500d004f545a858478 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pylacus-1.21.2-py3-none-any.whl.
File metadata
- Download URL: pylacus-1.21.2-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7c938e5a8eb4b0dbe2422344532436574b287d1c8330055f8a77530d61ca3a9
|
|
| MD5 |
0bd32c2f9ba6b67f5b7e097d9e599c58
|
|
| BLAKE2b-256 |
cef002078b6e841f727e3b2f01fc7255fef80c6d0f034da167adb00375c9b84f
|
Provenance
The following attestation bundles were made for pylacus-1.21.2-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.21.2-py3-none-any.whl -
Subject digest:
d7c938e5a8eb4b0dbe2422344532436574b287d1c8330055f8a77530d61ca3a9 - Sigstore transparency entry: 843662327
- Sigstore integration time:
-
Permalink:
ail-project/PyLacus@33d0297b40e4ad6351a221500d004f545a858478 -
Branch / Tag:
refs/tags/v1.21.2 - Owner: https://github.com/ail-project
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@33d0297b40e4ad6351a221500d004f545a858478 -
Trigger Event:
release
-
Statement type: