semvec/pypi-packages huggingface dataset:
rest-filter-qp 1.2.1
A package for filtering any objects in django models
Requires Python: >=3.6

A package for filter all models in django based on query parameters.


<h1>Installation:</h1>



```
pip3 install django_rest_framework
pip3 install rest_filter_qp
```


if you use jalali date:
```
pip3 install jalali_date
```


query parameters:
```
https://example.com/[URL]/?filters[]=[{"key":"KEY1","value":"VALUE1","type":"TYPE"},{"key":"KEY2","value":"VALUE2",,"type":"TYPE"},...]
```
key : model field name

type : type of filters, you should write a type from these :
```
FILTER_TYPES = {
		'max':{ # max of a field
			'type' : 'int',
			'len' : 1,
			'extra_keys':[],
			'method' : Max,
			'is_aggregate':True
		},
		'min':{ # min of a field
			'type' : 'int',
			'len' : 1,
			'extra_keys':[],
			'method' : Min,
			'is_aggregate':True
		},
		'bwn':{ # field between 2 value
			'type' : 'list',
			'len' : 2,
			'extra_keys':['gte','lte'],
			'method' : None,
			'is_aggregate':False
		},
		'normal':{ # field equal a value 
			'type' : None,
			'len' : 1,
			'extra_keys':[],
			'method' : None,
			'is_aggregate':False
		},
		'today':{ # objects that created today
			'type' : 'list',
			'len'  : 1,
			'extra_keys' : ['year','month','day'],
			'method' : this_day,
			'is_aggregate':False
		},
		'toweek' : { # objects that created current week (based jalali date)
			'type':'rang',
			'len' : 1,
			'extra_keys' : ['range'],
			'method' : this_week,
			'is_aggregate':False
		},
		'tomonth' : { # objects that created current month
			'type' : 'list',
			'len' : 1,
			'extra_keys' : ['year','month'],
			'method' : this_month,
			'is_aggregate':False
		},
		'asc' : { # order asc
			'type' : 'sort',
			'len' : 1,
			'extra_keys' : [],
			'method' : None,
			'is_aggregate' : False
		},
		'desc' : { # order desc
			'type' : 'sort',
			'len' : 1,
			'extra_keys' : [],
			'method' : None,
			'is_aggregate' : False
		}
	}
``` 


for example, you have a model like this :
```
class Product(models.Model):
    title = models.CharField(max_length=255)
    by_count = models.IntegerField(default=0)
    view_count = models.IntegerField(default=0)
    slug = models.SlugField(max_length=255,unique=True)
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)

```
you should add <b>FilterParams</b> class from <b>rest_filter_qp</b> to your <b>filter_backends[]</b>: 
```
from rest_filter_qp import FilterParams
class ProductView(generics.ListAPIView):
	queryset = Product.objects.all()
	serializer_class = ProductSerializer
	filter_backends = [FilterParams]
```

now, you want filter product model by <b>title</b> field that value is <i>"Foo" and created today :</i>:
```
[YOUR_DOMAIN]/products/?filters[]=[{"key":"title","value":"Foo","type":"normal"},{"key":"created_at","value":"","type":"today"}]
```
if you want a objects with maximum value :
```
[YOUR_DOMAIN]/products/?filters[]=[{"key":"view_count","value":"","type":"max"}]
```
copyifc 0.1.1
Author:     LanHao

# copyifc

### 使用示例

```python
import ifcopenshell
from ifcopenshell.file import file
from copyifc.copyifc import IDCache

ifc_file1 = ifcopenshell.open("test.ifc")

ifc_to = file()

comb = IDCache(ifc_to)
ins = ifc_file1.by_type("ifcroot")[0]  # 其他查询
ins_new = comb.recursion_copy(ins)

```

仅仅提供一个递归调用，复制传入的entity_instance以及该entity_instance 指向的其他entity_instance

通过原始文件的 globalid 映射目标文件中的entity_instance，防止重复复制。

同时在复制时修改globalid。

### 为何？

当我尝试使用ifcopenshell自带的add功能时，发现这么一个问题：

在复制不同的ifc文件中的部分对象到同一个ifc文件中去时，会出现一些显示异常。

通过分析，揣测是在复制过程中，部分globalid相同的entity_instance，被共用了，但其实两者可能不一样。

所以尝试自己通过递归手动复制来完成。

并且达到了自己的效果。

### ifcopenshell 依赖

项目依赖于 aconda 中ifcopenshell 库,未曾在项目依赖中标注,因为pip 无法直接安装aconda的库.请自行安装.
pystreaming 1.3.2
Video + Audio streaming done with ZMQ
Requires Python: >=3.6

<p align="center"><a href="#"><img width=100% alt="" src="https://github.com/joseph-x-li/pystreaming/blob/main/resources/logo.png?raw=true"></a></p>

# pystreaming

![build](https://github.com/joseph-x-li/pystreaming/workflows/build/badge.svg) 
[![codecov](https://codecov.io/gh/joseph-x-li/pystreaming/branch/main/graph/badge.svg?token=14DXVFUY7Z)](https://codecov.io/gh/joseph-x-li/pystreaming) 
[![Documentation Status](https://readthedocs.org/projects/pystreaming/badge/?version=latest)](https://pystreaming.readthedocs.io/en/latest/?badge=latest) 
[![PyPI version](https://badge.fury.io/py/pystreaming.svg)](https://badge.fury.io/py/pystreaming) 
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

[Documentation](https://pystreaming.readthedocs.io/)

Easy streaming of video and audio using fast jpg compression provided by libjpegturbo.

Designed for universal installation and minimal requirements. No ffmpeg, no gstreamer.