Skip to content

bitmakerla/estela-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

estela CLI

Code style: black version python-version

estela CLI is a command line client to interact with the estela API. It allows the user to perform the following actions:

  • Link a Scrapy project with a project in estela.
  • Create projects, jobs, and cronjobs in estela.
  • Get the data of a job.
$ estela
Usage: estela [OPTIONS] COMMAND [ARGS]...

Options:
  --version   Show the version and exit.
  -h, --help  Show this message and exit.

Commands:
  context  Show your current context
  create   Create a resource
  data     Retrieve data from a given job and save it locally
  delete   Delete a resource
  deploy   Deploy Scrapy project to estela API
  init     Initialize estela project for existing scrapy project
  list     Display the available resources
  login    Save your credentials
  logout   Remove your credentials
  stop     Stop an active job or cronjob
  update   Update a resource

Installation

estela CLI is available on PyPI:

$ python -m pip install estela

Or, you can install estela CLI manually:

$ python setup.py install

Testing

$ pip install -r requirements/test.txt
$ python tests.py

Formatting

$ pip install -r requirements/dev.txt
$ black .

Documentation

First install estela CLI.

$ pip install -r requirements/dev.txt
$ mkdocs serve