Metadata-Version: 2.1
Name: find-class
Version: 0.0.1
Summary: Finds a python-thing, like a class, a function or a variable by string and loads it
Home-page: https://github.com/tom-010/find_class
Author: Thomas Deniffel
Author-email: tdeniffel@gmail.com
License: Apache2
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=3
Description-Content-Type: text/markdown
License-File: LICENSE

find_class
==========

This little package finds and loads a class by fully qualified string.

Let's assume there is a file in `package/sub/animal.py` with 

```python
class Animal:  
    def say_somthing(self):
        return 'wau'

def a_little_function():
    return 'wuff'

a_tone = 'wiiiiii'
```

Then, you can use `find_class` to get from a string to the python-thing:

```python
a = find_class('package.sub.animal.Animal')().say_something()
b = find_class('package.sub.animal.a_little_function')()
c = find_class('package.sub.animal.a_tone')

assert a == 'wau'
assert b == 'wuff'
assert c == 'wiiiiii'
```

