semvec/pypi-packages huggingface dataset:
torch-transformer 0.18.1
Transformer implemented in PyTorch
License: MIT

# PyTorch Transformer

[![Travis](https://travis-ci.org/CyberZHG/torch-transformer.svg)](https://travis-ci.org/CyberZHG/torch-transformer)
[![Coverage](https://coveralls.io/repos/github/CyberZHG/torch-transformer/badge.svg?branch=master)](https://coveralls.io/github/CyberZHG/torch-transformer)

## Install

```bash
pip install torch-transformer
```

## Usage

```python

```
torch-embed-sim 0.3.2
Embedding similarity implemented in PyTorch
License: MIT

# PyTorch Embedding Similarity

[![Travis](https://travis-ci.org/CyberZHG/torch-embed-sim.svg)](https://travis-ci.org/CyberZHG/torch-embed-sim)
[![Coverage](https://coveralls.io/repos/github/CyberZHG/torch-embed-sim/badge.svg?branch=master)](https://coveralls.io/github/CyberZHG/torch-embed-sim)

## Install

```bash
pip install torch-embed-sim
```

## Usage

```python
from torch_embed_sim import EmbeddingSim


class Net(nn.Module):

    def __init__(self):
        super(Net, self).__init__()
        self.embed = torch.nn.Embedding(num_embeddings=10, embedding_dim=20)
        self.embed_sim = EmbeddingSim(num_embeddings=10)

    def forward(self, x):
        return self.embed_sim(self.embed(x), self.embed.weight)
```
easy-parse 0.1.1
Easy parsing for xml and json
License: MIT
Requires Python: >=3.6

# easy-parse

[![Build Status](https://travis-ci.org/uncmath25/easy-parse.svg?branch=patch)](https://travis-ci.org/uncmath25/easy-parse)

*Easy parsing for xml and json*


### Usage:
Parse a given xml file to json
``` python
from easyparse import xml_to_json
xml_to_json('input.xml', 'output.json')
```
postman2case 0.0.1
Convert POSTMAN data to JSON testcases for HttpRunner.
License: MIT
Keywords: postman converter json

# postman2case

[![LICENSE](https://img.shields.io/github/license/HttpRunner/postman2case.svg)](https://github.com/HttpRunner/postman2case/blob/master/LICENSE) [![Build Status](https://travis-ci.org/HttpRunner/postman2case.svg?branch=master)](https://travis-ci.org/HttpRunner/postman2case) [![coveralls](https://coveralls.io/repos/github/HttpRunner/postman2case/badge.svg?branch=master)](https://coveralls.io/github/HttpRunner/postman2case?branch=master)

Convert postman data to JSON testcases for HttpRunner.

## usage

To see ``postman2case`` version:

```shell
$ python main.py -V
0.0.1
```

To see available options, run

```shell
$ python main.py -h
usage: main.py [-h] [-V] [--log-level LOG_LEVEL]
               [postman_testset_file] [output_testset_file]

Convert postman testcases to JSON testcases for HttpRunner.

positional arguments:
  postman_testset_file  Specify postman testset file.
  output_testset_file   Optional. Specify converted JSON testset file.

optional arguments:
  -h, --help            show this help message and exit
  -V, --version         show version
  --log-level LOG_LEVEL
                        Specify logging level, default is INFO.
```

## examples

In most cases, you can run ``postman2case`` like this:

```shell
$ python3 main.py test/test.json output.json
INFO:root:Generate JSON testset successfully: output.json
```

As you see, the first parameter is postman source file path, and the second is converted JSON file path.

The output testset file type is detemined by the suffix of your specified file.

If you only specify postman source file path, the output testset is in JSON format by default and located in the same folder with source file.

```shell
$ python3 main.py test/test.json
INFO:root:Generate JSON testset successfully: test/test.output.json
```

## generated testset

generated JSON testset ``output.json`` shows like this:

```json
[
    {
        "test": {
            "name": "/api/v1/Account/Login",
            "request": {
                "method": "POST",
                "url": "https://httprunner.top/api/v1/Account/Login",
                "headers": {
                    "Content-Type": "application/json"
                },
                "json": {
                    "UserName": "test001",
                    "Pwd": "123",
                    "VerCode": ""
                }
            },
            "validate": []
        }
    }
]
```