semvec/pypi-packages huggingface dataset:
mingdaoyun-sdk 0.0.16
针对mingdaoyun的API封装的Python-SDK包

mingdaoyun-Python-SDK
-----

针对mingdaoyun的API封装的Python-SDK包

如果你在寻找PHP版本的,请点击(https://github.com/Lany-w/mingdaoyun-php-sdk)

## Installing

```shell
$ pip install mingdaoyun-sdk
```

## Usage

    ```python
    from mingdaoyun_sdk import Mingdaoyun
    mingdaoyun = Mingdaoyun('your app id', 'your app sign','host')
    
    mingdaoyun.table("table_alias").set_view("view_id").where("state", "=", "生效中").sort("autoid", True).find(all=True)
    
    ```

## API

- table("table_alias/worksheetId")  设置表名
- set_view("view_id") 设置视图
- where("field", "operator", "value") 设置查询条件
    - operator:
        - contains
        - =
        - startWith
        - endWith
        - notContain
        - !=
        - None 或者 "is null"
        - not null
        - \>
        - \>=
        - <
        - <=
        - RCEq
        - RCNe
        - between
        - nBetween
        - DateEnum
        - NDateEnum
        - DateBetween
        - DateNBetween
    - value:  如果是 DateBetween ， DateNBetween 要传 maxValue 和 minValue
- find(rowid=None, pageSize=1000, pageIndex=1, all=False) 查询数据
    - rowid 查询单条数据
    - pageSize 每页条数
    - pageIndex 页码
    - all 是否查询所有
- add 添加数据
- batch_add 批量添加数据
- delete (rowid) 删除数据 rowid 为逗号拼接的字符串
- edit (rowid, controls) 编辑数据
- batch_edit (rowids, control) 批量编辑数据
- count() 统计数据

## License

MIT
sap2assembler 4.0.2
A simple assembler for the SAP-2 computer architecture.
Requires Python: >=3.6

# SAP2 assembler

A simple assembler for the SAP2 computer architecture

sap2assembler can be installed using pip

``` bash
pip install sap2ssembler
```

To use the package, you will need to have a file containing your assembly code

``` 
# test.sap2asm
mov a, b ; this will move this contents of the Accumulator into the B register
```

You can assemble the code using the ``SAP2Assembler`` class

``` python
from sap2assembler import SAP2Assembler # import the class

assembler = SAP2Assembler() # create the assembler object

assembler.assemble_from_file("test.sap2asm", hex_output=True, n_bytes=8, row=4, print_output=True) # assemble and print the first 8 bytes in hex in 4 byte rows
```
```
0000: 78 00 00 00
0004: 00 00 00 00
```

By default, it will print the first 256 bytes in binary in 16 byte rows

If you want to save the machine code into a file, you will need to use the ```file_to_write``` parameter

``` python
from sap2assembler import SAP2Assembler # import the class

assembler = SAP2Assembler() # create the assembler object

assembler.assemble_from_file("test.sap2asm", n_bytes=8, row=4, file_to_write"output.txt") # save the assembled code into output.txt
```
output.txt
```
0000: 01111000 00000000 00000000 00000000
0004: 00000000 00000000 00000000 00000000
```

To use is as a CLI, you can use the ``sap2assembler`` command

```
sap2assembler
```

```
type 'sap2assembler -h' for help
```

To assemble a file, you need to use the ``-a`` flag

```
sap2assembler -a test.sap2asm -o output.txt -b 8 -rw 4 -hd -p
```
``-o`` will specify the output file
``-b`` is the number of bytes either to write into the file or print
``-rw`` is the row width
``-hd`` will output the data in hex
``-p`` will print the data

console
```
0000: 78 00 00 00
0004: 00 00 00 00
```
output.txt

```
0000: 78 00 00 00
0004: 00 00 00 00
```