question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[RFC] Support computed values.

See original GitHub issue

For https://github.com/SatelliteQE/robottelo/pull/7774/

It is needed to allow some values to be computed at runtime, dynaconf already support lazy values using @jinja and @format but in this case it will be able to use any callable

Some fields can be computed at runtime and we can provide different API style to define it.

Options listed in comment bellow:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
rochacbrunocommented, Jul 27, 2020

Option 4: USe validators to provide default and computation

settings = Dynaconf(
    ...,
    validators=[
        Validator("KEY", lazy=callable, default="foo")
    ]
)

1reaction
rochacbrunocommented, Jul 27, 2020

Option 1: explicit dictionary mapping key to callable

from dynaconf import Dynaconf

settings = Dynaconf(
     computed={
        "name": callable_name
     }
)
Read more comments on GitHub >

github_iconTop Results From Across the Web

[RFC] Support computed values. · Issue #377 - GitHub
[RFC] Support computed values. ... It is needed to allow some values to be computed at runtime, dynaconf already support lazy values using ......
Read more >
RFC 8233 - Extensions to the Path Computation Element ...
Extensions to the Path Computation Element Communication Protocol (PCEP) to Compute Service-Aware Label Switched Paths (LSPs) (RFC 8233, September 2017)
Read more >
RFC 2215: General Characterization Parameters for ...
Abstract This memo defines a set of general control and characterization parameters for network elements supporting the IETF integrated services QoS control ...
Read more >
HTTP/1.1: Header Field Definitions
Age values are calculated as specified in section 13.2.3. ... The Allow entity-header field lists the set of methods supported by the resource...
Read more >
National Weather- RFC Development Management
For an event, the ordinates of this hydrograph are multiplied by a factor of the total MAP divided by the appropriate FFH value....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found