ACT admin tools
Project description
ACT Admin
Introduction
This package should only be used with act-api, act-workers, act-types at version 2.x.x.
This package contains management utilities for the ACT Platform.
Installation
- This project requires that you have a running installation of the act-platform.
- Install from pip
pip install act-admin
act-origin usage
$ act-origin --act-baseurl <BASEURL> --user-id <USERID> --add
Origin name: myorigin
Origin description: My Test Origin
Origin trust (float 0.0-1.0. Default=0.8):
Origin organization (UUID):
[2019-11-11 10:46:22] app=origin-client level=INFO msg=Created origin: myorigin
Origin added:
Origin(name='myorigin', id='e5a9792e-78c7-4190-9275-27616be47ca8', organization=Organization(), description='My Test Origin', trust=0.8)
act-types usage
To bootstrap the type system with default types (userid/act-baseurl must point to ACT installation):
act-types \
--userid 1 \
--act-baseurl http://localhost:8888 \
--loglevel ERROR \
--default-object-types \
--default-fact-types \
--default-meta-fact-types \
--add
It is safe to rerun the command above, after new types have been added to the data model.
You can also add types from your own files, using --object-types-file, --fact-types-file and --meta-fact-types-file that points to a json file on the same format as the default types.
To show default types (replace with fact/meta-fact for other types):
act-types --default-object-types list
Local development
Use pip to install in local development mode. act-types (and act-api) uses namespacing, so it is not compatible with using setup.py install
or setup.py develop
.
In repository, run:
pip3 install --user -e .
It is also necessary to install in local development mode to correctly resolve the files that are read by the --default-*
options when doing local changes. These are read from etc under act.types and if the package is installed with "pip install act-types" it will always read the files from the installed package, even though you do changes in a local checked out repository.
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
File details
Details for the file act-admin-2.0.0.tar.gz
.
File metadata
- Download URL: act-admin-2.0.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05d4650d91778dde5db997512a81758317fafc9a22246f9baa3d7b9f8b26aa97 |
|
MD5 | a0a8b87af316a6fd4f7f78d0eaadd27a |
|
BLAKE2b-256 | 0b1379907274c00e99b00d7ec140f3d6fb1bec90a8f08d0f4317e2cedf9844a1 |