Skip to main content

Nortal Core CLI

Project description

Core CLI v0.10.3

Prerequisites

The following packages are used across python repositories. A global install of them all is highly recommended.

A running cluster from Local Helm with gateway service port forwarded. Details on port forwarding below.

WSL

If running on Windows, you may need to install distutils to install the service.

$ sudo apt-get install python3.10-distutils

Initial setup

$ invoke install-dev

Code Quality

Tests

invoke tests
invoke tests-coverage

Linting

invoke check-style
invoke isort

Running locally

Port forwarding

To access the gateway api locally, you will need to connect to the pod inside the cluster using kubefwd.

$ sudo kubefwd svc -n core -c ~/.kube/config

Neosctl

When running locally, if you do not manage your own virtual environments, you can use poetry to put you in a shell with access to the installed code.

$ poetry shell

Initialize profile

$ neosctl -p my-profile profile init
Initialising [default] profile.
Gateway API url [http://core-gateway.core-gateway:9000/api/gateway]: <http://gateway_api_url:port>
Registry API url [http://neos-registry.registry:80/api/registry]: <http://registry_api_url:port>
IAM API url [http://core-iam.core-iam:80/api/iam]: <http://iam_api_url:port>
Storage API url [http://core-storage.core-storage:9000/api/storage]: <http://storage_api_url:port>
Username: <username>
$ cat ~/.neosctl

To work with the same profile across multiple commands you can export the profile name as an environment variable.

$ neosctl -p my-profile product list
...
$ export NEOSCTL_PROFILE=my-profile
$ neosctl product list

Login

$ neosctl -p=<my-profile> auth login

Commands to work with data products

$ neosctl --help
$ neosctl product --help
$ neosctl metadata --help

To work with the same product across multiple commands you can export the product name as an environment variable.

$ neosctl product get my-data-product
...
$ export NEOSCTL_PRODUCT=my-data-product
$ neosctl product get

Generate docs

To generate docs in a markdown format, run the following command. The output DOCS.md file could be used to update the NEOS documentation site (docs.neosmesh.com).

pip install typer-cli
typer neosctl.cli utils docs --name neosctl --output DOCS.md

Releases

Release management is handled using bump2version. The below commands will tag a new release. This will also update the helm chart version, this should not be manually changed.

$ invoke bump-patch
$ invoke bump-minor
$ invoke bump-major
> vX.Y.Z

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

neosctl-0.10.3.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

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

neosctl-0.10.3-py3-none-any.whl (31.4 kB view details)

Uploaded Python 3

File details

Details for the file neosctl-0.10.3.tar.gz.

File metadata

  • Download URL: neosctl-0.10.3.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.4.17-2136.308.9.el8uek.x86_64

File hashes

Hashes for neosctl-0.10.3.tar.gz
Algorithm Hash digest
SHA256 055382aea121d72ef283094a96642d81a6b6ef2d967d712cd120b635418512f6
MD5 90afa8445364b8d766705e7b4699d2c3
BLAKE2b-256 0ae8df9a2770c76de7738bbfe3ef49c943af70f1214f62aefa350d31c7bd426b

See more details on using hashes here.

File details

Details for the file neosctl-0.10.3-py3-none-any.whl.

File metadata

  • Download URL: neosctl-0.10.3-py3-none-any.whl
  • Upload date:
  • Size: 31.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.4.17-2136.308.9.el8uek.x86_64

File hashes

Hashes for neosctl-0.10.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3608f45ffea7c909492bd4cfb710e59146b13163b8e47e8cdfeccfc6145bfb53
MD5 ec00fa71146322fbb2050f48f64d7ea2
BLAKE2b-256 ef979b8f9af01de4a39ac3e5be95d2c86773700c8274cfb19ae7723e6f7c036b

See more details on using hashes here.

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