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: hydra.compose() decoration

See original GitHub issue

Initial API idea:

@hydra.compose(config_path="path/file.yaml", overrides=["foo=bar", "db=mysql"])
def foo(cfg, userarg):
    pass

result = foo(userarg)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
hrchucommented, Dec 20, 2019

Glad to see you hear the user voice!

1reaction
omrycommented, Oct 11, 2019

Yes, the new decorator will be able to return results. In fact, so can the current hydra.main() although nothing is using it as of now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compose API - Hydra
The compose API can compose a config similarly to @hydra.main() anywhere in the code. Prior to calling compose(), you have to initialize Hydra:...
Read more >
CHANGELOG.md - ory/hydra - Sourcegraph
This feature adds first-class support for two IETF RFCs and one OpenID Spec: OpenID Connect Dynamic Client Registration 1.0 · OAuth 2.0 Dynamic...
Read more >
YAML - Wikipedia
YAML (see § History and name) is a human-readable data-serialization language. It is commonly used for configuration files and in applications where data...
Read more >
Package List — Spack 0.20.0.dev0 documentation
https://computing.llnl.gov/projects/co-design/amg2013 ... Versions: 1.4.4; Description: authd is a small and fast RFC 1413 ident protocol daemon with both ...
Read more >
Getting Started With API Platform: Create Your API and Your ...
Run the following command to start all services using Docker Compose: ... always serialized using the Hydra error format (RFC 7807 is also...
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