semvec/pypi-packages huggingface dataset:
glstatus 1.0.1
A simple tool to retrieve and update your GitLab status from your terminal

## GitLab Status

> A simple tool to retrieve and update your GitLab status from your terminal

## Inspired From

- [BrunoScheufler's ghstatus](https://github.com/BrunoScheufler/ghstatus)

## Install

```
$ pip install glstatus
```

## Usage

```
$ glstatus auth

$ glstatus set unicorn Shipping
#=> Status set Successful! �� Shipping

$ glstatus get
#=> �� Shipping
```

## License

[MIT][license] Yoginth

[LICENSE]: https://mit.yoginth.com
antares-http 1.1.4
A Python Library to simplify connection to Antares IoT Platform

# Antares Python
[![PyPI version](https://badge.fury.io/py/antares-http.svg)](https://badge.fury.io/py/antares-http)  

<img src="https://antares.id/assets/img/antarespy.png" width="300">  

This is a Python library to simplify the connection to Antares IoT Platform. For more information about the platform itself, please visit the ![official site](https://antares.id).  

## Installation
Make sure you have Python (2 or 3) and pip installed.
```
pip install antares-http
```

### Usage Example
#### Send data
```python
from antares_http import antares

antares.setDebug(True)
antares.setAccessKey('your-access-key')

myData = {
    'temp' : 77,
    'windsp' : 10
}

antares.send(myData, 'your-project-name', 'your-device-name')
```

#### Get latest data
```python
from antares_http import antares

antares.setDebug(False)
antares.setAccessKey('your-access-key')

latestData = antares.get('your-project-name', 'your-device-name')
print(latestData['content'])
```

### API Reference
* `setAccessKey(access-key)`  
Set the `access-key` parameter to your Antares access key.  

* `setDebug(status)`  
Set whether you want to show debug results of every HTTP request to Antares or not, can be set to `True` or `False`.  

* `get(projectName, deviceName)`  
    Get the latest data from your Antares device.  
    return: latest data (json)  
* `getAll(projectName, deviceName, limit=integer)`  
    Get a chunk of data from your Antares project, you can set the limitation by setting the `limit` parameter.  
    return: Chunk of data from your Antares device  

* `getAllId(projectName, deviceName, limit=integer)`  
    Get a chunk of data IDs from your Antares project, you can set the limitation by setting the `limit` parameter.  
    return: Chunk of data IDs from your Antares device  

* `getSpecific(projectName, deviceName, data-id)`  
    Get specific data from your Antares device, the `data-id` parameter looks like this: `cin_81723819`.  
    return: Specific device data  

* `getDeviceId(projectName, deviceName)`  
    Get your Antares device ID.  
    return: antares device ID (i.e. `cnt-44637281`)  

* `send(data, projectName, deviceName)`  
    Send data to your Antares project. This can be a python dictionary or string.  
    return: POST response data from Antares  

* `sendById(data, device-id)`  
    Send data to your Antares device through Antares device ID which looks like `cnt-281727372`  
    return: POST response data from Antares  

* `createDevice(projectName, newDeviceName)`  
    Create an Antares device in your Project.  
    return: device creation response  

* `getDevices(projectName)`  
    Get all device names of Antares project  
    return: antares device names
pylint-tta 0.0.4a0
Linter for PyTorch Tensor operations

# pylint-tta
Pylint plugin to check for *PyTorch* tensor type annotations

Tested on Python 3.6+

---

| Branch | Status |
| --- | --- |
| Master | ![](https://travis-ci.org/Popgun-Labs/pylint_tta.svg?branch=master) |

---


# Quickstart
```bash
pip install pylint pylint_tta

# Use pylint defaults with the plugin
pylint --load-plugins=pylint_tta <directory>

# Only use the plugin
pylint --load-plugins=pylint_tta --disable=all --enable=C9001,C9002,C9003,C9004,C9005,C9006 <directory>
```

# What it checks for

Given file `example1.py`,
```python
import astroid
import torch


def fail_func():
    a = torch.randn(5, 5, 5)

    a.unsqueeze_(1)
    b_fail = a.view(5, 25, -1)
    c_fail = a[:, : 1]
    c_fail: str = a[:, : 1]
    d_fail: str = a.unsqueeze(1)
    e_fail = a.unsqueeze_(1)

    return None


def pass_func():
    a = torch.randn(5, 5, 5)

    c_pass: ('w', 'h', 'b') = a[:, :, 1]
    d_pass: ('width', 'batch', 'height') = a.unsqueeze(1)

    return None
```

pylint-tta will yield:

```
************* Module example1
example1.py:8:4: C9005: In-place operation detected (disallow-inplace-tensor-operations)
example1.py:9:4: C9001: Missing type annotations on tensor operation (missing-tensor-annotations)
example1.py:10:4: C9003: Missing type annotations on slicing (missing-slicing-annotations)
example1.py:11:4: C9004: Invalid type annotations on slicing (invalid-slicing-annotations)
example1.py:12:4: C9002: Non tuple type annotations on tensor operation (invalid-tensor-annotations)
example1.py:13:4: C9006: Assignment on in-place operation detected (assignment-on-inplace-operations)
```

# Codes
| Code  | Name |
| ----- |:-------------|
| C9001 | missing-tensor-annotations |
| C9002 | invalid-tensor-annotations |
| C9003 | missing-slicing-annotations |
| C9004 | invalid-slicing-annotations |
| C9005 | disallow-inplace-tensor-operations |
| C9006 | assignment-on-inplace-operations |


# Dev
## Run Example
```
export PYTHONPATH=`pwd`; pylint --load-plugins=pylint_tta --disable=all --enable=C9001,C9002,C9003,C9004 example1.py
```

## Testing
```
pytest -s
```