semvec/pypi-packages huggingface dataset:
vulfocustest3 0.0.1
The Api for vulfocus

# vulfocus-py

[![GitHub (pre-)release](https://img.shields.io/github/release/fofapro/vulfocus-py/all.svg)](https://github.com/fofapro/vulfocus-py/releases) [![stars](https://img.shields.io/github/stars/fofapro/vulfocus-py.svg)](https://github.com/fofapro/vulfocus-py/stargazers) [![license](https://img.shields.io/github/license/fofapro/vulfocus-py.svg)](https://github.com/fofapro/vulfocus-py/blob/master/LICENSE)

[Chinese document](https://github.com/fofapro/vulfocus-py/blob/master/README_zh.md)

## Vulfocus API

[`Vulfocus API`](https://fofapro.github.io/vulfocus/#/VULFOCUSAPI) is the `RESUFul API` interface provided by [`Vulfocus`](http://vulfocus.io/) for development, allowing Developers integrate [`Vulfocus`](http://vulfocus.io) in their own projects.

## Vulfocus SDK

The `Python` version of `SDK` written based on the [`Vulfocus API`](https://fofapro.github.io/vulfocus/#/VULFOCUSAPI) makes it easy for `Python` developers to quickly integrate [`Vulfocus`](http://vulfocus.io/)  into their projects.

## Install

pip install VulfocusSdk

## USE

|field|description|
| ---- | ---- |
|`username`|User login [`Vulfocus`](http://vulfocus.io/) userbox `username`|
|licence|Please go to the [`personal center`](http://vulfocus.fofa.so/#/profile/index) to view `API licence`|

### Pull Images

```python
from vulfocus_client_api.vulfocusClient import VulfocusClient
clinet = VulfocusClient(username="xxxx",licence="xxxxxx")
images = clinet.get_images()
print(images)
```

#### Response

[<vulfocus_client_api.imageEntity.ImageEntity object at 0x000002978B35DC48>, <vulfocus_client_api.imageEntity.ImageEntity object at 0x000002978B35DD08>, <vulfocus_client_api.imageEntity.ImageEntity object at 0x000002978B35DAC8>]

### Start

```python
from vulfocus_client_api.vulfocusClient import VulfocusClient
clinet = VulfocusClient(username="xxxxx",licence="xxxxxxx")
images = clinet.get_images()
print(clinet.start_container(images[0].get_image_name()))
```

#### Response

HostEntity(host=118.193.36.37:57581,port={'10000': '57581'})

### Stop

```python
from vulfocus_client_api.vulfocusClient import VulfocusClient
clinet = VulfocusClient(username="xxx",licence="xxxxx")
images = clinet.get_images()
print(clinet.stop_container(images[0].get_image_name()))
```

#### Response

停止成功

### Delete

```python
from vulfocus_client_api.vulfocusClient import VulfocusClient
clinet = VulfocusClient(username="xxx",licence="xxxxx")
images = clinet.get_images()
print(clinet.delete_container(images[0].get_image_name()))
```
#### Response

删除成功

## Update Log

2021-11-28

```
Release
```
wkmake 0.0.6.2
Some simple tools for building python projects.
Requires Python: >=3.0

# wkmake
Some simple python project build tools.

# Install
`pip3 install wkmake`

# Usage
```shell script
# quick start
wkmake makepkg mypkg
cd mypkg
# edit wkmake.yaml , config your package information.
# run following command to build pkg at path "."
wkmake make . 
```
Check out the result in folder `demo`
pyaw 0.0.2
Python Assembly Wrapper
Requires Python: >=3.7

**PY**thon **A**ssembly **W**rapper
## About PYAW
PYAW allows you to call assembly from python

## Installation
`pip install pyaw`
## Example

#### lib.asm
```nasm
global foo
foo:
	mov rax,100
	ret
```
#### main.py
```python3
import pyaw
lib = pyaw.load_asm(
	'lib.asm',
	[
		['foo',[],'int']
	]
)
print(lib.foo()) # this prints 100
```
* The first argument to `pyaw.load_asm` is the file <br>
* The second argument is a list which contains information about the exported function inside `lib.asm`
	* The first item is a list which follows the format of `[function_name,[argument types],returntype]`
		* The only type allowed currently is `int` which can be inputed as `"int"` rather than the class because it gets changed to `ctypes.c_int`