帮助你组织图片的脚本。

picorg的Python项目详细描述


picorg

Build StatusBuild StatusBuild Status

组织图片的一组脚本。如果您将图像保存在硬盘上的不同位置,并从手机手动备份图像,则这是理想的选择。

安装

pipinstallpicorg

用法

# Renames all images in the current working directory and its subdirectories. It tries to use the timestamp of when the image was taken from the EXIF data. If the script cannot find a suitable name for a file, it will be moved to a **NOK** folder and the filename will be printed to the console.picorg-arename# Checks all files in current working dir for files with the same content. If two files has the same content,# the one with the "biggest" name is moved to a *duplicates* folder. It then traverses all the files in# all the directories listed in pic_paths (in the settings file). If a file matches by name and content,# the file in current working dir will be moved to the *duplicates* folder.picorg-aduplicates

配置

在<;user_home>;/.picorg中创建一个存储用户设置的设置文件。

开发

从requirements-dev.txt文件安装依赖项

pipinstall-rrequirements-dev.txt

创建软件包并使用安装

pythonsetup.pybdist_wheelsdistpipinstall-e.

使用运行测试

pytest--cov=src--cov-reporthtml.

或使用毒物

tox

提交前

在按顺序提交之前运行脚本pre-commit.sh,以便与格式化和排序的导入保持一致。

创建新版本。

  • 通过碰撞setup.py中的版本来创建新版本。
  • 承诺和推动。
  • 等待travis ci生成。
  • 在git中创建一个标记并推送。
  • 等待travis ci生成标记。
  • 使用twine upload dist/*
  • 将新包推送到pypi

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Java 2D数组,查找包含元素   包含EBCDIC值的java打印字节数组未给出预期值   java应用程序重新启动,由于AndroidRuntime异常而无法运行   java在spring中对拦截器的使用   java ActiveMQ,代理接收要发送的消息的时间戳   JAVA:如何从需要启用Cookie的站点下载HTML文件?   邮件发送期间发生java证书错误   Java错误:类事务中的构造函数事务无法应用于给定类型   方法的Java对象空检查   Java如何在多个源文件夹之间使用全局变量?   二进制字符串到整数转换器中的java错误   java在关闭页面后保存数据   c#使用java客户端使用WCF restful Web服务?   java在从vimeo api获取后更改iframe src   API低于17的java Android AlertDialog setOnDismissListener   java如何将文本从对象的ArrayList设置为TextView?   java OpenCV Android imwrite给我一个蓝色图像   java能够在RecyclerView中同时单击两个项目   java将字节数组写入文件的快速方法