semvec/pypi-packages huggingface dataset:
nbcelldiff 0.0.1
Tools for finding the difference between two notebook code cells
License: MIT License

# nb\_cell\_diff
Simple tools for ad hoc, in notebook, code cell differencing.

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/innovationOUtside/nb_cell_diff/master?filepath=demo.ipynb)

Based on the Google [`diff-match-patch`](https://github.com/google/diff-match-patch) Python3 package.


`%load_ext nbcelldiff`


The package currently provides cell block magics that let you compare the current cell with the previously executed cell, an earlier executed cell from its cell run index number, or the contents of the clipboard; and a line magic that lets you compare the contents of two previously executed cells from the cell run index numbers.

![](nb_cell_diff.png)

See the `demo.ipynb` for examples.

TO DO:

- clipboard demo is broken in MyBinder?
durable-rules-tools 0.0.1
IPyhon magics for durable rules.
License: MIT License

# `durable_rules_magic`

[![Binder](https://mybinder.org/badge_logo.svg)](https://gke.mybinder.org/v2/gh/innovationOUtside/durable_rules_magic/master?filepath=demo.ipynb)

Magic to simplify working with durable.rules in educational contexts, initially when working with "subject, predicate, object" triple style reasoning.

Install as:

`pip install --upgrade git+https://github.com/innovationOUtside/durable_rules_magic.git`

See the `demo.ipynb` for usage.


## Additional Notes

If we define:

```python
from IPython.display import Javascript

class Speech():
    def say(self, txt):
        display(Javascript(f'speechSynthesis.speak(new SpeechSynthesisUtterance("{txt}"))'))
```

then we can get Python to speak...

For example:

```python
speaker = Speech()
speaker.say('hello')
```

This means we can hear the reasoning using rules of the form:

```python
   @when_all(Subject('eats', 'worms'))
    def bird(c):
        speaker.say(f'if {c.m.subject} eats worms')
        Set(c, '? : is : bird')
        speaker.say(f'{c.m.subject} is a bird')
```

which would make the rules both accessible and easier to follow.

Could we perhaps create a decorator to the rules that would provide such spoken annotations?
pyregedit 1.0.0
registry edit (注册表操作)
License: MIT License
Keywords: registry edit

pyregedit
==============

 - 该项目用于操作注册表，读写注册表的键和值
 - 兼容windows 64位和32位
 - 代码在python2.7开发和测试，兼容python3。欢迎下载并测试
 - 博客地址：http://yshblog.com/blog/132

使用方法：
-----
 1. 需要安装pywin32： pip install pywin32
 2. 把pyregedit加入你的项目中
 3. 代码示例
    ```python
    #coding:utf-8
    import pyregedit

    root = pyregedit.HKEY_LOCAL_MACHINE
    path = r"SOFTWARE\Microsoft\test"
    reg = pyregedit.RegEdit(root, path)

    #判断键是否存在
    if reg.check_key():
        #获取键(可用于其他操作)
        key = reg.get_key()
    else:
        #创建键
        key = reg.create_key()

    #创建值
    reg.create_value('test_name', pyregedit.REG_SZ, 'this is a test code')

    #创建子键
    reg.create_sub_key('sub_test')

    #获取子键名称列表
    print(list(reg.get_sub_keys()))

    #获取全部值
    print(list(reg.get_values()))

    #根据具体名称获取某个值的数据
    print(reg.get_value('test_name'))

    #删除值
    reg.delete_value('test_name')

    #删除子键
    reg.delete_sub_key('sub_test')

    #删除当前键
    reg.delete_current_key()
    ```

贡献者
-----
感谢hrpzcf的贡献！