semvec/pypi-packages huggingface dataset:
DcWebhook 0.0.5
Simple Discord Webhook wrapper for Python.

<div align=center>
  
  # DcWebhook v0.0.3
  
  **Simple Discord Webhook wrapper for Python.**
</div>

## +example:
![image](https://user-images.githubusercontent.com/81589649/180581743-4133b77e-b871-4578-8f99-a22e8772ffc0.png)      
**response**   
![image](https://user-images.githubusercontent.com/81589649/180581182-2a599c6e-5614-4903-bcb6-2c82046bc218.png)   

## how to use
https://github.com/cookie0o/DcWebhook/wiki

## +Install:
**manually**
- Download project
- cd in the project dir with the console
- run: `pip install . --upgrade`
- your done!

**install with pip**
- run: `pip install DcWebhook`
- your done!

### +author(s) on github:
cookie0o
pytemplatize 0.0.12
Sprinkling imperative logic into your template generation process.
Requires Python: >=3.6

# Templatizer
Templatizer allows for sprinkling in some imperative logic to your declarative configuration files.

## Why Imperative?
While a fully declarative configuration file is often nice to be able to describe the _intended_ state of the world in a single place, these can also become _quite_ verbose over time.

For Kubernetes, for example, you might be configuring a number of monitoring jobs. These will have different storage, CPU, and memory requirements. They also have unique configuration requirements for each one. I might be holding it wrong, but I find this very hard to make work in Helm and Kustomize without repeating myself over and over again.

What I want is something that runs _before_ Helm, Kustomize, and whatever other tools you're using. I want something to generate files with the ability to do imperative logic first.

## Example
```python
import templatizer

class Simple(templatizer.Templatable):
    prop = 12345

class Imperative(templatizer.Templatable):
    tick = 0

    def prop(self):
        return 12345 + self.tick

simple = Simple()
assert simple.propval('prop') == 12345

imperative = Imperative()
assert imperative.propval('prop') == 12345
imperative.tick = 1
assert imperative.propval('prop') == 12346
```

The `templatizer.run` function takes a list of `Templatable` objects, generates them into strings, and adds separators in between. By default the `---` separator is used, which is useful for generating YAML documents. This can be changed to suit your use case.

## Kubernetes
The `templatizer.k8s` module includes generated definitions from the [Kubernetes OpenAPI Spec](https://github.com/kubernetes/kubernetes/blob/master/api/openapi-spec/swagger.json).

This allows for generating Kubernetes manifests with imperative hooks. Examples of this are provided in the `examples/` directory.