Skip to main content

CLI Tool for inspecting JSON Data from the Codat API

Project description

CLIdat

CLIdat is a tool for inspecting Data from Codat.

The Command Line Interface itself is written with Click, whilst the output of the different commands is passed to a TUI from the Textual package.

I work in support at Codat, and have built this tool as a personal project to help with my day-job. This isn't an officially supported product.

Installation

CLIdat is distributed via the Python Package Index (PyPI). We reccomend installing it inside a virtual environment

(venv) user@host:~$ pip install clidat

Thanks to Textual, this software is cross-platform and should work well on Windows, Linux and MacOS.

Quick Start

(venv) user@host:~$ clidat auth
Your Codat API Key:

(venv) user@host:~$ clidat get-suppliers -id 2e14de3b-e2cf-4745-af24-a9a082b4c466

Clidat Get Companies

Docs

To see a list of all avaliable commands run:

(venv) user@host:~$ run clidat --help

  auth
  get-account
  get-account-transaction
  get-account-transactions
  ...

To get details on a particular command, just append the --help flag onto the end of the command, for example:

(venv) user@host:~$ clidat get-payment --help
Options:
  --payment TEXT          [required]
  -id, --company-id TEXT  [required]
  -j, --json              View plain JSON response
  --help                  Show this message and exit.

Project details


Download files

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

Source Distribution

clidat-0.1.2.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

clidat-0.1.2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file clidat-0.1.2.tar.gz.

File metadata

  • Download URL: clidat-0.1.2.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.4 Darwin/21.1.0

File hashes

Hashes for clidat-0.1.2.tar.gz
Algorithm Hash digest
SHA256 915d2e0ccee4aca78c41dc8ae54a7072c3760ab21c8367890555a092690ac6c9
MD5 6a62f9bdc3d96d0d488b66d09bc2a24b
BLAKE2b-256 9d4c48bbfdd8ba59821dca1cfec6b9ed4c86cee51407ccda9f455bcff660dd07

See more details on using hashes here.

File details

Details for the file clidat-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: clidat-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.4 Darwin/21.1.0

File hashes

Hashes for clidat-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c818169f4ed105000874b92fcea5ceddfe20aeb7858431e86d93466127488cb0
MD5 629dc7895144ef2d3dfd1ed2fe8d422f
BLAKE2b-256 f3cdf38ffb5930ad9f0b1d7c43b401a509ef01df12a8e23c41d71f15563592d7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page