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.4.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

sashimi_cli-0.0.4-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sashimi_cli-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 7a68db9626a42a83e35fc49547978e7e723be0cb9a6da7eddaab3bacd319496c
MD5 8e785262c755d49788ac7ec7cf0344d5
BLAKE2b-256 40a61c9c3508cd3a368764feada9fca55dc77885e4837d8267dca9117c3146cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sashimi_cli-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dd4ccc293963d72bd227a1cf48c703b07d52b9c2bd91d20b2e3d163c41b203dd
MD5 037ce7c60fe2ac59327beb80b91b0d90
BLAKE2b-256 41e3da697df8a3d7753b08dc74e4b3a0a096bb940c5341dab67da5869c85870b

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