Skip to main content

fustor-schema-fs

File System Schema for Fustor - defines the data contract between fustor-source-fs (Agent) and fustor-view-fs (Fusion).

Overview

This package contains only type definitions and validation logic, with no runtime dependencies. It serves as the single source of truth for the file system event format.

Schema

Event Row Format

{
    "path": str,              # Absolute file path
    "file_name": str,         # Base file name
    "size": int,              # File size in bytes
    "modified_time": float,   # Last modification time (Unix timestamp)
    "is_directory": bool,     # True if this is a directory
    # Optional fields
    "created_time": float,    # Creation time
    "parent_path": str,       # Parent directory path
    "parent_mtime": float,    # Parent directory mtime (for audit)
}

Usage

from fustor_schema_fs import (
    SCHEMA_NAME,
    SCHEMA_VERSION,
    validate_row,
    get_path,
    get_mtime,
)

# Check schema version
print(f"Schema: {SCHEMA_NAME} v{SCHEMA_VERSION}")

# Validate event row
row = {"path": "/data/file.txt", "file_name": "file.txt", ...}
if validate_row(row):
    path = get_path(row)
    mtime = get_mtime(row)

Versioning

This schema follows semantic versioning:

  • Major version changes indicate breaking changes to required fields
  • Minor version changes add optional fields
  • Patch version changes are documentation-only

Current version: 1.0

Release files for fustor-schema-fs 0.8.17

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fustor-schema-fs 0.8.17
File Size Uploaded
fustor_schema_fs-0.8.17.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fustor-schema-fs 0.8.17
File Interpreter ABI Platform
fustor_schema_fs-0.8.17-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / fustor_schema_fs-0.8.17.tar.gz

Download URL fustor_schema_fs-0.8.17.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a1d04c43169920e4f3f4f65afb2196ae8bc64bf7d304298e60e11c05a68b92d1
BLAKE2b-256 checksum
How to use checksums
fb6b5c61466ec9d2c17bf290b03e280575c2ceb6ca5f5dc11726397342c38511
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14

Release files / fustor_schema_fs-0.8.17-py3-none-any.whl

Download URL fustor_schema_fs-0.8.17-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
658c23526ba29e9fc957e74a9c90101c6b1f12751432a048583d124f1cb9b533
BLAKE2b-256 checksum
How to use checksums
96444ee9273ac4a25f1d2982688296403437231b76efa0b4d6e151a119f4a1f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14

Release history Release notifications | RSS feed

This release

0.8.17 This release

2 release files

0.8.16

2 release files

0.8.15

2 release files

0.8.14

2 release files

0.8.13

2 release files

0.8.12

2 release files

0.8.11

2 release files

0.8.10

2 release files

0.8.9

2 release files

0.8.8

2 release files

0.8.7

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page