semvec/pypi-packages huggingface dataset:
django-cprofile-middleware 1.0.5
Easily add cProfile profiling to django views.
License: MIT
Keywords: django,profiling,cProfile

# django-cprofile-middleware

[![pypi-version]][pypi]

This is a simple profiling middleware for Django applications. I wrote it because I got tired of printing "start" "stop" "stop 2" in my programs to find the bottlenecks.

I found a simple example on @dcramer's [slideshare](http://www.slideshare.net/zeeg/django-con-high-performance-django-presentation) and modified it to support sorting.

## Installing

```bash
$ pip install django-cprofile-middleware
```

Then add ```django_cprofile_middleware.middleware.ProfilerMiddleware``` to the end your ```MIDDLEWARE``` in settings.py. This option was called ```MIDDLEWARE_CLASSES``` in versions of Django before [1.10](https://docs.djangoproject.com/en/1.10/topics/http/middleware/). 

For example:

```python
MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'startup.do.work.FindProductMarketFitMiddleware',
    ...
    'django_cprofile_middleware.middleware.ProfilerMiddleware'
)
```

The profiler will only be available when the Django setting `DEBUG` is set to `True`. By default it's also required to be an authenticated user with `is_staff` set to `True` which is making the request to be profiled. The `is_staff` check can be configured as follows: 

```python
DJANGO_CPROFILE_MIDDLEWARE_REQUIRE_STAFF = False
```

## Running & Sorting Results

Once you've installed it, log in as a user who has staff privileges and add ```?prof``` to any URL to see the profiler's stats. For example to see profile stats for ```http://localhost:8000/foo/```, visit ```http://localhost:8000/foo/?prof```.

You can also pass some options:

**count:** The number of results you'd like to see. Default is 100.

**sort:** The field you'd like to sort results by. Default is ```time```. For all the options you can pass, see the [docs for pstats](http://docs.python.org/2/library/profile.html#pstats.Stats.sort_stats).

**download:** Download profile file, that can be visualized in multiple viewers, e.g. [SnakeViz](https://github.com/jiffyclub/snakeviz/) or [RunSnakeRun](http://www.vrplumber.com/programming/runsnakerun/)

## Enjoy!

Email me with any questions: [omar.bohsali@gmail.com](omar.bohsali@gmail.com).


[pypi]: https://pypi.org/project/django-cprofile-middleware/
[pypi-version]: https://img.shields.io/pypi/v/django-cprofile-middleware.svg
rocket-args 0.1.0
Make your arg parsing even more declarative!
License: MIT
Requires Python: >=3.6,<4.0

<p align="center">
    <img src="https://i.imgur.com/vjEOvJj.png" alt="logo">
    <b>Make your arg parsing even more declarative!</b><br>
</p>

<p align="center">
    <a href="https://travis-ci.com/Xaaq/Rocket-args">
        <img src="https://travis-ci.com/Xaaq/Rocket-args.svg?branch=master" alt="badge">
    </a>
    <a href="https://pypi.org/project/rocket-args/">
        <img src="https://img.shields.io/badge/pypi-0.1.0-informational" alt="badge">
    </a>
    <a href="https://github.com/Xaaq/Rocket-args/blob/master/LICENSE">
        <img src="https://img.shields.io/badge/license-MIT-informational" alt="badge">
    </a>
</p>

---

**Source code**:
<a href="https://github.com/Xaaq/Rocket-args">
    https://github.com/Xaaq/Rocket-args
</a>

**Documentation**:
<a href="https://xaaq.github.io/Rocket-args">
    https://xaaq.github.io/Rocket-args
</a>

---

## Overview

So you wanted a tool that handles parsing arguments? You've come to right place!

Key features:

* fully declarative,
* less boilerplate code required,
* type hints,
* IDE auto-completion - no more strange `Namespace` objects.

## Installation

You will need Python 3.6+

In order to install it:
```
pip install rocket-args
```

## Examples

### Simple CLI args

Create `main.py` with following content:
```python
from rocket_args import RocketBase

class MyArgs(RocketBase):
    my_int: int
    my_float: float
    my_str: str

args = MyArgs.parse_args()
print(args)
```

Call it with arguments:
```
$ python main.py --my-int 1234 --my-float 12.34 --my-string abcd
MyArgs(my_int=1234, my_float=12.34, my_str=abcd)
```

### Auto-generated help

```
$ python main.py --help
usage: main.py [-h] [--my-int MY_INT] [--my-float MY_FLOAT] [--my-str MY_STR]

optional arguments:
  -h, --help           show this help message and exit
  --my-int MY_INT
  --my-float MY_FLOAT
  --my-str MY_STR
```
missing-101883071 1.0.1
Python package to handle missing values in dataset
License: MIT


This package is implementation to handle the missing values in dataset.
This packages will work on command line interface
>** Use command to run ** python <package name> <input_csv>


You can install this package using following command
pip install missing_101883071



> Author-Yogesh         Batch:Coe18      Roll no:101883071         Course:Data Analytics and Visualization