Skip to main content

CLI utility and python client package for Sashimi headless CMS

Project description

exactcli

Install

pipx install sashimi

But you may use pip as well.

Config example

Config file is either .env in current directory or override it with SASHIMI_DOTENV=/path/file env variable.

config example:

SASHIMI_PROJECT=http://localhost:8000/ds/sandbox
SASHIMI_TOKEN=envtoken

These defaults will make your commands shorter.

Database support

# postgresql
pip install psycopg2

# mariadb / mysql
pip install mysqlclient

Usage

Get info about your project and datasets

exactcli --info

Upload new JSON file to project

exactcli --upload ~/repo/exact/tests/products.json --ds products --keypath products

Query it

exactcli --ds products --expr 'True' --sort price --limit 1
exactcli --ds products --expr 'brand=="Apple" and price<1000' --fields id brand title description price
exactcli --ds products --filter brand=\"Apple\" price__lt=2000
exactcli --ds products --filter 'brand="Apple"' price__lt=2000

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

sashimi_cli-0.0.1.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

sashimi_cli-0.0.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file sashimi_cli-0.0.1.tar.gz.

File metadata

  • Download URL: sashimi_cli-0.0.1.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.26.0

File hashes

Hashes for sashimi_cli-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f073d022b2e26e30dd2dd11c8f8bfc53ce13c5660617ff5406524c9a1478d85f
MD5 71ea33d9f1ef557a21dce5e8f1602b7d
BLAKE2b-256 94c265781dba276e3b116bb1c12ee59b31a3af4e7ffaec3c612d8d2408b5e525

See more details on using hashes here.

File details

Details for the file sashimi_cli-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sashimi_cli-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe2c01123a10707734d171f31552570c9f7711f98b46f33b7b13f1e636cc84c1
MD5 3202b79dc93d8cd8739ef724bda462ad
BLAKE2b-256 6cd40b2e70a37f3942bff5b801766eb86a12c67fa5c11a4ccfd53cc8c4023120

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