Skip to main content

Seed Services command line interface

A command line interface for Seed Services HTTP APIs.

Installation

Install with:

$ pip install --user seed-services-cli (--user option may not be necessary when running a virtual environment)

Then run:

$ seed-services-cli --help

and read the usage instructions.

Configuration

The configuration can be passed in using a YAML file. An example is provided:

hub:
  api_url: http://hub.example.org/api/v1
  token: TEMP
identity_store:
  api_url: http://idstore.example.org/api/v1
  token: TEMP2

Then run the following to use:

$ seed-services-cli --conf=config.yaml command-to-run

Finding identities

Run:

$ seed-services-cli identity-search --help

to learn about the options available for searching.

Example search:

$ seed-services-cli identity-search --address_type msisdn --address +27001

Get identity details

Run:

$ seed-services-cli identity-get --identity uuid

to get a specific identity details dump to json

Identities Upload

Run:

$ seed-services-cli identity-import --help

to learn about the identity upload instructions.

Then to upload content create a CSV or JSON file

$ seed-services-cli identity-import --csv filename.csv

Find demo_import_identities.csv and .json in the repo route for format example.

Identities Details Update

This command is used to update the values inside the details JSON field.

Run:

$ seed-services-cli identity-details-update --help

to learn about the identity details update instructions.

Then to upload content create a JSON file

$ seed-services-cli identity-details-update --json-file filename.json

Find demo_identities_details_update.json in the repo route for format example.

Messages Listing and Upload

Run:

$ seed-services-cli sbm-messagesets --help

to learn about the messagesets available for uploading to.

Run:

$ seed-services-cli sbm-messages-import --help

to learn about the message upload instructions.

Then to upload content create a CSV or JSON file

$ seed-services-cli sbm-messages-import --csv filename.csv

Note: To upload binary content the file name should in the binary_content field and this will be uploaded for you.

To retrieve messages run:

$ seed-services-cli sbm-messages --help

Filters are available for message, messageset, lang and sequence_number.

Message Deletion

Run:

$ seed-services-cli sbm-messages-delete --help

to learn about deleting messages. Filters are available for message, messageset, lang and sequence_number.

Example that would purge all messages and binary files for messageset 1:

$ seed-services-cli sbm-messages-delete --messageset 1

Registration Upload to Hub

Run:

$ seed-services-cli hub-registrations-import --help

to learn about the registration upload instructions.

Then to upload content create a CSV or JSON file

$ seed-services-cli hub-registrations-import --csv filename.csv

Find demo_import_registration.csv in the repo route for format example.

Adding Users to Auth with Team access

Run:

$ seed-services-cli auth-user-add --help

to learn about adding users. Then add to a team.

Run:

$ seed-services-cli auth-user-add-team --help

Checking Service status

Run:

$ seed-services-cli ci-status

to get full service status uptime information.

Generate User Tokens

Run:

$ seed-services-cli ci-user-token-generate --help

to understand how to ensure Users have correct CI tokens for services.

Developing

Run:

$ pip install --editable .

Testing:

$ pip install -r requirements-dev.txt
$ py.test seed_services_cli

Reporting issues

Issues can be filed in the GitHub issue tracker. Please don’t use the issue tracker for general support queries.

Release Notes

0.0.6 - 17-August-2016 - Added auth and ci related commands

0.0.5 - 14-July-2016 - Bugfix identity-import for malformed addresses

0.0.4 - 29-June-2016 - Added hub-registrations-import

0.0.3 - 29-June-2016 - Added identity-get and identity-import.

0.0.2 - 28-June-2016 - Added sbm-messages-delete. Renamed short param from m to ms for messageset for sbm-messages command for consistency.

0.0.1 - Initial release

Metadata

Release files for seed-services-cli 0.0.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for seed-services-cli 0.0.13
File Size Uploaded Provenance Actions
seed-services-cli-0.0.13.tar.gz 15.0 kB Without provenance Details for seed-services-cli-0.0.13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for seed-services-cli 0.0.13
File Interpreter ABI Platform Actions
seed_services_cli-0.0.13-py2.py3-none-any.whl Python 3, Python 2 none any Details for seed_services_cli-0.0.13-py2.py3-none-any.whl

Total release size: 34.2 kB

Release files / seed-services-cli-0.0.13.tar.gz

Download URL seed-services-cli-0.0.13.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8285fc5ab253175c9534c41bf1bb7813e56e02fc94ae68de0ee3144deef2351d
BLAKE2b-256 checksum
How to use checksums
863b2a259b99891e73ed007adbc7ede40b5ef750563f493fd0c69ba673a25a23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.14

Release files / seed_services_cli-0.0.13-py2.py3-none-any.whl

Download URL seed_services_cli-0.0.13-py2.py3-none-any.whl
Size 19.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f7b9b43f5f165350368e7003ad41a43a38c6753d0d841bdfccb9aa7829e6a5e5
BLAKE2b-256 checksum
How to use checksums
584dc3a43ccc6d1194684483f501c61e1a0f4a15dc07190a63c4c2e3004f1337
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.14

Security for seed-services-cli 0.0.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page