semvec/pypi-packages huggingface dataset:
interface-testcases 0.2.3
提供接口测试用例生成方法

# interface_testcases

接口多参数测试用例生成

## 功能特性

* 正常值pairwise-2组合的用例
* 异常值用例
* 不传必选参数用例
* 不传全部可选参数的用例

## 使用指南

### 安装

方法1. pip安装：pip install interface-testcases

方法2. 下载源代码：git clone git@github.com:caiyizhang/interface_testcases.git

    $ cd interface_testcases
    $ pip install .

### 示例
```python

from interface_testcases.testcases import InterfaceTestcases


# 传入参数一行代表一个参数，一个参数有3个属性。
# 前两个是列表，最后一个是布尔类型。分别是正常值、异常值和是否必选参数
params = [
    [[1, 2], [0, 3], False],
    [[-1, -2], [0, -3], True],
    [[-3, 3], [-2, 4], False]
]
for case in InterfaceTestcases(params):
    print(case)


# 结合pytest
import pytest
from interface_testcases.testcases import InterfaceTestcases


class Test1(object):

    @pytest.mark.parametrize(['param_1', 'param_2', 'param_3', 'testcase_label'], [
        value_list for value_list in InterfaceTestcases([
            [['1', '10'], ['0', '7'], True],
            [["1", '10', '100'], ['0', '101'], False],
            [[None, '', 2161524184], ['1'], False],
            [[None, '', '1', '11'], [0, 'f2rewrawr'], False]
        ])
    ])
    def test_1(self, param_1, param_2, param_3, testcase_label):
        params = {
            'param_1': param_1,
            'param_2': param_2,
            'param_3': param_3
        }

        # params删除不传入的参数
        params = {k: v for k, v in params.items() if v != 'no_param'}

        if testcase_label == 'normal':
            do_something_normal()
        elif testcase_label == 'abnormal':
            do_something_abnormal()
        elif testcase_label == 'missing_required_param':
            do_something_missging_requirde_param()
        else:
            pass
```
watch-loki-season-1-episode-2-hd-online-full-Episodes-free 2.0.0
WATCH Loki Season 1 Episode 2 ONLINE FREE | WHERE TO WATCH Loki Season 1 Episode 2 ONLINE FULL HD FREE 2021 Where to Watch Loki Season 1 Episode 2 Online Free

# 123movies Watch Godzilla Vs Kong 2021 Full Online Movie Free Hd Quality

WATCH Loki Season 1 Episode 2 ONLINE FREE | WHERE TO WATCH Loki Season 1 Episode 2 ONLINE FULL HD FREE 2021. Where to Watch Loki Season 1 Episode 2 Online Free? [DVD-ENGLISH] Loki Season 1 Episode 2 (2021) Full Movie Watch online free HQ [DvdRip-USA eng subs ]] Loki Season 1 Episode 2! (2021) Full Movie Watch # Loki Season 1 Episode 2 online free 123 Movies Online !! Loki Season 1 Episode 2 (2021) | Watch Loki Season 1 Episode 2 Online (2021) Full Movie Free HD.720Px

## HERE TO WATCH NOW: https://filmshd.live/tv/84958-1-2/loki-episode-2

### DOWNLOAD AND WATCH NOW: https://filmshd.live/tv/84958-1-2/loki-episode-2
watch-loki-season-1-episode-2-2021-hd-online-full-Episodes-free 2.0.0
WATCH Loki Season 1 Episode 2 ONLINE FREE | WHERE TO WATCH Loki Season 1 Episode 2 ONLINE FULL HD FREE 2021 Where to Watch Loki Season 1 Episode 2 Online Free

# 123movies Watch Godzilla Vs Kong 2021 Full Online Movie Free Hd Quality

WATCH Loki Season 1 Episode 2 ONLINE FREE | WHERE TO WATCH Loki Season 1 Episode 2 ONLINE FULL HD FREE 2021. Where to Watch Loki Season 1 Episode 2 Online Free? [DVD-ENGLISH] Loki Season 1 Episode 2 (2021) Full Movie Watch online free HQ [DvdRip-USA eng subs ]] Loki Season 1 Episode 2! (2021) Full Movie Watch # Loki Season 1 Episode 2 online free 123 Movies Online !! Loki Season 1 Episode 2 (2021) | Watch Loki Season 1 Episode 2 Online (2021) Full Movie Free HD.720Px

## HERE TO WATCH NOW: http://bit.ly/the-conjuring

### DOWNLOAD AND WATCH NOW: http://bit.ly/the-conjuring
deftimer 0.0.3
A very simple Python tool for process inspection and timer. (alpha)
Requires Python: >=3.6, <4
Keywords: python,algorithms,timer,tools

# Alpha  
Deftimer is now alpha stage.  
Throw me issues!  

# Environments
```
Python: >=3.6, <4
```

# Requirements
```
pip install pathlib
```

# Try deftimer with docker
```
$ cd <parent dir of deftimer>
$ docker build -t deftimer .
$ docker run --rm deftimer
```

# deftimer
* quick start  
It allows you to calculate run time of each functions. See USAGE.md for (more information)[https://github.com/hakumizuki/deftimer/blob/main/USAGE.md]  

```
timer = Timer()
@timer.use_timer
def do_something():
    ...

do_something() # this prints the results
```

## document
* ```Timer(user='', description='')```  
Initialize a Timer instance first.  
You will use the instance to decorate a function, use other methods.  
```
timer = Timer()

@timer.use_timer
def something():
    ...
```

* ```@timer.use_timer(detail=True)``` decorator  
This decorator allows the function to be inspected by a timer instance.  
```params```  
detail:  It shows full results when detail is True.  

* ```timer.pause() & timer.resume()```  
You will sandwitch a process to omit the process from timer counting.  
The process time occured between pause&resume will not be counted as a result.  
```
@timer.use_timer
def something():
    timer.pause()
    time.sleep(5)
    timer.resume()
```
The result will be 0 sec.

* ```timer.block(name=None, exclude=True)``` context manager  
```params```  
name:     You can name the block. The name will show up in results.  
exclude:  You can choose whether or not you exclude the process time that took to run the block from results.  
```
@timer.use_timer
def something():
    with timer.block(name='sleep_2sec_1'):
        time.sleep(2)
```

* ```timer.stop()```  
Use this when you want to stop the timer.  
```
@timer.use_timer
def something():
    timer.stop()
    # any process after stop() will be excluded from results.
```

* Results  
(TBD)  

Below is an example of full results.  
```
-----------------------------------------
Result                --> 4.0531158447265625e-06 s
Whole program ran in  --> 4.0531158447265625e-06 s
Paused                --> 0 s, 0times
Blocks                --> 0 blocks: []
Paused + Blocked      --> 0 s
-----------------------------------------
```

* coming soon...  
File exporting (JSON, CSV)  
Average calculation  


# Test deftimer
```
$ docker run --rm deftimer python -m unittest
```
Note: It might fail depending on your pc spec.  

# Author
* Taichi Masuyama
* montanha.masu536@gmail.com

I always welcome your ideas!  
Thanks for visiting my repo :)  

# License
"deftimer" is under [MIT license](https://en.wikipedia.org/wiki/MIT_License)
oxlang 0.0.1a0
Python implementation of ox.
Requires Python: >=3.6

# ox: the ox programming language 🐂

ox is a intepreted, dynamic programming language inspired by [Cub] (no relation to the [2011] one.)
Its syntax borrows heavily from Cub itself and [golang].

Since ox keeps most of Cub's semantics, existing Cub code should run in ox without any changes (backward-compatible).

ox is not meant to be a production language: rather as an experiment in implementing a programming language entirely in Python.

## Why the name ox?

Because the zodiac animal this year is Ox, and to go along with the animal-themed names.

What it **can** do:

* Full Cub syntax support (except for `do` and `repeat while` loops).
* Import modules (you can import math functions using `import math`)

What it **cannot** do:

* Recursive functions (because of Python stack limitations).
  Maybe it would be a better idea to compile Ox code down into [Scorpion] bytecode and run it in an intepreter instead.
* Struct methods (for now).

## Todo

- [x] finish full parser (rewrote using sly)
- [x] code working intepreter 
- [x] add module system (puts all functions in global context though)
- [ ] add ability to interface Python modules

## Examples

```swift
// ox is kind of like untyped Swift (which is also what Cub was aiming for).
// Currently, these primitive types are supported:

// Strings (to have double quotes in a string, use single quotes, and vice versa.)
// Of course, UTF-8 is supported.
my_var = "Hello World!"

// Numbers are all floating-point as in Cub.
// Like Python, variables do not have a fixed type, and can be reassigned.
// (The '.0' can be omitted.)
my_var = 42

// Booleans can either be true or false.
// Comparisons will return a boolean.
a_bool = true
is_the_answer_to_life_and_everything = my_var >= 42

// Arrays are analogous to lists.
// To append, use '+='.
an_array = [4, 2, 0]
an_array += 1

// Functions define an operation so you don't have to keep copying and pasting the same section of code.
func pi() {
  return 3.141592
}

// Structs are similar to C structs.
// Members are defined inside its context.
struct Point {
  x, y
}

// A struct method (shown below) accepts a instance of the struct, plus any other parameter.
// The first arg should be named self, but you can name it something else.
func Point:distance(self) {
  return (self.x ^ 2) + (self.y ^ 2)
}

// Like Lua, static methods (on a uninitalised struct) use '.',
// while instance methods (on a initalised struct) use ':'.
// Static methods do not receive the 'self' parameter.
func Point.new_square(length) {
  return Point(length, length)
}

point = Point(0, 0)
square_point = Point.new_square(10)

// Structs can inherit members and methods from other structs.
// New members can be defined on top of the inherited struct's definition.
struct RelativePoint(Point) {
  cx, cy,
}

func RelativePoint:rel_distance(self) {
  return (abs(self.cx - self.x) ^ 2) + (abs(self.cy - self.y) ^ 2)
}
```

[2011]: https://en.wikipedia.org/wiki/Ox_(programming_language)
[Cub]: https://github.com/louisdh/cub
[golang]: https://golang.org