Skip to main content

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.

Metadata

Release files for coco-agent 0.3.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 coco-agent 0.3.13
File Size Uploaded
coco-agent-0.3.13.tar.gz 14.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for coco-agent 0.3.13
File Interpreter ABI Platform
coco_agent-0.3.13-py3-none-any.whl Python 3 none any Details

Total release size: 31.0 kB

Release files / coco-agent-0.3.13.tar.gz

Download URL coco-agent-0.3.13.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f6863fae163334e581c970e34d36dac110ee886d11c222cb845531ac11f420a5
BLAKE2b-256 checksum
How to use checksums
4252d2c81971c6dd503a15ffb0beea600491f4c4d4ec1422a86d340f7022433f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / coco_agent-0.3.13-py3-none-any.whl

Download URL coco_agent-0.3.13-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1430d3c9c321e2d40848851401bff5ccfe76464e67a5cf790e265cda0da7dd23
BLAKE2b-256 checksum
How to use checksums
ca494340aa2ebcdaafaf44beff0637e4b88e49baa5e1f7992c667298bee0ab13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.3.13 This release

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

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