Panoramic CLI
This repository contains the Panoramic Command Line tool. This tool allows you to create & maintain your Panoramic data models. It is built with Python 3.6+ and can be installed via PyPI or other similar tools.
Installation
To install the CLI, use pip or pipenv:
$ pip install -U panoramic-cli
Usage
Once you install the CLI tool, you can call it using pano on the command line. For more information, run pano with no commands to see the help information:
Usage: pano [OPTIONS] COMMAND [ARGS]...
Options:
--debug Enables debug mode
--version Show the version and exit.
-h, --help Show this message and exit.
Commands:
configure Configure pano CLI options
detect-joins Detect joins under a dataset
field Commands on local field files.
init Initialize metadata repository
list-companies List available companies
list-connections List available data connections
pull Pull models from remote
push Push models to remote
scan Scan models from source
validate Validate local files
Release process
To release a new version of the library, follow these steps:
- In your PR, update version in __version__.py and add entry to CHANGELOG.md
- After merge, tag the commit with version number from setup.py. For example
git tag v0.1.1. - Once the tag is pushed, it will trigger a build with GitHub Actions, which will publish the new version on PyPI and create a release on GitHub.
Development
Virtual Environment Using venv
Add python virtual environment using python venv (adds .venv inside current directory):
> python3 -m venv .venv
Then, you can switch to it from command-line using following command:
> source .venv/bin/activate
Virtual Environment Using pyenv
Alternatively if you use pyenv and pyenv-virtualenv, you can create virtual environment using:
> pyenv virtualenv pano-cli
And use the created virtual environment:
> pyenv local pano-cli
Build and Run
Use following command to install dependencies (make sure you have correct python environment active):
> make install
Now you should have pano package available. First create config. You need to ask friendly SRE Team Member for OAuth credentials for yourself.
> pano configure
And finally you are ready to use pano. You can find all commands in help:
> pano -h
Tests
Use following command to run all tests:
> make test
Use following command to run all other checks:
> make lint
Pre commit hooks
You can install pre-commit. It is useful to avoid commiting code that doesn't pass the linter. It installs git hooks that run pre-commit.
> make pre-commit-install
VSCode
You can use following debug config to run pano cli using VSCode debugger:
{
"name": "Python: Pano CLI Scan",
"type": "python",
"request": "launch",
"module": "panoramic.cli",
"args": ["scan", "testsource"]
}
Metadata
Release files for panoramic-cli 1.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| panoramic-cli-1.7.1.tar.gz | 69.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| panoramic_cli-1.7.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 143.3 kB
Release files / panoramic-cli-1.7.1.tar.gz
| Download URL | panoramic-cli-1.7.1.tar.gz |
|---|---|
| Size | 69.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea3e43fcda7e6572ca366714624afe54c4c238742c65f8e06e1fb799cb4e9e21
|
|
BLAKE2b-256 checksum How to use checksums |
7791a85e72ba8e6512d3109b00cfbd63527be2746ddbbe4e6d383dca0945e8a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
|
Release files / panoramic_cli-1.7.1-py3-none-any.whl
| Download URL | panoramic_cli-1.7.1-py3-none-any.whl |
|---|---|
| Size | 74.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6759c4255b77ba8cef14cae239152c43e441e4d8a2ba7fbf6824447ab771f07
|
|
BLAKE2b-256 checksum How to use checksums |
e982ec347882e0fec9500d67c1885feb92e3c3280ff8d545ce1f85d0d68d5a62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
|
Security for panoramic-cli 1.7.1
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.