Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Frequently, when I'm using ABC, I need to perform a string-to-class lookup. For this, I created the library AutoRegistry, which adds a dictionary interface to classes (not objects created from classes!) that is automatically populated with it's children.
A real application that uses AutoRegistry is the GeoSynth synthetic dataset library. Classes can be added to support new data types in a single location, and all other code in the code-base "just works" without having to make additional modifications. This includes pythonic "foo_bar" -> "FooBar" naming of created objects
Related posts
- [P] AutoRegistry: A Python library for mapping names to functionality to simplify project configurations.
- Konf 1.0 – The simplest config loader for Go supports file, env, flag and clouds
- TySON: TypeScript Object Notation
- A Reasonable Configuration Language
- Introduction to Jsonnet: The YAML/JSON templating language