api.awau.moe的python api包装器
owo的Python项目详细描述
#py
python中编写的一个包装器,允许您将图像上载到owo.whats-th.is并通过uwu.whats-th.is缩短url。允许通过异步和非异步两种方法(支持py2)
获取一个api密钥,以便能够实际使用该服务。
2.运行命令“pip install owo”。
3请查看下面的用法,以查找如何使用该脚本的一些基本示例。
需要Termux:API包才能使用后台监视器。
您需要使用设备的应用程序商店进行安装,并运行`$apt install Termux tools Termux API`
**安装后还需要执行以下操作,否则将无法工作!**
``` bash
$owo fix
```
后台监视器监视目录中的新文件(通常是屏幕快照文件夹)并上载这些新文件。
程序接受几个命令行标志。
````
$owo bg--help
用法:bg.py[-h[-p path]-k key[-u url[-tts]
-h,帮助显示此帮助消息并退出
-PATH,路径路径路径检查文件更新< BR/> -K键,键密钥API密钥< BR/> -U URL,--要使用的url-url基虚空url
-tts-confirm-message over tts mobile-only
```
基url可以是任何owo.whats-th.is虚空url。
**示例使用**
`$owo-bg-p“/存储/图片/屏幕截图”-k“xxxx xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”-u“https://i.am-a.ninja/”`
启动后台任务监视`/storage/Pictures/Screenshots/`对于新文件,上载这些文件并返回链接利用虚荣网址[https://i.am-a.忍者a.忍者/](https://i.am-a.忍者/)
脚本的基本用法就是这样的。
**图像上传**
``python
``python
import owo
owo.upload_文件(API-KEY,“file.png”,“file.py”)
``
返回类似于..
`` ` ` ` ` ` ` ` ` ` ` ` ``python
{“file.png”:“url”,“file.py”:“url”}
````
**url缩短**
```python
import owo
owo.short_url(API_KEY,“url1”,“url2”)
````
```python
[``python
[````shorturl 1”,“缩短url 2”]
```````
>
有关更强大/更好的示例,请查看/exampl
<#贡献
1叉式回购
2.编辑代码。
3做一个公关。
4.提交上述PR.
#许可证
麻省理工学院许可证的副本可在“License.md”中找到。
python中编写的一个包装器,允许您将图像上载到owo.whats-th.is并通过uwu.whats-th.is缩短url。允许通过异步和非异步两种方法(支持py2)
获取一个api密钥,以便能够实际使用该服务。
2.运行命令“pip install owo”。
3请查看下面的用法,以查找如何使用该脚本的一些基本示例。
需要Termux:API包才能使用后台监视器。
您需要使用设备的应用程序商店进行安装,并运行`$apt install Termux tools Termux API`
**安装后还需要执行以下操作,否则将无法工作!**
``` bash
$owo fix
```
后台监视器监视目录中的新文件(通常是屏幕快照文件夹)并上载这些新文件。
程序接受几个命令行标志。
````
$owo bg--help
用法:bg.py[-h[-p path]-k key[-u url[-tts]
-h,帮助显示此帮助消息并退出
-PATH,路径路径路径检查文件更新< BR/> -K键,键密钥API密钥< BR/> -U URL,--要使用的url-url基虚空url
-tts-confirm-message over tts mobile-only
```
基url可以是任何owo.whats-th.is虚空url。
**示例使用**
`$owo-bg-p“/存储/图片/屏幕截图”-k“xxxx xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”-u“https://i.am-a.ninja/”`
启动后台任务监视`/storage/Pictures/Screenshots/`对于新文件,上载这些文件并返回链接利用虚荣网址[https://i.am-a.忍者a.忍者/](https://i.am-a.忍者/)
脚本的基本用法就是这样的。
**图像上传**
``python
``python
import owo
owo.upload_文件(API-KEY,“file.png”,“file.py”)
``
返回类似于..
`` ` ` ` ` ` ` ` ` ` ` ` ``python
{“file.png”:“url”,“file.py”:“url”}
````
**url缩短**
```python
import owo
owo.short_url(API_KEY,“url1”,“url2”)
````
```python
[``python
[````shorturl 1”,“缩短url 2”]
```````
>
有关更强大/更好的示例,请查看/exampl
<#贡献
1叉式回购
2.编辑代码。
3做一个公关。
4.提交上述PR.
#许可证
麻省理工学院许可证的副本可在“License.md”中找到。