Skip to main content

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.

Changelog

2.1.0

  • Support for indexOption for Daily/TimeGlobal indices in the platform. Use --no-index-option as argument to act-types to bootstrap legacay platforms without this feature.

Installation

  1. This project requires that you have a running installation of the act-platform.
  2. 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 \
    --user-id 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.

Metadata

Release files for act-admin 2.1.0

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

Source distribution (sdist)

Source distribution for act-admin 2.1.0
File Size Uploaded Provenance
act-admin-2.1.0.tar.gz 7.0 kB Without provenance Details

Release files / act-admin-2.1.0.tar.gz

Download URL act-admin-2.1.0.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b4dc8fdfc8624382f9934749f3355af7931eea9ab3f12b5cc21dc4e5b3b98d38
BLAKE2b-256 checksum
How to use checksums
ce5d4b2f0737594bf6e992632e37c39b2e74d7ea28fd4b479e2ab1d40d7f7ab8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Security for act-admin 2.1.0

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.

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