uptime
Cross-platform uptime library
Decision gist · record as of 2026-08-14
Yes, if you need a simple uptime query on a supported platform and can tolerate dormant maintenance. No, if you require active support or compatibility with modern Python 3 versions—test thoroughly on your target OS first. The lack of recent updates and unclear current license status make it risky for production use without verification.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires platform-specific system calls to retrieve uptime; behavior and availability vary significantly across operating systems (Linux, macOS, Windows, BSD, Solaris, BeOS).
- High install friction due to platform-specific system calls required; package is dormant (last release 2013-10-07, last commit 2024-06-10) with no runtime dependencies, so maintenance burden is minimal but updates are infrequent.
License · maintenance · safety
UNKNOWN (permissive) — Licensed under BSD (permissive), so commercial and private use are unrestricted; however, license_raw is marked UNKNOWN, so verify the actual license text in the repository before relying on it in a commercial context.
last release 2013-10-07 (4694 days) · last repo commit 2024-06-10 · 33 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 373,889 downloads/mo, #7,153 on PyPI
Alternatives
Verify before relying
pip install uptime
from uptime import uptime
print(uptime())
# Or from command line:
python -m uptime- Whether the package actually works on all advertised platforms (BeOS, SunOS/Solaris) given its dormant maintenance status.
- Current Python version compatibility—description says 2.5+, but Python 2 is long deprecated; unclear if it works on modern Python 3 versions.
- Why install_friction is marked 'high' when there are zero runtime dependencies—likely due to compiled/system-level dependencies not captured in the metadata.
What it is and what it does
Uptime is a lightweight library that retrieves how long the system has been running since its last boot. It provides both a Python API (the `uptime()` function) and a command-line interface, making it useful for monitoring, logging, or scripting tasks that need to know system uptime. The package is cross-platform in intent, with classifiers for Linux, macOS, Windows, BSD, Solaris, and other operating systems.
The library has no Python dependencies, but it relies on platform-specific system calls to fetch uptime data, which means behavior and reliability vary by OS. The package is dormant—last released in 2013, with minimal recent maintenance—so it may not work reliably on modern Python versions or newer operating systems without fixes.
Use it for
- Monitor system uptime in a Python script or monitoring dashboard to track system stability.
- Log uptime at application startup for diagnostics or audit trails.
- Build a cross-platform system health check that includes uptime as one metric.
- Automated testing or CI/CD pipelines that need to verify system state before running tests.
- Command-line tool to quickly check when the system was last booted.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need a simple uptime query on a supported platform and can tolerate dormant maintenance.
No, if you require active support or compatibility with modern Python 3 versions—test thoroughly on your target OS first. The lack of recent updates and unclear current license status make it risky for production use without verification.
Install
uptime on PyPI
Before you install
High install friction due to platform-specific system calls required; package is dormant (last release 2013-10-07, last commit 2024-06-10) with no runtime dependencies, so maintenance burden is minimal but updates are infrequent.
Requires platform-specific system calls to retrieve uptime; behavior and availability vary significantly across operating systems (Linux, macOS, Windows, BSD, Solaris, BeOS).
License in practice
Licensed under BSD (permissive), so commercial and private use are unrestricted; however, license_raw is marked UNKNOWN, so verify the actual license text in the repository before relying on it in a commercial context.
Quickstart
pip install uptime
from uptime import uptime
print(uptime())
# Or from command line:
python -m uptime
Verify before relying
- Whether the package actually works on all advertised platforms (BeOS, SunOS/Solaris) given its dormant maintenance status.
- Current Python version compatibility—description says 2.5+, but Python 2 is long deprecated; unclear if it works on modern Python 3 versions.
- Why install_friction is marked 'high' when there are zero runtime dependencies—likely due to compiled/system-level dependencies not captured in the metadata.
Package facts
| License | UNKNOWN permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Dormant 4,694 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 373,889 / month, #7,153 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: System AdministratorsLicense :: OSI Approved :: BSD LicenseOperating System :: BeOSOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: Microsoft :: Windows :: Windows 95/98/2000Operating System :: Other OSOperating System :: POSIX :: BSDOperating System :: POSIX :: LinuxOperating System :: POSIX :: OtherOperating System :: POSIX :: SunOS/SolarisProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 3Topic :: System |
Evidence: uptime-3.0.1.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “system uptime library”
- uptimeRetrieves the system uptime (time since last boot) in a…
- pytimeparseParses human-readable time expressions (like '2h32m', '1.2 minutes',…
- uptime-kuma-apiA Python wrapper for the Uptime Kuma Socket.IO API that lets you…
Give your agent the search over MCP, or paste the wish link into any chat.
More System packages
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
Distro provides a reliable, machine-readable API to query the Linux or BSD distribution name, version, codename, and other OS platform details, replacing Python's deprecated `platform.linux_distribution` function.
Install it if you need to detect or report the Linux/BSD distribution your code runs on.
psutil retrieves real-time information about running processes and system resources (CPU, memory, disks, network, sensors) across multiple operating systems, enabling system monitoring, process profiling, and resource management.
Pexpect spawns and controls interactive console applications by sending input and matching output patterns, automating tasks that would otherwise require manual interaction.
Provides asynchronous file I/O operations for asyncio programs, with automatic selection of the best available backend (io_uring, libaio, thread-based, or pure Python) depending on your system.
Portalocker provides cross-platform file locking with support for exclusive and shared locks, plus Redis-based distributed locks and process-aware PID file locking.
Install it if you need file or process coordination; the optional extras (pywin32, redis) are only required for specific lock types.
See also uptime-kuma-api · uptime-kuma-api-v2 · pytimeparse · python-crontab · pyusb · inputimeout · extra-platforms · py-cpuinfo · sysv-ipc