Skip to main content

A simple CLI interface for Noko time tracking. With optional calendar sync.

Project description

Noko CLI

The Noko CLI allows you to log a time entry directly from the CLI and sync all of your calendar events from GCal to Noko.

It makes three CLI commands available:

Command Shorthand Description
noko_cli_setup ncs Configure the Noko CLI app
noko_log nl Log a time entry to Noko
call_sync cs Sync events from Google Calendar into Noko entries

Installation

To install the complete app and dependencies, run:

pip install noko-cli

To install only what's required to one specific command, run:

pip install noko-cli[noko_log]
pip install noko-cli[call_sync]

Note: To be able to run the call_sync command, you'll need to add a credentials.json file with the Google web credentials to /opt/noko_cli/.

noko_cli_setup

Run the noko_cli_setup or ncs command to set up the application. It'll ask you to provide the information needed to run the commands.

The result of this command will be a config.json file with the necessary details.

noko_log

The noko_log or nl command requires at least three parameters: minutes, project and description. It also allows an optional date parameter.

It supports four flags:

Flag Meaning
-u Add the unbillable tag to the entry.
-p Add the pair tag to the entry.
-c Add the calls tag to the entry.
-y Mark the entry as from yesterday.

Example usage:

nl 30 Operations "Slack convos and emails"
nl --date "2024-09-20" 60 Sales "Sales call with Lead X"

gcal_sync

The gcal_sync or cs command does not require any parameters. It allows an optional date parameter.

Example usage:

cs
cs -d "2024-09-20"

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

noko_cli-0.1.4.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

noko_cli-0.1.4-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file noko_cli-0.1.4.tar.gz.

File metadata

  • Download URL: noko_cli-0.1.4.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for noko_cli-0.1.4.tar.gz
Algorithm Hash digest
SHA256 47d53e7e8fd5580c26b889814011464b09572fe8607f809bad17647fa6648c0c
MD5 e0517fd2d471100a43fd7332fc4e7956
BLAKE2b-256 8eb3c8c10d4900d784c4a4732c3af275a9e4adfeb1bbddd911672af408fda3ba

See more details on using hashes here.

File details

Details for the file noko_cli-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: noko_cli-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for noko_cli-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 66210e6766b293fab135900d46d8a1bf5760a3ef4adaac73f81d1350d3505a3b
MD5 5dbf92dbeafdbffb0cf1633a472a22ae
BLAKE2b-256 81e2e3347cc9bd902385aaea47626a3e81b497c3596631909b1233671e354804

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