Skip to main content

Python tool to write PIKA marker files

Project description

PIKA Marker Python

Python package to write PIKA marker files with timestamps.

Installation

pip install -e .

Usage

In your Python code you can use the static function appendPikaMarker or create a PikaMarker object to write into a marker file

from pika_marker import PikaMarker, appendPikaMarker

appendPikaMarker(
    "marker_file.csv",
    "my_marker",
    additional="additional info",
    icon="🔥",
    timestamp=None
)


marker = PikaMarker("marker_file.csv")
marker.appendMarker(
    "marker 2",
    additional="first marker from object",
    icon="🔥"
)
marker.close()

It also provides a CLI tool append-pika-marker

append-pika-marker --help             
usage: append-pika-marker [-h] [-a ADDITIONAL] [-i ICON] [-t TIMESTAMP] file name

Append a PIKA marker to a marker file.

positional arguments:
  file                  Path to the marker file
  name                  Name of the marker

options:
  -h, --help            show this help message and exit
  -a, --additional ADDITIONAL
                        Additional text
  -i, --icon ICON       Icon or emoji
  -t, --timestamp TIMESTAMP
                        Unix timestamp (defaults to current time)

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

pika_marker-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

pika_marker-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file pika_marker-0.1.0.tar.gz.

File metadata

  • Download URL: pika_marker-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pika_marker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 929146c46f50f1952c884ad3a23b90bffb7ddc1cc68012d07606ebe0d21433cf
MD5 09171b4aa3eb1a8a116bae44f407f7bc
BLAKE2b-256 8ffa9dcc9963be535f3401da1b49a2a735f6dc3e713006f36a1c11767f042c4b

See more details on using hashes here.

File details

Details for the file pika_marker-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pika_marker-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pika_marker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0cfc805513003196cf3d0e3aff9cdbc41bd11d153ec6cd6587ce3a1b9f78cf9
MD5 4c5d05112777c3402870a4999addba2e
BLAKE2b-256 1665d649aa670ee5cd0a19e0c426a0c52f94ff14740e010ee671214c320a5ef5

See more details on using hashes here.

Supported by

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