semvec/pypi-packages huggingface dataset:
djangorescue 0.0.4
Package to let you serve static and media files via Django pipeline with DEBUG = False.

# DJANGORESCUE
* [Русский](#rus)
* [English](#eng)

## <a name="rus"></a> Описание по-русски.
Пакет DJANGORESCUE позволяет обслуживать статику (static, media) через Django (когда нет возможности использовать nginx, apache, и s3 storage), независимо от состояния параметра DEBUG. 

Да, это известно, что так делать не следует, но иногда по-другому нельзя.

### Конфигурация
**settings.py**

```python
DEBUG = False

...

MIDDLEWARE = [
    ...
    'djangorescue.middleware.StaticMediaMiddleware',
	...
]

...

STATIC_URL = '/static/'
STATIC_APP_DIR = 'static' # Имя каталога со статикой внутри каталога приложения.
STATICFILES_DIRS = [
    os.path.join(BASE_DIR, 'static'),
]

MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
```


## <a name="eng"></a> English description.
DJANGORESCUE package allows to serve static files (static, media) through Django (when nginx, apachage and s3 storage options are not available) regardless of DEBUG setting value.

Yes, it is a known thing, that such approach is bad, however sometimes it's the only way.

### Configuration
**settings.py**

```python
DEBUG = False

...

MIDDLEWARE = [
    ...
    'djangorescue.middleware.StaticMediaMiddleware',
	...
]

...

STATIC_URL = '/static/'
STATIC_APP_DIR = 'static' # The name of the folder, that contains static files within the app folder.
STATICFILES_DIRS = [
    os.path.join(BASE_DIR, 'static'),
]

MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
```
community-detection 0.0.14
A community detection package
Requires Python: >=3.6

# Introduction

The community-detection module contains basic functions for find communities in a graph. Internally, community-detection uses [simple-graph](https://github.com/jiayingwang/simple_graph) to hold the structure of a graph.

# Install
```python
pip install community-detection
```
or update
```python
pip install --upgrade community-detection
```

# Usage
```python
from simple_graph import Graph
from community_detection import FastUnfolding
G = Graph({0: [1, 2], 1: [2]})
fu = FastUnfolding()
communities = fu.process(G)
Q = fu.modularity(G, communities)
print(communities)
print('Q:', Q)
```
```shell
ouput: 
[[0, 1, 2]]
Q: 0.0
```

# License

community-detection is a free software. See the file LICENSE for the full text.

# Authors

![qrcode_for_wechat_official_account](https://wx3.sinaimg.cn/mw1024/bdb7558bly1gjo23b3jrmj207607674r.jpg)
simple-graph 0.2.4
A simple graph package
Requires Python: >=3.6

# Introduction

The simple-graph module contains basic functions for graph.

## Concept

A graph is a structure to hold a set of objects in which some pairs of the objects are connected.

A graph contains two components: __vertices__ and __edges__.

We consider both directed and undirected edges in this project.
If the edges are undirected, the graph is called undirected graph, on the other hand, it is called directed graph.

# License

simple-graph is a free software. See the file LICENSE for the full text.

# Install
```python
pip install simple-graph
```
or update
```python
pip install --upgrade simple-graph
```

# Usage

## Basic operations
```python
from simple_graph import Graph
G = Graph()
G.add_edge(1, 2)
print(G.has_edge(1, 2))
```
ouput: 
```shell
True
```

```python
G = Graph({0: [1, 2], 1: [2]})
print(G.neighbors(0))
```

output: 
```shell
[1, 2]
```

## Statistics

```python
G = Graph({ 
    "a" : ["c"],
    "b" : ["c","e","f"],
    "c" : ["a","b","d","e"],
    "d" : ["c"],
    "e" : ["b","c","f"],
    "f" : ["b","e"]
})

print(G.find_path('a', 'b'))
print(G.diameter())
```

output:
```shell
['a', 'c', 'b']
3
```

Check [Wiki](https://github.com/jiayingwang/simple_graph/wiki) for more details.

# Authors

![qrcode_for_wechat_official_account](https://wx3.sinaimg.cn/mw1024/bdb7558bly1gjo23b3jrmj207607674r.jpg)