Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Command line utility for Outlyer

Project description

.. _readme:

`Quick Example`_
----------------

install dlcli using pip

.. code-block:: none

pip install dlcli

set your org, account and api key by creating ~/dlcli.yaml

.. code-block:: none

---
account: account_name
key: key_from_account_settings
org: orgname
url: https://api.outlyer.com/v1

Or you can update the file interactively.

.. code-block:: none

dlcli set org acme-ltd

.. code-block:: none

dlcli set account staging

.. code-block:: none

dlcli set key xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

these get stored in ~/dlcli.yaml so the details only need to be changed when you are switching orgs or accounts

now verify you have a successful connection

.. code-block:: none

dlcli status

then get a list of all of your agents

.. code-block:: none

dlcli get agents

fun! this is a work in progress so if you want to collaborate please raise PR's



`Dataloop CLI Tool`_
--------------------

dlcli commands can be thought of as a series of nested commands, with each stage having its own options and flags.

.. code-block:: none

dlcli [FLAGS] COMMAND [FLAGS] SUBCOMMAND [FLAGS]


The square braces indicate optional elements. Some commands have flags, some do not. Some of those flags are optional, some are mandatory per the command. See the list of commands and flags for more information.

The first thing to know is that help is never far away. You can use the ``--help`` flag at any stage to discover which flags are available:

.. code-block:: none

dlcli --help

.. code-block:: none

dlcli COMMAND --help

.. code-block:: none

dlcli COMMAND SUBCOMMAND --help


Understand that using the ``--help`` flag in between two nested commands will result in the previous level ``--help`` output being shown.


``dlcli --help`` COMMAND will have the same output as ``dlcli --help``, and likewise, ``dlcli COMMAND --help SUBCOMMAND`` will have the same output as ``dlcli COMMAND --help``.


The top-level help output looks like this:

.. code-block:: none
$ dlcli --help
Usage: dlcli [OPTIONS] COMMAND [ARGS]...

Dataloop Command Line Tool

See https://www.dataloop.io


Options:
--debug Debug mode
--loglevel TEXT Log level
--logfile TEXT log file
--version Show the version and exit.
--help Show this message and exit.

Commands:
agents Dataloop Agents



Note that all available flags and commands for this level are shown. This pattern is repeated at each successive level of ``--help``

`Using the API outside of dlcli`_
---------------------------------

You can use the API code outside of the command line utility.

.. code-block:: python

from dlcli import api

settings = {
'url': 'https://api.outlyer.com/v1',
'org': 'org_name',
'account': 'account_name',
'key': 'api_key',
}

print api.agents.get_agents(**settings)

Where org_name, account_name and api_key need to be updated with your personal settings.

Project details


Release history Release notifications

This version
History Node

0.7.1

History Node

0.6.10

History Node

0.6.9

History Node

0.6.8

History Node

0.6.7

History Node

0.6.6

History Node

0.6.5

History Node

0.6.4

History Node

0.6.3

History Node

0.6.2

History Node

0.6.1

History Node

0.6.0

History Node

0.5.0

History Node

0.4.9

History Node

0.4.8

History Node

0.4.6

History Node

0.4.4

History Node

0.4.3

History Node

0.4.2

History Node

0.4.1

History Node

0.4.0

History Node

0.3.8

History Node

0.3.7

History Node

0.3.6

History Node

0.3.5

History Node

0.3.4

History Node

0.3.3

History Node

0.3.2

History Node

0.3.1

History Node

0.3.0

History Node

0.2.9

History Node

0.2.8

History Node

0.2.7

History Node

0.2.6

History Node

0.2.4

History Node

0.2.3

History Node

0.2.2

History Node

0.2.0

History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

History Node

0.0.47

History Node

0.0.46

History Node

0.0.45

History Node

0.0.44

History Node

0.0.43

History Node

0.0.42

History Node

0.0.41

History Node

0.0.40

History Node

0.0.39

History Node

0.0.38

History Node

0.0.37

History Node

0.0.36

History Node

0.0.35

History Node

0.0.34

History Node

0.0.33

History Node

0.0.32

History Node

0.0.31

History Node

0.0.30

History Node

0.0.29

History Node

0.0.28

History Node

0.0.27

History Node

0.0.26

History Node

0.0.25

History Node

0.0.24

History Node

0.0.23

History Node

0.0.22

History Node

0.0.21

History Node

0.0.20

History Node

0.0.19

History Node

0.0.18

History Node

0.0.17

History Node

0.0.16

History Node

0.0.15

History Node

0.0.14

History Node

0.0.13

History Node

0.0.12

History Node

0.0.11

History Node

0.0.10

History Node

0.0.9

History Node

0.0.8

History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
dlcli-0.7.1.tar.gz (18.8 kB) Copy SHA256 hash SHA256 Source None Aug 10, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page