$npx skillfedfor your agent

pyhocon

HOCON parser for Python

With conditionsPyPI Python ModulesReleased Mar 20264.9M downloads / moApache License 2.0Source build

Decision gist · record as of 2026-08-14

sdist only — pyhocon-0.3.63.tar.gz · builds from source
v0.3.63 · released 2026-03-20 · 1 runtime deps: pyparsing

Yes, if you need to parse HOCON configuration files in Python. The package is actively maintained, has no known vulnerabilities, and covers the HOCON spec well. Install friction is moderate due to source-only distribution, but this is a one-time setup cost. The permissive Apache 2.0 license poses no restrictions for most use cases.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Installation from source; a C compiler or build tools may be required depending on your system.
  • High install friction due to source distribution only (no wheels).
  • The package is actively maintained with a recent release and no known vulnerabilities, but installation may require a C compiler or build tools on some systems.

License · maintenance · safety

Apache License 2.0 (permissive) — Licensed under Apache License 2.0 (permissive), allowing use in commercial and proprietary projects with minimal restrictions beyond attribution and liability disclaimers.

last release 2026-03-20 (147 days) · last repo commit 2026-03-20 · 533 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 4,899,029 downloads/mo, #2,207 on PyPI

Verify before relying

pip install pyhocon

from pyhocon import ConfigFactory

conf = ConfigFactory.parse_file('config.conf')
host = conf.get_string('databases.mysql.host')
port = conf['databases.mysql.port']
  • Whether pyparsing version constraints exist or if any version of pyparsing works
  • Performance characteristics when parsing large or deeply nested HOCON files
  • Completeness of HOCON spec coverage beyond the documented differences (nanoseconds, months/years, m suffix)
Same gist for agents: .md · .json

What it is and what it does

pyhocon is a Python parser for HOCON, a configuration language that extends JSON with comments, variable substitution, includes, and a more human-friendly syntax. It reads HOCON files and returns them as nested Python dictionaries where values are automatically typed (strings, integers, booleans, lists, etc.) and can be accessed via dot-notation paths, dictionary keys, or typed getter methods like `get_string()` and `get_int()`.

The package handles HOCON's key features: environment variable substitution (e.g., `${HOME}`), file and URL includes with merge semantics, duration/period parsing, and conversion to JSON, YAML, or .properties formats via a command-line tool. It depends only on pyparsing for its parsing logic and has been actively maintained since 2015, supporting Python 3.7 through 3.12.

Use it for

  • Loading application configuration from HOCON files with automatic type inference and environment variable substitution
  • Converting HOCON config files to JSON, YAML, or .properties formats for use in other tools or languages
  • Building configuration hierarchies with includes and merging, where one config file can include and override settings from another
  • Accessing nested configuration values using dot-notation paths without manually navigating nested dictionaries
  • Parsing duration and period values from configuration files into Python timedelta objects

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to parse HOCON configuration files in Python.

The package is actively maintained, has no known vulnerabilities, and covers the HOCON spec well. Install friction is moderate due to source-only distribution, but this is a one-time setup cost. The permissive Apache 2.0 license poses no restrictions for most use cases.

Install

pyhocon on PyPI

Before you install

High install friction due to source distribution only (no wheels). The package is actively maintained with a recent release and no known vulnerabilities, but installation may require a C compiler or build tools on some systems.

Installation from source; a C compiler or build tools may be required depending on your system.

License in practice

Licensed under Apache License 2.0 (permissive), allowing use in commercial and proprietary projects with minimal restrictions beyond attribution and liability disclaimers.

Quickstart

pip install pyhocon

from pyhocon import ConfigFactory

conf = ConfigFactory.parse_file('config.conf')
host = conf.get_string('databases.mysql.host')
port = conf['databases.mysql.port']

Verify before relying

  • Whether pyparsing version constraints exist or if any version of pyparsing works
  • Performance characteristics when parsing large or deeply nested HOCON files
  • Completeness of HOCON spec coverage beyond the documented differences (nanoseconds, months/years, m suffix)

Package facts

LicenseApache License 2.0 permissive
Python supportNot specified
Install frictionHigh. Source build required
Runtime dependencies
1 package
pyparsing
MaintenanceActively maintained 147 days since the last release
Last repo commit
First released
Downloads4,899,029 / month, #2,207 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules

Evidence: pyhocon-0.3.63.tar.gz

Tags

Capabilities
hocon parser pythonconfig file parsingnested configuration managementtypesafe config pythonenvironment variable substitution configconfiguration file format conversionhocon to json converter
Topics
config-managementhocondata-serialization
PyPI keywords
hoconparser

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 › “hocon parser python”

  • pyhoconParses HOCON (Human-Optimized Config Object Notation) configuration…
  • dparseParses Python dependency files (requirements.txt, conda.yml, tox.ini,…
  • pyleriPyleri is a left-right parser generator that lets you define a…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also HiYaPyCo · hjson · hierarchical-conf · pyaml-env · super-collections · config-parser · envyaml · glom · config · jstyleson