pylacus


Namepylacus JSON
Version 1.9.0 PyPI version JSON
download
home_pagehttps://github.com/ail-project/PyLacus
SummaryPython CLI and module for lacus
upload_time2024-03-29 15:38:40
maintainerNone
docs_urlNone
authorRaphaël Vinot
requires_python<4.0,>=3.8
licenseBSD-3-Clause
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python client and module for Lacus

Use this module to interact with a [Lacus](https://github.com/ail-project/lacus) instance.

## Installation

```bash
pip install pylacus
```

## Usage

### Command line

You can use the `pylacus` command:

```bash
$ 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](https://pylacus.readthedocs.io/en/latest/api_reference.html)

# Example

## Enqueue

```python

from redis import Redis
from lacuscore import LacusCore

redis = Redis()
lacus = lacus = PyLacus("http://127.0.0.1:7100")
uuid = lacus.enqueue('google.fr')
```

## Status of a capture

```python
status = lacus.get_capture_status(uuid)
```

## Capture result

```python
result = lacus.get_capture(uuid)
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ail-project/PyLacus",
    "name": "pylacus",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Rapha\u00ebl Vinot",
    "author_email": "raphael.vinot@circl.lu",
    "download_url": "https://files.pythonhosted.org/packages/01/8e/58bbbf85ae9a5f57d7d5a2c64d27b272603995b009814b0b64eb6e98a6c7/pylacus-1.9.0.tar.gz",
    "platform": null,
    "description": "# Python client and module for Lacus\n\nUse this module to interact with a [Lacus](https://github.com/ail-project/lacus) instance.\n\n## Installation\n\n```bash\npip install pylacus\n```\n\n## Usage\n\n### Command line\n\nYou can use the `pylacus` command:\n\n```bash\n$ pylacus -h\nusage: pylacus [-h] --url-instance URL_INSTANCE [--redis_up] {enqueue,status,result} ...\n\nQuery a Lacus instance.\n\npositional arguments:\n  {enqueue,status,result}\n                        Available commands\n    enqueue             Enqueue a url for capture\n    status              Get status of a capture\n    result              Get result of a capture.\n\noptions:\n  -h, --help            show this help message and exit\n  --url-instance URL_INSTANCE\n                        URL of the instance.\n  --redis_up            Check if redis is up.\n\n```\n\n### Library\n\nSee [API Reference](https://pylacus.readthedocs.io/en/latest/api_reference.html)\n\n# Example\n\n## Enqueue\n\n```python\n\nfrom redis import Redis\nfrom lacuscore import LacusCore\n\nredis = Redis()\nlacus = lacus = PyLacus(\"http://127.0.0.1:7100\")\nuuid = lacus.enqueue('google.fr')\n```\n\n## Status of a capture\n\n```python\nstatus = lacus.get_capture_status(uuid)\n```\n\n## Capture result\n\n```python\nresult = lacus.get_capture(uuid)\n```\n\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "Python CLI and module for lacus",
    "version": "1.9.0",
    "project_urls": {
        "Documentation": "https://pylacus.readthedocs.io/en/latest/index.html",
        "Homepage": "https://github.com/ail-project/PyLacus",
        "Repository": "https://github.com/ail-project/PyLacus"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "52887249608e0b03b913b685a8dfd764d17b89fcf1c489a61024a9e6621561f7",
                "md5": "15ad8c1d72b7eff5ea389a08eebeb2ca",
                "sha256": "c2a794e6eb9664a007b6f3ff6ffd3403201bafa5d6b23d2f9dd231c00bebe939"
            },
            "downloads": -1,
            "filename": "pylacus-1.9.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "15ad8c1d72b7eff5ea389a08eebeb2ca",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 6920,
            "upload_time": "2024-03-29T15:38:37",
            "upload_time_iso_8601": "2024-03-29T15:38:37.374760Z",
            "url": "https://files.pythonhosted.org/packages/52/88/7249608e0b03b913b685a8dfd764d17b89fcf1c489a61024a9e6621561f7/pylacus-1.9.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "018e58bbbf85ae9a5f57d7d5a2c64d27b272603995b009814b0b64eb6e98a6c7",
                "md5": "7b4a182dcb22e76745c772329a42271f",
                "sha256": "0007d0be21005d8ffc07d7d129c42c440cbea6334badf21ed31be2d8bface207"
            },
            "downloads": -1,
            "filename": "pylacus-1.9.0.tar.gz",
            "has_sig": false,
            "md5_digest": "7b4a182dcb22e76745c772329a42271f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8",
            "size": 5991,
            "upload_time": "2024-03-29T15:38:40",
            "upload_time_iso_8601": "2024-03-29T15:38:40.546332Z",
            "url": "https://files.pythonhosted.org/packages/01/8e/58bbbf85ae9a5f57d7d5a2c64d27b272603995b009814b0b64eb6e98a6c7/pylacus-1.9.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-29 15:38:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ail-project",
    "github_project": "PyLacus",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pylacus"
}
        
Elapsed time: 0.21386s