coco-agent
Project description
A set of tools and utilities for extracting and shipping raw data to ConnectedCompany ("CC").
Pre-requisites
- python 3.6+ (
python3 --version
to check) - CC connector ID - this is a string provided by CC, strucured like
customer-id>/<source-type>/<source-id>
- optionally, a credentials file, to push data extracts and / or logs to CC
Installation
-
Create a new directory for this tool, with a Python virtual environment (venv), then activate the venv:
mkdir coco-agent cd coco-agent python3 -m venv venv source venv/bin/activate
-
Install the latest version of the tool the virtual environment:
pip install -U coco-agent
Extract metadata from a Git repository
To extract metadata from a cloned repo accessible via the file system:
coco-agent extract git-repo --connector-id=<connector id> repo-dir
where
connector id
is the connector ID mentioned above, provided by CCrepo-dir
is the directory of the Git repository
By default, output is written to the out
directory.
For additional options, including specifying date ranges, see ./coco-agent extract git-repo --help
Additional data sources
Each will have its own connector-id. Simply re-run the extract
command, pointing at each additional source as desired.
Upload data
Once desired data has been extracted, it can be securely uploaded to CC from the output directory:
coco-agent upload data --credentials-file=<credentials file path> <connector id> <directory>
where
credentials file path
is the location of the upload credentials JSON file, provided by CCconnector id
is, as before, the connector ID for the data sourcedirectory
is the directory where data was previously extracted (./out
by default)
Supported options
Invoking coco-agent
without arguments will display supported commands and options.
coco-agent version
will display the current version.
In the same way, description and options for each sub-command can be seen by passing the --help
argument - e.g. coco-agent extract git-repo --help
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file coco-agent-0.3.8.tar.gz
.
File metadata
- Download URL: coco-agent-0.3.8.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f925a4a3280be0ac693555ed9f04dbc3ba3befa8ef36f6b425d885fc8bdd6b1 |
|
MD5 | 2f1bc145e7246d4d221a9ef2f30da6ba |
|
BLAKE2b-256 | 5145dd6174356c7c27f82122e997eab82d0962e3124c87c3274474d3e35905b3 |
File details
Details for the file coco_agent-0.3.8-py3-none-any.whl
.
File metadata
- Download URL: coco_agent-0.3.8-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 081b5897c48e0f4bd58881de89d6f0068b74f407dccce9dd2c3e408f1658f910 |
|
MD5 | 9a2ee87fb83979c72f44b7fa4e5ea22a |
|
BLAKE2b-256 | 9daed88804256e047c2f6b4a38c58f282169318a025c16c9199ce1cbc9c93552 |