Skip to main content

geOrchestra analytics CLI

A CLI tool to process access log data for geOrchestra analytics.

Different sources are accepted for access log data:

  • A postgresql buffer table reproducing the Opentelemetry access log data structure.
  • File-based access logs. It is expected to contain CLF-like (or, say, text-based) access log entries. They are parsed using a regular expression pattern.
  • Fake access logs can also be generated for dev/testing/discovery purposes

The result is written in a postgresql table, preferably a timescaleDB hypertable, since a lot of data will be written and you will want time-enabled data management.

To know more about it, please read the doc on https://docs.georchestra.org/analytics

Install

Create a virtualenv and install this package:

python -m venv .venv
source .venv/bin/activate
pip install georchestra_analytics_cli

Build & publish

This project is based on pyScaffold and uses tox for the build.

There is no CI as of now, it's done manually.

To install tox, we recommend installing it with pipx:

pipx install tox
tox --help

Build the project:

tox -e clean,build

Publish to Pypi:

To publish to Pypi, there are some prerequisites:

  • You must set a git tag on your current commit (e.g. git tag -a 0.1.0 -m "v0.1.0")
  • Your git working tree should be clean (nothing pending, git status should report nothing to commit, working tree clean).

This ensures that setuptools_scm will detect a clean version. setuptools_scm extracts automatically the version from the git describe information, behind the scene.

You will also also need a pypi token to publish

Publish on test.pypi.org:

tox -e publish

Publish on pypi.org:

tox -e publish -- --repository pypi

Docker build:

We provide you with a utility script, ./docker_build.sh.
It takes 2 options:

  • --mode=: the build mode (one of [dev, test, pypi]). test will try to fetch the package from test.pypi while pypi will try to fetch it from the main pypi repo. dev will build the local code base.
  • --version=: allows to set the version to use. On dev mode, it can be arbitrary.

Examples:

  • Build from the latest version from pypi:
./docker_build.sh --mode=release
  • Build from the 2.0.0 version from pypi: (version 2.0.0 has to exist there)
./docker_build.sh --mode=release --version=2.0.0
  • Build from the 2.0.0 version from test.pypi: (version 2.0.0 has to exist there)
./docker_build.sh --mode=test --version=2.0.0
  • Build from local codebase, tag it 2.0.0-dirty:
./docker_build.sh --mode=dev --version=2.0.0-dirty
  • Build from local codebase, use the auto-generated tag:
./docker_build.sh --mode=dev

Download files

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

Source Distribution

georchestra_analytics_cli-2.0.2.tar.gz (50.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

georchestra_analytics_cli-2.0.2-py3-none-any.whl (37.8 kB view details)

Uploaded Python 3

File details

Details for the file georchestra_analytics_cli-2.0.2.tar.gz.

File metadata

File hashes

Hashes for georchestra_analytics_cli-2.0.2.tar.gz
Algorithm Hash digest
SHA256 18e53480fdba19b1785bcbba22f7435ac4381cf92cffd6cfe96fd0521f892ef8
MD5 f5ec10f8b3dcd7513ad5998c02e058ff
BLAKE2b-256 8cfb430e8a077b798347b242fce643d38c289afda3958aaae679bdab41684536

See more details on using hashes here.

File details

Details for the file georchestra_analytics_cli-2.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for georchestra_analytics_cli-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5f234c71a5b15374bce72a5733a7cd4bd02b4e85e6cd1dbe4b4a4637ab84d757
MD5 fe59c23e95d2b25a2d5eaac065aff37b
BLAKE2b-256 a0c992e21a6fb47306342913204b39f9e2aec4e64d1fa468f4503f74c8902069

See more details on using hashes here.

Release history Release notifications | RSS feed

2.1.0

2 files

This release

2.0.2 This release

2 files

2.0.0

2 files

0.1.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page