Skip to main content

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 CC
  • repo-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 CC
  • connector id is, as before, the connector ID for the data source
  • directory 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coco-agent-0.3.5.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

coco_agent-0.3.5-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file coco-agent-0.3.5.tar.gz.

File metadata

  • Download URL: coco-agent-0.3.5.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

Hashes for coco-agent-0.3.5.tar.gz
Algorithm Hash digest
SHA256 8237bd655d390ef6c9508435f268f349fed9787cfab292cdcadd83e63655ec61
MD5 8d0a3ebfd74e553d8c5e70026eb5a763
BLAKE2b-256 4b069fe0ba1abb019edb77ddc6c3a47e647510abdd7791f62fb7a9819a4b0c13

See more details on using hashes here.

File details

Details for the file coco_agent-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: coco_agent-0.3.5-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

Hashes for coco_agent-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b20f36516ad09df164e1bf4c1ede4b1673083e0b4a94088792ff7233fd169d91
MD5 23dbc0eae32ea2cdbba826e5e3a36143
BLAKE2b-256 37667a26889da784812d8bc65695a48b1161f45d1f7a6249f601b7e4c65f9ac2

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