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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sashimi_cli-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 f91bc9fe99d7c2839d889eff135d882abf955f93d19599bca6e26886643418f2
MD5 e946cdb9c0f971443bab388353cdcc60
BLAKE2b-256 fc3da9a522bab8b2594502ec255d2f26fed1653162ce9c13d1fb2d53d05c573a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sashimi_cli-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 48563b8735c9faf2c58919bd747c8201f231efbe0d53d94b1c8c4d19dd77b603
MD5 de4dff0c1c4873fcc81aaacf148cb0e4
BLAKE2b-256 ae8d66924fab7bf93b68be77cd628f24cd5d3c751dbe5aceb64e8fbe8f2ecf3f

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