Metadata-Version: 2.1
Name: abv-py
Version: 0.1.0
Summary: bilibili AV/BV converter with avid>2^28 support
License: MIT
Author: poly000
Requires-Python: >=3.6,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Description-Content-Type: text/markdown

### Bilibili-av-bv-converter
用户手册（中文版）

本转换器开源，可以自行把代码拿去研究

---
首先将avbv.py下载到python路径中的site-packages文件夹下 ~~（我不会pypi，所以没有弄到pypi）~~

使用方法：导入avbv模块，就可以用av2bv和bv2av来进行互转了

示例代码：
```python
from avbv import av2bv, bv2av
print(av2bv('av170001')) # BV17x411w7KC
print(bv2av('BV17x411w7KC')) # av170001
```
当在bv2av中输入不合法bv号（如bv1）会报错（IndexError）

但是下面的代码不会报错：
```python
from avbv import bv2av
print(bv2av('DV17x411w7KC')) # av170001
```
如看不懂代码可以去看下面两个视频：

[av转bv动画展示](https://www.bilibili.com/video/BV1N741127Tj)

[bv转av动画展示](https://www.bilibili.com/video/BV1R7411y7kw)

~~实际上我的就是通过这两个视频改的~~

---
### Bilibili-av-bv-converter
User Manual (English version)

This converter is open-source, you can download the source and do some observation.

First, download the `avbv.py`, put it into python's `site-packages` folder. ~~I don't know how to upload files to pypi~~

Then import it, you can use av2bv and bv2av to do convertions!

Sample:
```python
from avbv import av2bv, bv2av
av2bv('av170001') # BV17x411w7KC
bv2av('BV17x411w7KC') # av170001
```

When you try to execute things such as `bv2av("BV1")`, it will generate an `IndexError` and exit.

But if you use that it will be working:
```python
from avbv import bv2av
bv2av('DV17x411w7KC') # av170001
```

If you can't understand the code, you can watch these videos:

[av to bv](https://www.bilibili.com/video/BV1N741127Tj)

[bv to av](https://www.bilibili.com/video/BV1R7411y7kw)

~~Of course, mine is modify by them~~


