Skip to main content

Fustor File System Schema - Contract between source-fs and view-fs

Project description

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

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

fustor_schema_fs-0.8.13.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

fustor_schema_fs-0.8.13-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file fustor_schema_fs-0.8.13.tar.gz.

File metadata

  • Download URL: fustor_schema_fs-0.8.13.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for fustor_schema_fs-0.8.13.tar.gz
Algorithm Hash digest
SHA256 97c24507ea4b0102f88f22d7001e8ff07e7e4c9725029ddf22a3390ea0e6b76c
MD5 00a13697caaa6d72124f5ea15ad35da7
BLAKE2b-256 800045be10b6e7f981912a32caa2e78e52ae7b8c000e1697629ea1a340a2ccfa

See more details on using hashes here.

File details

Details for the file fustor_schema_fs-0.8.13-py3-none-any.whl.

File metadata

File hashes

Hashes for fustor_schema_fs-0.8.13-py3-none-any.whl
Algorithm Hash digest
SHA256 4fe8b3a679839aa4e9b0de8015b98fc820b1b06011fba79f4b0f47753aa57f75
MD5 566de66e2721b0b06e6b62bcb9f3cd1e
BLAKE2b-256 1e47f79e9c6f26ff7774bbcd98a6a305c911e2b753143d92175a5633b6558869

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