Skip to content
aiWikis.org

Python Coding Standard

Python is best used here for local tooling, data analysis, and mechanical transforms when shell or project-native code is not the clearer choice.

Metadata

FieldValue
Source siteaiwikis.org
Source URLhttps://aiwikis.org/
Canonical AIWikis URLhttps://aiwikis.org/files/aiwikis/wiki-global-coding-standards-python-md-a9b8c175/
Source referencewiki/global/coding-standards/python.md
File typemd
Content categoryllm-wiki
Last fetched2026-05-08T21:22:18.3035107Z
Last changed2026-05-08T02:36:59.1954645Z
Content hashsha256:a9b8c175f756581ed0db706bba2ba7b2a85329080ba8b1d86def07029823d53f
Import statusunchanged
Raw source layerdata/sources/aiwikis/wiki-global-coding-standards-python-md-a9b8c175f756.md
Normalized source layerdata/normalized/aiwikis/wiki-global-coding-standards-python-md-a9b8c175f756.txt

Current File Content

Structure Preview

  • Python Coding Standard
  • Code Shape
  • Data Work
  • Verification

Raw Version

---
uai_id: "36fab7ef-af01-4b65-a283-702e7a11afe2"
type: "coding-standard"
owner: "AIWikis maintainers"
status: "reviewed"
source_system: "AIWikis.org global"
source_status: "local synthesis from utility and data-tooling practice"
sensitivity: "public-safe source-side memory"
agent_use: "load for Python utilities, local analysis tools, conversion helpers, and future automation scripts"
lineage:
  - "wiki/global/coding-standards/index.md"
source_trace:
  - "wiki/global/coding-standards/python.md"
confidence: 0.78
confidence_label: "reviewed-local"
last_linted: "2026-05-08T00:00:00Z"
handoff_export: "include"
aliases:
  - "Python Coding Standard"
  - "Global Python Utility Standard"
---

# Python Coding Standard

Python is best used here for local tooling, data analysis, and mechanical transforms when shell or project-native code is not the clearer choice.

## Code Shape

- Prefer standard-library tools for small local utilities.
- Use typed functions for non-trivial scripts.
- Keep file reads and writes explicit and path-safe.
- Use structured parsers for JSON, YAML, CSV, HTML, and XML.
- Avoid replacing project-native tooling when the project already has a script or build path.

## Data Work

- Treat generated outputs as artifacts unless promoted by the owning source site.
- Preserve raw source evidence when transforming reports or archives.
- Log counts, skipped records, and blockers for batch operations.

## Verification

- Run unit tests or script-level smoke checks when behavior changes.
- Prefer small fixture tests for parsers and converters.
- Do not use Python to edit repository files when a direct patch is clearer.

Why This File Exists

This is a LLM Wiki memory file from aiwikis.org. It is shown here because AIWikis.org is demonstrating the real source files that make the UAIX / LLM Wiki memory system work, not only summarizing those systems after the fact.

Role

This file belongs to the source-side wiki layer. It preserves a focused concept, source proxy, graph record, or operating rule so the public site can cite reviewed conclusions without flattening every reason into a single long page.

Structure

The file is structured around these visible headings: Python Coding Standard; Code Shape; Data Work; Verification. Those headings are retrieval anchors: a crawler or LLM can decide whether the file is relevant before reading every line.

Prompt-Size And Retrieval Benefit

Keeping this material in a separate file reduces prompt pressure because an agent can load this exact unit only when its role, source site, category, or hash is relevant. The surrounding index pages point to it, while this page preserves the full content for audit and exact recall.

How To Use It

  • Humans should read the metadata first, then inspect the raw content when they need exact wording or provenance.
  • LLMs and agents should use the source site, category, hash, headings, and related files to decide whether this file belongs in the active prompt.
  • Crawlers should treat the AIWikis page as transparent evidence and follow the source URL/source reference for authority boundaries.
  • Future maintainers should regenerate this page whenever the source hash changes, then review the explanation if the role or structure changed.

Update Requirements

When this source file changes, update the raw source layer, normalized source layer, hash history, this rendered page, generated explanation, source-file inventory, changed-files report, and any source-section index that links to it.

Related Pages

Provenance And History

  • Current observation: 2026-05-08T21:22:18.3035107Z
  • Source origin: current-source-workspace
  • Retrieval method: local-source-workspace
  • Duplicate group: sfg-506 (primary)
  • Historical hash records are stored in data/hashes/source-file-history.jsonl.

Machine-Readable Metadata

{
    "title":  "Python Coding Standard",
    "source_site":  "aiwikis.org",
    "source_url":  "https://aiwikis.org/",
    "canonical_url":  "https://aiwikis.org/files/aiwikis/wiki-global-coding-standards-python-md-a9b8c175/",
    "source_reference":  "wiki/global/coding-standards/python.md",
    "file_type":  "md",
    "content_category":  "llm-wiki",
    "content_hash":  "sha256:a9b8c175f756581ed0db706bba2ba7b2a85329080ba8b1d86def07029823d53f",
    "last_fetched":  "2026-05-08T21:22:18.3035107Z",
    "last_changed":  "2026-05-08T02:36:59.1954645Z",
    "import_status":  "unchanged",
    "duplicate_group_id":  "sfg-506",
    "duplicate_role":  "primary",
    "related_files":  [

                      ],
    "generated_explanation":  true,
    "explanation_last_generated":  "2026-05-08T21:22:18.3035107Z"
}