Skip to main content

NextCODE Command Line Interface

Requirements

  • Python 3.7

Installation

End-user installation

Prerequisites Note that having python3 (and a pip3 that points to that python) is a prerequisite, the easist way to fullfil this is to install both via Homebrew.

To install the package you have to run the following command:

$ pip3 install nextcode-cli -U

To verify that the installation was successful you can run the following command:

$ nextcode version
nextcode-cli/x.y.z (yyyy.mm.dd)

Developer installation

Start by pulling the sourcecode from git (usually from develop to be on the bleeding edge).

There are two ways to set up the CLI. We recommend trying to install it into your system python in develop mode by simply running the following command in the nextcode-cli folder (depending on your system setup you might need sudo)

$ pip3 install -e .

If you get any errors you can set up a local virtualenv in the nextcode-cli path:

$ source ./setup.sh
$ pip3 install -e .

Using this method means that you will always need to do source ./setup.sh to enter the virtualenv before using the tool, so we would recommend getting the first method to work unless you intend on make edits to the code yourself.

Set up a service profile

Create a service profile

For any work to happen a service profile must be defined. One example is the one here below, which is Platform Dev test specific. For QA purposes this is of course test environment dependent!:

The command is:

$ nextcode profile add <profile-name>

Follow the prompts to enter a server name and then log in through the browser window that opens up.

You can also set up the profile without a prompt like this:

$ nextcode profile add <profile-name> --domain=mydomain.wuxinextcode.com --api-key=<key>

Running the CLI for the first time

Once your installation has succeeded you can run the following command anywhere in your system:

nextcode status

Once you finish the authentication process you should be able to view workflow jobs:

nextcode workflow jobs

To start familiarizing yourself with the sdk you can use the --help option on all commands to see detailed information about their use.

$ nextcode --help
Usage: nextcode [OPTIONS] COMMAND [ARGS]...

  A utility for interfacing with WuXi Nextcode services.

  This tool allows you to communicate with the pipelines service, CSA,
  workflow service and GOR Query API. For all usage you will need to
  authenticate against the specific service profile you are using.

  Please look at the subcommands below for details.

Options:
  -v, --verbose [warning|error|info]
                                  Output logs for debugging
  -p, --profile TEXT              Use a specific profile for this command
  --help                          Show this message and exit.

Commands:
  csa_authenticate  Authenticate against CSA (for import).
  import            Import a TSV manifest into CSA.
  keycloak          Manage keycloak users Requires the keycloak admin...
  login             Authenticate against keycloak.
  pipelines         Root subcommand for pipelines functionality
  profile           Configure server profile to use.
  query             Root subcommand for query api functionality
  token             Print out an access token for the current profile
  version           Show the Nextcode CLI version.
  workflow          Root subcommand for workflow functionality

$ nextcode workflow --help
Usage: nextcode workflow [OPTIONS] COMMAND [ARGS]...

  Root subcommand for workflow functionality

Options:
  --help  Show this message and exit.

Commands:
  job        View or manage individual jobs.
  jobs       List jobs
  pipelines  List pipelines
  projects   List projects
  run        Start a new nextflow job.
  smoketest  Run a smoketest of the workflow service
  status     Show the status of the workflow service

Releasing

  • Bump version and update the a date in nextcodecli/VERSION
  • Merge to master
  • Tag in Gitlab
  • Watch the CI fireworks.

Metadata

Release files for nextcode-cli 3.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nextcode-cli 3.2.2
File Size Uploaded Provenance Actions
nextcode_cli-3.2.2.tar.gz 52.2 kB Without provenance Details for nextcode_cli-3.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nextcode-cli 3.2.2
File Interpreter ABI Platform Actions
nextcode_cli-3.2.2-py3-none-any.whl Python 3 none any Details for nextcode_cli-3.2.2-py3-none-any.whl

Total release size: 123.5 kB

Release files / nextcode_cli-3.2.2.tar.gz

Download URL nextcode_cli-3.2.2.tar.gz
Size 52.2 kB
Tags Source
SHA-256 checksum
How to use checksums
09a6f010e32b9691fc86dc49538a5a24ce944e8c993b7022433bd864dafbadbb
BLAKE2b-256 checksum
How to use checksums
52e3421d51a212c0314685c3b440c419529c212fde4a8636853dbfc4bf843dfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.10.22 Linux/7.0.0-1017-azure

Release files / nextcode_cli-3.2.2-py3-none-any.whl

Download URL nextcode_cli-3.2.2-py3-none-any.whl
Size 71.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
14ceb696f8fb14ef7db330e5374eea0fa6204d078f83c0de33739c16c8c7b0df
BLAKE2b-256 checksum
How to use checksums
17e183554c155cab6929147abcc9b36e6b09b29cb237b5e753f8ec4be033a470
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.10.22 Linux/7.0.0-1017-azure

Security for nextcode-cli 3.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.2.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page