HackerTrans
TopNewTrendsCommentsPastAskShowJobs

pomponchik

no profile record

Submissions

[untitled]

1 points·by pomponchik·قبل 4 أشهر·0 comments

Pristan: The simplest way to create a plugin infrastructure in Python

github.com
2 points·by pomponchik·قبل 4 أشهر·0 comments

[untitled]

1 points·by pomponchik·قبل 5 أشهر·0 comments

[untitled]

1 points·by pomponchik·قبل 7 أشهر·0 comments

[untitled]

1 points·by pomponchik·قبل 7 أشهر·0 comments

Metacode: The new standard for machine-readable comments for Python

github.com
22 points·by pomponchik·قبل 7 أشهر·7 comments

Skelet – Minimalist, Thread-Safe Config Library for Python

github.com
1 points·by pomponchik·قبل 8 أشهر·1 comments

comments

pomponchik
·قبل 7 أشهر·discuss
In the Python ecosystem, there are many tools dealing with source code: linters, test coverage collection systems, and many others. Many of them use special comments, and as a rule, the style of these comments is very similar.

But you know what? There is no single standard for such comments. Seriously.

The internal implementation of reading such comments is also different. Someone uses regular expressions, someone uses even more primitive string processing tools, and someone uses full-fledged parsers, including the Python parser or even written from scratch.

This is exactly the problem that this library solves. It describes a simple and intuitive standard for action comments, and also offers a ready-made parser that creators of other tools can use.
pomponchik
·قبل 8 أشهر·discuss
Skelet is a new config storage/validation library for Python. The goal is to provide a minimal API for collecting settings in one place, while ensuring thread safety, transactionality, and type/value correctness. Configs can be loaded and validated from TOML, YAML, JSON, and environment variables.

Most libraries like pydantic-settings or dynaconf are great for model-based settings, but they aren’t thread-safe out of the box and don’t handle config mutation atomically. Skelet manages assignments under per-field mutexes (so you won’t see half-applied values or race conditions in concurrent apps), and it supports field-level docs, validation, secret fields (hiding any type), and hooks for value changes.

Meant for production scenarios where config safety matters (services, CLI tools, distributed systems), but also handy for scripts that need explicit config handling.