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

Uploaded Source

Built Distribution

pylacus-1.15.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

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

Hashes for pylacus-1.15.1.tar.gz
Algorithm Hash digest
SHA256 7fb2e4d78cdd911817d779f1c7317b77e5c336557947662163f7e8f957398718
MD5 1a91e5db5bdeb2894d272ed8e1d19e9e
BLAKE2b-256 d83ded733ddeac7eba509bd106bb6e0b3144e7ef158e1535cdd7bcced0193a87

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylacus-1.15.1.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.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

Hashes for pylacus-1.15.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7abccdff66840a9b66d71440e8517a3afceacbe2110dcae85bcde7ac712cf6a8
MD5 880b613be908570cbbbbafeff99f16cc
BLAKE2b-256 89c5eff4dacbf8373afa1bc8433f635696de99177ba03b061fea8acc95ee9d0d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylacus-1.15.1-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 Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page