atomicwrites-homeassistant
Atomic file writes.
Decision gist · record as of 2026-08-14
No—this package is abandoned (last release 2022-07-08, repository archived) and shows no active maintenance. While the code is stable and has no known vulnerabilities, using an unmaintained library for critical file operations carries long-term risk. Consider the original atomicwrites package if it has resumed maintenance, or evaluate whether your use case truly requires atomic writes or can tolerate simpler alternatives.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with no runtime dependencies.
- However, the package is abandoned—last release was 2022-07-08 and the repository is archived.
- This is a fork maintained because the original package is unmaintained, but the fork itself shows no active maintenance either.
License · maintenance · safety
MIT (permissive) — Licensed under MIT (permissive), so you can use it freely in commercial and open-source projects without restriction or obligation to share modifications.
last release 2022-07-08 (1498 days) · last repo commit 2022-07-08 · 321 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 662,308 downloads/mo, #5,439 on PyPI
Alternatives
Verify before relying
from atomicwrites import atomic_write
with atomic_write('foo.txt', overwrite=True) as f:
f.write('Hello world.')- Whether this fork is actively maintained or has a clear succession plan despite the archived repository status
- Real-world reliability of Windows atomic operations, which the documentation notes are not well-tested and may silently fall back to non-atomic methods
What it is and what it does
Atomicwrites is a Python library for writing files in a way that guarantees atomicity—either the entire file is written successfully or the original file remains untouched. It works by writing to a temporary file in the same directory, then atomically moving it to the target location using platform-specific operations: `rename` on POSIX systems (or `link`/`unlink` when overwriting is not allowed) and `MoveFileEx` on Windows. The library also invokes `fsync` to ensure data is flushed to disk.
The package provides both a simple high-level context-manager API and a lower-level class-based interface. It supports an `overwrite` parameter to control whether the target file may already exist, and handles errors consistently across platforms. With no runtime dependencies, it integrates easily into any Python project that needs to safely write configuration files, databases, or other critical data without risk of corruption from crashes or concurrent access.
Use it for
- Writing configuration files that must not be corrupted if the process crashes mid-write
- Atomically updating database or cache files in multi-process environments
- Safely persisting application state or logs without risk of partial writes
- Cross-platform file operations where atomicity guarantees are required
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No—this package is abandoned (last release 2022-07-08, repository archived) and shows no active maintenance.
While the code is stable and has no known vulnerabilities, using an unmaintained library for critical file operations carries long-term risk. Consider the original atomicwrites package if it has resumed maintenance, or evaluate whether your use case truly requires atomic writes or can tolerate simpler alternatives.
Install
atomicwrites-homeassistant on PyPI
Before you install
Low install friction with no runtime dependencies. However, the package is abandoned—last release was 2022-07-08 and the repository is archived. This is a fork maintained because the original package is unmaintained, but the fork itself shows no active maintenance either.
License in practice
Licensed under MIT (permissive), so you can use it freely in commercial and open-source projects without restriction or obligation to share modifications.
Quickstart
from atomicwrites import atomic_write
with atomic_write('foo.txt', overwrite=True) as f:
f.write('Hello world.')
Verify before relying
- Whether this fork is actively maintained or has a clear succession plan despite the archived repository status
- Real-world reliability of Windows atomic operations, which the documentation notes are not well-tested and may silently fall back to non-atomic methods
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,498 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 662,308 / month, #5,439 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: Implementation :: CPython |
Evidence: atomicwrites_homeassistant-1.4.1-py2.py3-none-any.whl
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 › “safe file writing”
- atomicwrites-homeassistantProvides atomic file writes that ensure a file is either fully…
- atomicwritesProvides a context manager for writing files atomically—writing to a…
- cerberus-python-clientA Python client library for reading and writing secrets to Cerberus,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also atomicwrites · types-atomicwrites · lockfile · filelock · pathlib-mate · DrissionRecord · django-read-only · ephemeral-port-reserve · boltons · azure-storage-file