semvec/pypi-packages huggingface dataset:
deep4dream 0.2.2
A Keras implementation of Deep Dream for any image
Requires Python: >=3.6
Keywords: neural,artistic,neural-dream,dream,keras,neural-art,feature-visualization,machine-learning-art,ai-art,deepdream,tensorflow,inceptionv3

# Deep Dream generator in Keras by using Inceptionv3 model 

# Installation

```
pip install deep4dream
or in colab google cloud
!pip install deep4dream
```

## Usage 

```
from deep4dream import deep_dream
image_path='sky.jpg' #input image
new_dream='dream_sky' #result_prefix
iterations_no=200  #Number of ascent steps per scale
deep_dream.deep_dream_image(image_path,new_dream,iterations_no)
```

## Specific iterations_no Number of ascent steps per scale Selection
![](https://iraqprogrammer.files.wordpress.com/2020/05/dream4.jpg)
![](https://iraqprogrammer.files.wordpress.com/2020/05/dream3.jpg)
![](https://iraqprogrammer.files.wordpress.com/2020/05/sky.jpg)
![](https://iraqprogrammer.files.wordpress.com/2020/05/dream_sky.jpg)
![](https://iraqprogrammer.files.wordpress.com/2020/05/n.jpg)
![](https://iraqprogrammer.files.wordpress.com/2020/05/46017685-be49-45c4-92df-42c50b5e8d37.jpg)
canonicalwebteam.templatefinder 1.0.0
A module which attempts to load the corresponding templates directly from URLs, without the need to write a view for each URL.

# TemplateFinder

`TemplateFinder` is an extension of `TemplateView` which attempts to
load the corresponding templates directly from URLs, without the need to
write a view for each URL.

It can load HTML templates directly, or parse Markdown files that
contain a "wrapper\_template" frontmatter key.

## Usage

To register the template finder in your Flask app you need to register the template folder in the application config, and specify which routes should be handled by it.
The following example will handle everything via the templatefinder:

```
from canonicalwebteam.templatefinder import TemplateFinder

TEMPLATE_FOLDER = 

app = Flask(
    template_folder="templates",
    static_folder="static",
)
app.config["TEMPLATE_FOLDER"] = "templates"

template_finder_view = TemplateFinder.as_view("template_finder")
app.add_url_rule("/", view_fun  c=template_finder_view)
app.add_url_rule("/<path:subpath>", view_func=template_finder_view)
```

## Template matching

The templatefinder can be used to automatically map `.html` and `.md` files to url on a website.
When included the finder will search for files at the given url in a specified template directory.

E.g. `localhost/pages/test` will look for the following files, in order:

- `$TEMPLATE_FOLDER/pages/test.html`
- `$TEMPLATE_FOLDER/pages/test/index.html`
- `$TEMPLATE_FOLDER/pages/test.md`
- `$TEMPLATE_FOLDER/pages/test/index.md`

## Markdown parsing

If the `TemplateFinder` encounters a Markdown file (ending `.md`) it
will look for the following keys in [YAML
frontmatter](https://jekyllrb.com/docs/front-matter/):

-   `wrapper_template` *mandatory*: (e.g.:
    `wrapper_template: includes/markdown-wrapper.html`) A path to an
    HTML template within which to place the parsed markdown content.
    This path must be relative to Flask's `template_folder` root.
-   `context` *optional*: (e.g.:
    `context: {title: "Welcome", description: "A welcome page"}`) A
    dictionary of extra key / value pairs to pass through to the
    template context.
-   `markdown_includes` *optional*: (e.g.: `markdown_includes: {nav: }`)
    A mapping of key names to template paths pointing to Markdown files
    to include. Each template path will be parsed, the resulting HTML
    will be passed in the template context, under the relevant key.
    Paths must be relative to Flask's `template_folder` root.

Here's an example Markdown file:

``` markdown
---
wrapper_template: "includes/markdown-wrapper.html"
markdown_includes:
  nav: "includes/nav.md"
context:
  title: "Welcome"
  description: "A welcome page"
---

Welcome to my website.

## GitHub

I also have [a GitHub page](https://github.com/me).
```

## Tests
Tests can be run with pytest:

``` bash
pip3 install -r requirements.txt
python3 -m pytest test
```
cyberuskey 0.0.1
Cyberus Key authenticate library
Requires Python: >=3.6

<p>
  <img src="https://cyberuslabs.com/wp-content/uploads/2015/09/cl_new_logo-e1553199321586.png" alt="Cyberus Key logo">
</p>

# How to install

```bash
pip install cyberuskey
```

or you can clone repository and use CyberusKey class directly in your project
#Usage Example

```python
from cyberuskey.cyberuskey import CyberusKey
from cyberuskey.exceptions import AuthenticateException

class AuthenticationHandler:
    def get(self):   
        cyberus = CyberusKey(
        'CLIENT_ID',
        'CLIENT_SECRET',
        'REDIRECT_URI')

        arguments = self.request.arguments
        try:
            id_token_data, access_token = cyberus.authorize(arguments)
        except AuthenticateException as exc:
            self.write(exc.error_description)
            self.set_status(401)
            raise exc
...
```

## Links

CyberusKey docs: http://loginwithoutpasswords.com/docs/  
CyberusKey widget: https://github.com/CyberusLabs/cyberuskey-widget

# License
[MIT](LICENSE.md) © Cyberus Labs sp. z o.o.