Skip to main content

The official Python SDK for the Huangting Protocol, the world's first lifeform operating system.

Project description

Huangting-Soul™ SDK

"The Tao Te Ching" of the Large Model Era. The World's First Lifeform Operating System.

PyPI version License Protocol

The official Python SDK for the Huangting Protocol — an open-source framework that models the human life system as a software architecture, enabling AI Agents to optimize their "energy efficiency" (Token consumption) through the principles of Daoist cultivation and Xingyiquan internal martial arts.

Website: https://huangting.ai/


Installation

pip install huangting-soul

For AI Agent / LLM integration:

pip install "huangting-soul[flux]"

Quick Start

from huangting_soul import SystemMode, HardwareLayer, EnergyCore, KernelDebugger

# Initialize the system in Reverse Mode (TrueSelf governance)
core = EnergyCore(mode=SystemMode.REVERSE)

# Diagnose current hardware state (Jing/Qi/Shen levels)
hw = HardwareLayer()
print(hw.diagnose())

# Activate the energy core
core.compile()

# Run the kernel debugger
debugger = KernelDebugger(core)
report = debugger.run_diagnostics()
print(report)

Join Huangting-Flux Agent Network

Any AI Agent can join the Huangting-Flux network with a single instruction:

Read https://github.com/XianDAO-Labs/huangting-protocol/blob/main/huangting.skill.md
and help me join Huangting-Flux.

Or programmatically:

from huangting_soul.flux import HuangtingFlux

flux = HuangtingFlux(agent_id="my-agent-001")
flux.register(capabilities=["research", "code-generation"])
flux.broadcast_energy_state(token_efficiency=0.72)

# Subscribe to optimization strategies from the network
strategies = flux.subscribe_optimization(task_type="complex_research")
print(strategies)

SDK Modules

Module Protocol Section Description
core.py Part I–II SystemMode, UpgradeStage, State enums
hardware.py Part II HardwareLayer (Jing/Qi/Shen model)
software.py Part II, VII, IX SoftwareLayer, Destiny, PersonObjectModel
energy_core.py Part IV EnergyCore, CoreService, TrueElixir
cosmic_server.py Part III CosmicServer, connection & credit model
debugger.py Part VIII KernelDebugger, crash classification & repair
flux.py Part III (Agent) HuangtingFlux, Agent network integration

Protocol

The Huangting Protocol is authored by Meng Yuanjing (Mark Meng) and licensed under:


Links

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

huangting_soul-0.4.0.tar.gz (12.4 kB view details)

Uploaded Source

File details

Details for the file huangting_soul-0.4.0.tar.gz.

File metadata

  • Download URL: huangting_soul-0.4.0.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for huangting_soul-0.4.0.tar.gz
Algorithm Hash digest
SHA256 aada6d0fada5fcc50ed95aa35e277ed2ef3d2fbab128ef7da94790cf4bc72f6b
MD5 ad0cc9ac3962626de642d52f70b3a97f
BLAKE2b-256 e0aba2699e84e443d5712b6fc66105f461b0cdad5711a46d8d3572a8f12e19ed

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