semvec/pypi-packages huggingface dataset:
falcon-core 0.0.28
Falcon Core Inspired by Django for Falcon API Framework.
License: MIT

# falcon Core
Falcon Core Inspired by Django for Falcon API Framework.
## Installation
```bash
pip install falcon-core
```
## User guide
### Starting project
```bash
falcon-core startproject api
```
Create project api and folder api 
- api/
- api/manage.py
- apy/api/
- apy/api/\_\_init\_\_.py
- apy/api/settings.py
- apy/api/routes.py
- apy/api/wsgi.py
```bash
falcon-core startproject api .
```
Create project api in my location folder
- my_location/manage.py
- my_location/api/
- my_location/api/\_\_init\_\_.py
- my_location/api/settings.py
- my_location/api/routes.py
- my_location/api/wsgi.py
```bash
falcon-core startproject api folder
```
Create project api in folder
- folder/manage.py
- folder/api/
- folder/api/\_\_init\_\_.py
- folder/api/settings.py
- folder/api/routes.py
- folder/api/wsgi.py
### Starting project app
```bash
python manage.py startapp example
```
Create app in project dir
- example/\_\_init\_\_.py
- example/resources.py
- example/routes.py
```bash
python manage.py startapp example.example1
```
Create app in app
- example/example1/\_\_init\_\_.py
- example/example1/resources.py
- example/example1/routes.py
```bash
python manage.py startapp example2.example3
```
- example2/\_\_init\_\_.py
- example2/example3/\_\_init\_\_.py
- example2/example3/resources.py
- example2/example3/routes.py
### Create resource in example.resource.py
```text
import falcon

from falcon_core.resources import Resource


class ExampleResource(Resource):
    def on_get(self, req, resp, **kwargs):
        resp.status = falcon.HTTP_OK
        resp.media = {'key': 'value'}

```
### Add resource to routes
example.routes.py
```text
from falcon_core.routes import route

from example.resources import ExampleResource

routes = [
    route('/example', ExampleResource()),
]
```
(1) api.resource.py
```text
from falcon_core.routes import route, include

from example.routes import routes as example_routes

routes = [
    route('', include(example_routes)),
]
```
(2) api.routes.py
```text
from falcon_core.routes import route, include

routes = [
    route('', include('example.routes')),
]
```
### Add middleware
In api.settings.py
```text
...
MIDDLEWARE = [
    'module.MiddlewareOrMiddlewareInstance'
]
...
```
### Add router converters
In api.settings.py
```text
...
ROUTER_CONVERTERS = [
    'name': 'module.Converter'
]
...
```
### Change root routes
In api.settings.py
```text
...
ROUTES = 'module.routes'  # must have routes list
...
```
keras-targeted-dropout 0.5.0
Targeted dropout implemented in Keras
License: MIT

# Keras Targeted Dropout

[![Travis](https://travis-ci.org/CyberZHG/keras-targeted-dropout.svg)](https://travis-ci.org/CyberZHG/keras-targeted-dropout)
[![Coverage](https://coveralls.io/repos/github/CyberZHG/keras-targeted-dropout/badge.svg?branch=master)](https://coveralls.io/github/CyberZHG/keras-targeted-dropout)
[![Version](https://img.shields.io/pypi/v/keras-targeted-dropout.svg)](https://pypi.org/project/keras-targeted-dropout/)
![Downloads](https://img.shields.io/pypi/dm/keras-targeted-dropout.svg)
![License](https://img.shields.io/pypi/l/keras-targeted-dropout.svg)

Unofficial implementation of [Targeted Dropout](https://openreview.net/pdf?id=HkghWScuoQ) with tensorflow backend.
Note that there is no model compression in this implementation.

## Install

```bash
pip install keras-targeted-dropout
```

## Usage

```python
import keras
from keras_targeted_dropout import TargetedDropout

model = keras.models.Sequential()
model.add(TargetedDropout(
    layer=keras.layers.Dense(units=2, activation='softmax'),
    drop_rate=0.8,
    target_rate=0.2,
    drop_patterns=['kernel'],
    mode=TargetedDropout.MODE_UNIT,
    input_shape=(5,),
))
model.compile(optimizer='adam', loss='mse')
model.summary()
```

* `drop_rate`: Dropout rate for each pixel.
* `target_rate`: The proportion of bottom weights selected as candidates
* `drop_patterns`: A list of names of weights to be dropped.
* `mode`: `TargetedDropout.MODE_UNIT` or `TargetedDropout.MODE_WEIGHT`.

The final dropout rate will be `drop_rate` times `target_rate`.
sniputils 0.1.19
utils snippets for zthxxx
License: MIT
Requires Python: >=2.7

<h1 align="center"><a href="https://github.com/zthxxx/sniputils" target="_blank">sniputils</a></h1>

<p align="center">
  <a href="https://github.com/zthxxx/sniputils" target="_blank"><img src="https://img.shields.io/github/languages/code-size/zthxxx/sniputils.svg" alt="Code Size"></a>
  <a href="https://www.python.org/" target="_blank"><img src="https://img.shields.io/badge/python-3.6+-blue.svg" alt="Python"></a>
  <a href="https://pypi.org/project/sniputils/" target="_blank"><img src="https://img.shields.io/pypi/v/sniputils.svg" alt="PyPI"></a>
  <a href="https://pypi.org/project/sniputils/" target="_blank"><img src="https://img.shields.io/pypi/format/sniputils.svg" alt="PyPI-format"></a>
  <a href="https://github.com/zthxxx/sniputils/blob/master/LICENSE" target="_blank"><img src="https://img.shields.io/pypi/l/sniputils.svg" alt="License"></a>
</p>

:rocket: snippet utils with powerful influence


## Provide

- **conffor**
  - json file reader
  - csv filer reader
- **logsetting** - file base friendly
- **cli** - custom option
- **database**
  - dataset for sql
  - mongoengine for mongo
- **concurrent**
  - async wrapper
  - thead wrapper
- **daemon** - auto run as daemon
- **import_hook** - crazy import and frame hack
- **snippets** - utils code snippet which not as lib


## Install

```bash
pip install sniputils
```


## Contribute

code, fix bug, pull request, then

```bash
python setup.py register
python setup.py sdist upload
```


## Author

**sniputils** © [zthxxx](https://github.com/zthxxx), Released under the **[MIT](./LICENSE)** License.

> Blog [@zthxxx](https://blog.zthxxx.com) · GitHub [@zthxxx](https://github.com/zthxxx)