Skip to main content

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


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.25.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylacus-1.25.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file pylacus-1.25.0.tar.gz.

File metadata

  • Download URL: pylacus-1.25.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pylacus-1.25.0.tar.gz
Algorithm Hash digest
SHA256 d6e40d8e9de46f31e009d79a54fdb90188ba953724f4e916d9b02a9dabefe53e
MD5 d40e86289bacd38485440bf06490c1a7
BLAKE2b-256 119a6e674a796df2f36cdc18abbef3f9a326012813b22b955dc66bd2835501c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylacus-1.25.0.tar.gz:

Publisher: release.yml on ail-project/PyLacus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pylacus-1.25.0-py3-none-any.whl.

File metadata

  • Download URL: pylacus-1.25.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pylacus-1.25.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9458fd0701ce24f81c21e9beefb3ae8c8715ee0ab1b987df8ab7bc51132d709
MD5 237d494522ed73e522b811b5b7c4e4d0
BLAKE2b-256 1f562fa7df904488474ee70ff2805d65043fddbc4837baa2439ffa651df33513

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylacus-1.25.0-py3-none-any.whl:

Publisher: release.yml on ail-project/PyLacus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page