sauce记录分析器

sauce的Python项目详细描述


sauce的解析器或通用注释扩展的标准体系结构, 由塔斯马尼亚人和拉德人从酸中发明:

ANSi’s used to be just ANSi’s, pictures were just pictures, loaders were just loaders and quite frankly, every file was just as plain tasting as every other. This is about to change, how- ever, because ACiD has decided to give their files an extra “je-ne-sais-quoi.” In reality, we’ll be adding SAUCE to every file you can imagine.

Now, before we thoroughly confuse you, let us explain what we are doing here. SAUCE stands for “Standard Architecture for Universal Comment Extensions.” Although originally intended for personal use in ANSi’s and RIP screens, early in the developement of EFI (Extended File Information) it was decided that EFI should be extended to have support for more than just ANSi and RIP screens. Our brainchild was born and the specs were designed. The only aspect left undecided was the name, and after rejecting some very funny candidates, SAUCE was unanimously chosen. This leads us to the big question in the sky, “What is sauce?” SAUCE is a universal process to incorporate a full description for any type of file. The most outstanding aspect of this concept is that you have access to the complete file name, the file’s title, the creation date, the creator of the file, the group that the creator is employed by, and much, much, more.

简而言之,sauce是一个元数据块,可以附加到 现场制作的艺术品。

用法

加载接口:

>>> from sauce import SAUCE

提取ANSI文件的元数据:

>>> piece = SAUCE('artwork.ans')
>>> print piece.group
'ACiD'

修改ANSI文件的元数据:

>>> import datetime
>>> piece = SAUCE('artwork.ans')
>>> piece.date = datetime.datetime.now()
>>> piece.write('artwork.new')

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

推荐PyPI第三方库


热门话题
添加组件后,java JTable为空   java将json发送到php并插入mysql,但返回null   java Spring引导JNDI CommonJ资源   从不同PC创建和合并后的Java servlet问题   java如何在使用findelements时从xpath获取文本   java使用spring boot使用gmail smtp发送电子邮件   java在不使用pojo、bean或getter和setter的情况下获取Json标题的Json数组   Java中的OpenFile对话框将null作为响应   JavaBuilder模式。扩展接口   java中无需替换的数据结构选取   java如何评价Encog中的预测神经网络   java如何在安卓中使用实际的HttpURLConnection进行单元测试?   java使用XML配置禁用WebSocket中的CSRF保护   java如何通过hibernate从多表查询中获取数据?   mysql如何在java中获取更新的行Id   java AEM/CQ组件单一组件/有限组件   java FFmpeg Javacv延迟问题   显示整数数组的java不起作用