semvec/pypi-packages huggingface dataset:
restapi3 0.0.1
Formatted APIs presentation for testing.

# Formatted APIs presentation for testing
Can be used as part of RESTful API test framework

# Install
sudo pip3 install restapi3

# Usage
1. 'Get' : 'query_strings'
1. 'Post' : 'data', 'files', 'json'
1. 'Put' : 'data', 'json'
1. 'Delete'

```Python
from restapi3.api import BaseAPIs, API

class Video_Model(BaseAPIs):

  def __init__(self):
      BaseAPIs.__init__(self, "http://XXXX")
      self.headers = {'X-Device-ID': 'YA'}

  @API
  def get_video(self):
      return {
          'path': '/v1/A/C/X',
          'headers': self.headers,
          'method': 'Get',
          'query_strings': {
              'first_str': 'val space, yee',
              'second_str': 123
          },
          'json': {
              'a': 123,
              'b': ['123', '234']
          },
          'files': {
              'image': open('/Users/tedchen/Desktop/test.png', 'rb')
          }
      }


r = Video_Model().get_video() # Return for requests Response object

if r.status_code != 200:
   raise Exception("Fail to call API")
r_json = r.json()
```
arg 0.0.1
Parse command line arguments made easier...

<p align="center" id="top">
	<a href="https://pypi.org/project/arg"><img src="https://cdn.abraham.gq/projects/arg/logo.svg"></a>
	<br>
	<br>
	<br>
	<a href="https://pypi.org/project/arg"><b>������</b></a>
	: Parse command line arguments made easier...
</p>

<p align="center">
	<!-- Travis CI -->
	<a href="https://travis-ci.org/abranhe/arg"><img src="https://img.shields.io/travis/abranhe/arg.svg?logo=travis" /></a>
	<!-- LICENSE -->
	<a href="https://github.com/abranhe/arg/blob/master/LICENSE"><img src="https://img.shields.io/github/license/abranhe/arg.svg" /></a>
	<!-- @abranhe -->
	<a href="https://github.com/abranhe"><img src="https://abranhe.com/badge.svg"></a>
	<!-- Cash me -->
	<a href="https://cash.me/$abranhe"><img src="https://cdn.abranhe.com/badges/cash-me.svg"></a>
	<!-- Patreon -->
	<a href="https://www.patreon.com/abranhe"><img src="https://cdn.abranhe.com/badges/patreon.svg" /></a>
	<!-- Paypal -->
	<a href="https://paypal.me/abranhe/10"><img src="https://cdn.abranhe.com/badges/paypal.svg" /></a>
</p>


# Install

```
pip install arg
```

# Usage

```
$ python test.py ford -m mustang --year 2017 red
```

> *test.py*

```py
import arg

# argv without file name
print(arg())
# => ['ford', '-m', 'mustang', '--year', '2017', 'red']

# argv
print(arg.v())
# => ['test.py', 'ford', '-m', 'mustang', '--year', '2017', 'red']

# argc
print(arg.c())
# => 7

# args as string
print(arg.s())
# => test.py ford -m mustang --year 2017 red

# file name
print(arg.fileName())
# => test.py

# argument at n
print(arg.at(2))
# => -m

```

# API

### `arg()`

> Return an array with the arguments without the file name

**Return Type**: `list`

### `.v()`

> Return an array with all the arguments. (**arg.v** ~> argv *Argumet Vector*)

**Return Type**: `list`

### `.c()`

> Return an array with all the arguments. (**arg.c** ~> argc *Argument Count*)

**Return Type**: `int`

### `.s()`

> Return an string with all the arguments. (arg.s ~> Arguments to String)

**Return Type**: `str`

### `.fileName()`

> Return an string with the name of the file

**Return Type**: `str`

### `.at(n)`

> Return the value of the argument at value at **n**

**Return Type**: `str`

# Related

- [**lupe**](https://github.com/abranhe/lupe): A better CLI Helper.

# Team

|[![Carlos Abraham Logo](https://avatars3.githubusercontent.com/u/21347264?s=50&v=4)](https://abranhe.com)|
| :-: |
| [Carlos Abraham](https://github.com/abranhe) |

# License

[MIT](https://github.com/abranhe/arg/blob/master/LICENSE) License © [Carlos Abraham](https://github.com/abranhe/)
payload-wtf 0.0.1
simple payload with an easy format for building Python APIs (like Django).

# Payload WTF

simple payload with an easy format for building Python APIs (like Django).
As an alternative that frees you to render responses without DRF or something
that is full of rules.

## Quick Example
You can use this package is easy:

```python
payload = PayloadWTF()
payload.set_state(setter=PayloadWTF.SET_RESULT, data={"data": "Yes this is data from queryset"})
payload.set_state(setter=PayloadWTF.SET_LINKS, next="http://.../?page=1")
payload.set_state(setter=PayloadWTF.SET_META, data={'user_activated': {'username': 'yanzen'}})
print(payload.tojson()) # Or payload.todata() result is dictionary
```

Result:
```
{
    "results": {"data": "Yes this is data from queryset"},
    "meta": {"user_activated": {"username": "yanzen"}},
    "links": {"next": "http://.../?page=1", "prev": ""}
}
```
pansys 0.1.3
Work with Ansys through python

# pansys

[![Documentation Status](http://readthedocs.org/projects/pansys/badge/?version=latest)](https://pansys.readthedocs.io/en/latest/?badge=latest)

Work interactively with ANSYS mechanical APDL and python.

The pansys module helps you interact with ansys through python. Starting a
panys session is as easy as setting a variable.

```python
    from pansys import Ansys
    ans = Ansys()
```

Now you're ready to send commands to your newly created ansys session.

```python
    ans.send("/prep7")
    ans.send("""n,,1
        n,,2""")
```

As you must have guessed, ``ans.send`` command will let you send commands
from python to ansys in string format.

You can get data out of Ansys as well.

```python
    nmax = ans.get("node","","num","max")
    ncount = ans.get("node","","count","")
```

Using ``get_list()`` function, you can get any ansys list item as well.

```python
    nodes = ans.get_list("nlist")
```

You can also start an ansys session in a remote machine. You will have to set up your ssh keys for this to work.

```python
    ans = Ansys(host="remotesystem")
```

Look into the documentation to get to know the API better.

## Installation

As of now, pansys is supported only on Linux systems. You will also need ANSYS installation on your computer
(or on the remote system, if you are using the ``host`` option when you're starting pansys).

```bash
    pip install pansys
```

The module assumes that you have ANSYS already installed in your machine. Also, the default command that the module is using
is ``ansys150``. You can override it with the ``start_command`` keyword argument.

```python
    a = Ansys(startcommand='my_ansys_command')
```

If you want to change the default start command from ``ansys150``, you can set an environment variable ``PANSYS_STARTCOMMAND``.
The value of this environment variable will be used as the start command. This value will be overridden if you explicitly call
``Ansys`` session with a ``startcommand``.

## Documentation

You can find the documentation at [readthedocs](https://pansys.readthedocs.io/en/latest/index.html)