Skip to main content

No project description provided

Project description

pySolidTime

A Python client and CLI for SolidTime time tracking.

It has the features I need to integrate with my workflow. Contributions and requests are welcome!

Installation

pip install pysolidtime

Configuration

Before using pySolidTime, you need to set the following environment variables:

export SOLIDTIME_API_URL="https://app.solidtime.io/api/v1"  # Optional, defaults to this URL
export SOLIDTIME_ORG_ID="your_organization_id"
export SOLIDTIME_API_TOKEN="your_api_token"
export SOLIDTIME_USER_EMAIL="your_email@example.com"

CLI Usage

View Current Timer

solidtime current

Options:

  • --description-length INTEGER: Limit the description length (default: 20)

Start a Timer

solidtime start "Working on project X"

Options:

  • --billable / --no-billable: Whether the time entry is billable (default: billable)
  • --keep / --no-keep: Whether to keep the active timer or replace it (default: keep)

Stop the Current Timer

solidtime stop

List Organization Members

solidtime members

Python API

You can also use pySolidTime as a Python library:

from pysolidtime.client import SolidTimeClient

# Initialize the client
client = SolidTimeClient()

# Get current timer
current_timer = client.get_current_timer()

# Start a new timer
client.start_timer("Working on project X", billable=True)

# Stop the current timer
client.stop_timer(current_timer)

# List members
members = client.list_members()

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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

pysolidtime-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

pysolidtime-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysolidtime-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Linux/6.12.19-1-MANJARO

File hashes

Hashes for pysolidtime-0.1.0.tar.gz
Algorithm Hash digest
SHA256 31f20b201069b1979ccd1a0e1a238716f7926a3a6ef6cbccc009f2330a3a5024
MD5 663fe25d8528d030fe8728172fc2dd76
BLAKE2b-256 cf8af04ee93faef08923f56f711635a27c82cfe3fa35bc1b11e339a4342d73ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysolidtime-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Linux/6.12.19-1-MANJARO

File hashes

Hashes for pysolidtime-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 252698001176b1d495f23712d8be1e60a7f2e949ee579cb6d9326da900dfb150
MD5 9631f3566546028a74a655ffdbe26690
BLAKE2b-256 13280e0b71d9a58f71c95915d8542046db73c8b850ae093bb836d2a1b61b601d

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