semvec/pypi-packages huggingface dataset:
JianyingDraft.PY 0.1.2
帮助剪映快速生成草稿的方案
License: MIT
Requires Python: <4.0,>=3.12

# JianYingDraft.PY
## 项目简介
项目来源于 `https://github.com/xiaoyiv/JianYingProDraft`
因为原始库旷日持久没有更新，所以自己动手丰衣足食，基于此项目进行二次开发。
虽说是二次开发，但跟原始项目相比早就“肝胆楚越也”，因此也就没有对原始项目进行fork。

## 说明

1. 实现原理 : 剪映的草稿文件是 `json` 的形式存储的。我们只需要创建`draft_content.json`,`draft_mate_info.json` ，其他文件则会在打开剪映软件后会自动补全。
2. 添加一个媒体到轨道顺序 `草稿媒体库` -> `内容媒体库`-> `轨道片段`
3. `add_material` 会识别媒体类型，加入到对应轨道。
4. 当没有视频轨道时，创建音频轨道会先创建视频轨道。



使用前先修改配置文件_projectConfig.ini内，剪映草稿文件夹路径为你本地正确的路径。

```shell
drafts_root=Z:/jianying/Data/JianyingPro Drafts
```
django-remdow 0.0.9
Django app for lazyload static files (img files)
License: MIT
Keywords: django, static, templatetags, downloader

django-remdow
=============

Simple Django app for static files (img files):

- Download external images
- To center images
- Lazy load images

Install
=======

```python
pip install django_remdow
```

Add `'django_remdow',` to `INSTALLED_APPS`:

```python
INSTALLED_APPS = [
    ...
    'django_remdow',
    ...
]
```


Usage
=====

remdow app contains different filters and tags. You can activate them with line in your template:


```python
# example.html

{% load remdow %}
```


Download external images
------------------------

If you have model with HTML content which contains external images, you can download external images to local folder and receive static with help `nginx`:

Use filter `img_local`:

```python
{{ '<img src="http://placehold.it/350x150"><img src="http://placehold.it/350x150">'|img_local }}
```

This filter parse HTML code, finds `img` tag, parses urls and then downloads image to local folder, and finally, replaces img url to local url.

Lazy images
-----------

You can use `layzr.js` for lazy loading images.

Load lazy script:

```python
{% lazy_script_include %}
```

And use filter `img_lazy`:

```python
{{ '<img src="http://placehold.it/350x150">'|img_lazy }}
```


Center images with `Bootstrap`
------------------------------

Filter `img_center` centers all images

```python
{{ '<img src="http://placehold.it/350x150">'|img_center }}
```

Filter adds class `center-block` to all img tags


Image responsive with `Bootstrap`
---------------------------------

Filter `img-responsive` responsives all images

```python
{{ '<img src="http://placehold.it/350x150">'|img_responsive }}
```

Filter adds class `img-responsive` to all img tags