semvec/pypi-packages huggingface dataset:
injectme 0.0.6
Small DI library
Requires Python: >=3.7

# injectme

Simple Dependency Injection library in pure Python.

If you have never heard about DI it's probably useless.

If you are struggling to tame all of your dependencies running wildly through your code and have a hard time passing high-level dependencies down the abstracion layers you might have found a solution.

It's small. It's simple. Does not enforce complex abstractions. Does not pollute the code.

## Installation
This project is available as python package:

```
pip install injectme
```

## Simple Example

```python
from injectme import inject, register


class Dependency:
    def do_stuff(self):
        print("I'm useful")


@inject
class App:
    dependency: Dependency

    def run(self):
        self.dependency.do_stuff()


register(Dependency, Dependency())

app = App()
app.run()
```
```
I'm useful
```

## Links

- docs: https://injectme.readthedocs.io
- pypi: https://pypi.org/project/injectme
- code: https://github.com/zuczekgnojak/injectme
UA-GuardedSettings 0.4.0
Insert content from JSON into Django settings.py
Requires Python: >=3.6

# For use within Django.
# settings.py module
# substitute values

# top of settings.py file

# The JSON file can contain any name:value pair
# and any number of them.

# Guarded Settings reads the JSON file
# named guardedsettings.json and creates
# a Python dictionary.
# Use the dictionary name to obtain the value.

from UA_GuardedSettings import guardedsettings
gs = guardedsettings.guardedsettings()


SECRET_KEY			= gs.SettingsDictionary['SecretKey']


DATABASES

'PASSWORD'	: gs.SettingsDictionary['databasePassword'],