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

Uploaded Source

Built Distribution

sashimi_cli-0.0.6-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sashimi_cli-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 f391a50476b3921babf1dc853b9784a0eab270a4174d14f88c4fc8493bb360e8
MD5 be056bf9723a3e9c4f823d263bcc7c6f
BLAKE2b-256 cd081129d41235888707488b5a25f61c90a30572c0d3f24b73e16af29098777d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sashimi_cli-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fc128221977eb42fa1a3c9c679d248b4f3c26d7015567ba36141ba2ab24a2ff4
MD5 37a36a5dc6a091f31f3917dbdfffff31
BLAKE2b-256 c0cd7c26fcd0042f6fc20052f008b51bef948f102ea7ec1eeb61301effaf79f0

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