Skip to main content

Core of Lacus, usable as a module

Project description

Documentation Status

Modulable Lacus

Lacus, but as a simple module.

Installation

pip install lacuscore

Design

LacusCore is the part taking care of enqueuing and capturing URLs or web enabled documents. It can be used as a module in your own project, see below for the usage

Lacus is the webservice that uses LacusCore, and you can use Pylacus to query it.

The enqueue, get_capture_status, and get_capture methods if LacusCore and PyLacus have the same parameters which means you can easily use them interchangeably in your project.

Interactive Sessions

LacusCore can also manage interactive captures when it is initialized with interactive_allowed=True and headed_allowed=True. In that mode, enqueue(...) accepts interactive=True (and an optional interactive_ttl in seconds, default 600) and keeps the browser session alive until a trusted caller triggers the final capture via request_session_capture(uuid).

Interactive session state is split into two layers:

  • get_session_metadata(uuid) returns the backend-agnostic public state for a session: status, view URL, lifecycle timestamps, and whether a final capture has been requested.
  • get_session_backend_metadata(uuid) returns backend-specific transport data for trusted local infrastructure only. This is where implementation details such as xpra unix socket paths belong.

That split keeps API consumers decoupled from the current xpra implementation while still allowing a local sidecar proxy to connect to the active session.

For more information regarding the usage of the module and a few examples, please refer to the documentation

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

lacuscore-1.24.0.tar.gz (24.3 kB view details)

Uploaded Source

Built Distribution

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

lacuscore-1.24.0-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

Details for the file lacuscore-1.24.0.tar.gz.

File metadata

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

File hashes

Hashes for lacuscore-1.24.0.tar.gz
Algorithm Hash digest
SHA256 dcc704b869defd05e94c7c283e0b067e15f4ee6458abc5b527255bdc1ddae517
MD5 aa29b4a1a5f1ac5f834a7b96edca763f
BLAKE2b-256 ee12cdeb9f3fa31f9d9a6d01d9431dc30fb4956e792fe3e03c768c9e01bce21b

See more details on using hashes here.

Provenance

The following attestation bundles were made for lacuscore-1.24.0.tar.gz:

Publisher: release.yml on ail-project/LacusCore

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

File details

Details for the file lacuscore-1.24.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for lacuscore-1.24.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f329e6db25c3ea7db4f05b75cb566008964fe1ba8ccfc6bbfb872f1fb777df8a
MD5 d38d0d312efb3ac5a551f1a92445185d
BLAKE2b-256 35d2e1f9a1b08cfae349ead7b086876a4d1cd60fce21f8a711e137ffca0ebac0

See more details on using hashes here.

Provenance

The following attestation bundles were made for lacuscore-1.24.0-py3-none-any.whl:

Publisher: release.yml on ail-project/LacusCore

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