semvec/pypi-packages huggingface dataset:
cachecontrol-uwsgi 1.0.0
A cache provider for CacheControl using UWSGI's caching framework.

# cachecontrol-uwsgi
[![Build Status](https://travis-ci.org/etene/cachecontrol-uwsgi.svg?branch=master)](https://travis-ci.org/etene/cachecontrol-uwsgi) [![Coverage Status](https://coveralls.io/repos/github/etene/cachecontrol-uwsgi/badge.svg?branch=travis-ci)](https://coveralls.io/github/etene/cachecontrol-uwsgi?branch=travis-ci)

Backend for [CacheControl](https://github.com/ionrock/cachecontrol) using [uwsgi's caching framework](https://uwsgi-docs.readthedocs.io/en/latest/Caching.html).

Only works inside of uWSGI (the `uwsgi` module must be importable), and needs a configured cache (see uWSGI's `--cache2` option) to work.

For an example uWSGI setup with a working cache, see [test_app.py](./test_app.py) and [its integration tests](./tests/integration.py) inside the repository. It's a test application that doesn't use CacheControl but has a configured cache that works.

## Usage

```python
import requests

from cachecontrol import CacheControl
from cachecontrol_uwsgi import UWSGICache

cached_session = CacheControl(requests.session(), cache=UWSGICache("cache_name"))

response = cached_session.get("http://httpbin.org/status/200")
```
module-graph 0.0.1
Show python modules dependency graph and static memory usage.
Requires Python: >=3.4, <4
Keywords: module dependency graph memory

# Module Graph

Show python modules dependency graph and static memory usage.

## Install

First you need [graphviz](https://www.graphviz.org/) installed in your system.

- Mac:

    ```
    brew install graphviz
    ```

- Ubuntu:

    ```
    sudo apt-get update
    sudo apt-get install graphviz libgraphviz-dev pkg-config
    ```

Then:

```
pip install 'module-graph[all]'
```

## Usage

### Analysis current installed modules

Travel all modules and generate graph data:

```
python -m module_graph.run_traveler
```

Command reference:

```
usage: run_traveler.py [-h] [--modules MODULES] [--ignore IGNORE]

Module Graph Traveler

optional arguments:
  -h, --help         show this help message and exit
  --modules MODULES  top level modules to check, default all modules
  --ignore IGNORE    ignore modules (shell patterns)
```

### Analysis modules used by application

> **Warning**: the hooker will do crazy patch to `sys` module, your application may be slower or crash!

Setup hooker as early as possible in application.

```python
import module_graph

if __name__ == "__main__":
    memory_hooker = module_graph.setup_hooker(
        save_to='data/module_graph.json', verbose=True)
```

Run your aplication for a while, then stop it.
The hooker will generate data for all modules used by application.

### Render graph

Use `module-graph` command to render graph, for example:

```
module-graph --input-filepath data/module_graph.json
```

Command reference:

```
usage: module-graph [-h] [--modules-filepath MODULES_FILEPATH]
                    [--input-filepath INPUT_FILEPATH]
                    [--output-filepath OUTPUT_FILEPATH]
                    [--threshold THRESHOLD]

Module Graph Render

optional arguments:
  -h, --help            show this help message and exit
  --modules-filepath MODULES_FILEPATH
                        modules to render, default all modules
  --input-filepath INPUT_FILEPATH
                        the module graph data generated by hooker (json file)
  --output-filepath OUTPUT_FILEPATH
                        render output PDF filepath
  --threshold THRESHOLD
                        donot show module which memory usage < threshold (MB)
```

## How it work

It patch `sys.meta_path`, `sys.modules` and all module loaders,
then record memory before and after module import.

## License

This package is distributed under the MIT license.
pydrishti 0.1
Image processing simplified

# PyDRISHTI

Image Processing Simplified (currently it's in alpha stage)

### Installation

- Ubuntu 16.04+ (prerequisite)  
`sudo apt-get install build-essential cmake pkg-config`  
`sudo apt-get install libx11-dev libatlas-base-dev`  
`sudo apt-get install libgtk-3-dev libboost-python-dev`  

    - Create virtual environment  
    `pip install pydrishti`