
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Params::Registry
: A registry for named parametersThis module enables an organization to specify a single company-wide set of named parameters: their syntax, semantics, cardinalities, type coercions, constraints, conflicts and other interrelationships, groupings, and so on. The goal is to enforce consistency over (especially) public-facing parameters and what they mean, promote re-use, perform input sanitation and other preprocessing chores, and do consistent, one-to-one, round-trip serialization for things like URI query strings.
The theoretical underpinning for Params::Registry
is a phenomenon I
call the symbol management
problem,
namely that within a given information system, you have a bunch of
symbols, which you have to manage, and this is a problem.
Params::Registry
endeavours to take one category of symbols off the
table: named parameters that are exposed to the wild through
mechanisms like URLs and APIs.
I vacillated for years before making the first version of this module back in 2013. Query parameters? I mean, who cares? Well, it turns out that if you want certain outcomes, this is the kind of software you need. What outcomes, you ask?
Okay, all that is pretty uncontroversially useful stuff, but represents something you could probably hack together on an ad-hoc basis if you really cared. It wouldn't require maintaining an organization-wide parameter registry. But how about crazy stuff like:
I shouldn't have to spell out the value of these, but the reason why
you would care about round-tripping the query string is to lower the
footprint out in the wild of URLs that were different lexically but
identified the same resource and/or representational state. The reason
why you would care about parameter naming history is to improve user
experience—directly and via search engines—by catching otherwise
broken links and correcting them (e.g. through a 301
redirect), for
the same purpose. The reason why you would want to localize parameter
names should be obvious, it just shares its mechanism with the
naming history.
In essence, this module takes a category of symbol that couldn't viably be managed in an organization of even modest size, and makes it manageable for an organization of any size.
Bug reports and pull requests are welcome at the GitHub repository.
©2023 Dorian Taylor
This software is provided under the Apache License, 2.0.
FAQs
Unknown package
We found that params-registry demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.