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.

Add support of custom providers.

See original GitHub issue

We need to realize something like this:

>>> from elizabeth import Generic

>>> generic = Generic('en')

>>> class SomeProvider():
        def hello(self):
            return "Hello!"

>>> class Another():
        def bye(self):
            return "Bye!"

>>> generic.add_provider(SomeProvider)
>>> generic.add_provider(Another)

>>> generic.someprovider.hello()
>>> generic.another.bye()
# Hello!
# Bye!

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
Battleroidcommented, Dec 27, 2016

Sounds neat. Is there anything in particular you would like me to do? I’ll try to get started on it in the morning.

1reaction
Battleroidcommented, Dec 27, 2016

No problem, glad it works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom providers | NestJS - A progressive Node.js framework
Like any provider, a custom provider is scoped to its declaring module. To make it visible to other modules, it must be exported....
Read more >
Create and use a custom resource provider - Azure
This tutorial shows how to create and use an Azure Custom Resource Provider. Use custom resource providers to change workflows on Azure.
Read more >
Portis adds support for custom provider nodes - Medium
We're thrilled to announce that as of Portis-SDK v1.2.3, you can now configure your own provider node for all outgoing communication with ...
Read more >
Using Custom User Providers with Keycloak - Baeldung
In this tutorial, we'll show how to add a custom provider to Keycloak, ... Keycloak supports the concept of custom providers.
Read more >
How to Develop a Custom Provider in Terraform - InfraCloud
It allows infrastructure to be expressed as code in a simple, human readable language called HCL (HashiCorp Configuration Language). It supports ...
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