semvec/pypi-packages huggingface dataset:
cloudconformity 0.1.9
Cloud Conformity template scanner tool
Requires Python: >=3.6

# Cloud Conformity Template Scanner API tool

This is a python package to Cloud Conformity Template Scanner. 

## Installing

To start using we need to setup the config.ini file first.
Navigate to the install pip package. <br>

Add your apiKey. We have created and environment variable
```
api= os.environ.get('apiKey')
``` 

Endpoint Region is set as US(Oregon - us-west-2)<br>
<br>
For reference, check out the conformity API documentation.<br>
https://github.com/cloudconformity/documentation-api


## Running a scan

Finally, we can scan a CloudFormation Template for misconfigurations before deployment into your AWS infrastructure.

We can scan by default or failures using either [all, fail]
Alternatively, we can filter by severity [Extreme, Very High, High, Medium, Low]

For example, a scan looking for any failure in your template
```
cloudconformity --scan fail C:\MyExample\template.yaml
```
Another example, a scan looking for extreme failures in your template
```
cloudconformity --scan extreme C:\MyExample\template.yaml
```
To see the original json response from API call
```
cloudconformity --scan default C:\MyExample\template.yaml
samp 2.0.0
Soft and Active Matter Physics Package
Requires Python: >=3.6

Soft and Active Matter Physics(samp) module for Python
==========================================

**samp** is a Python module and its aim to provide simple and efficient
solutions for **Soft and Active Matter Physics research**. It gives facility 
like calculating mean sqaure displacement,velocity as well as it allows 
to save data in csv format. Alongside it is also capable of plotting 
mean square displacement,trajectory,time evolution of microscopic 
particles and also it can make a good animation.

See http://sanatanhalder.in/samp for complete documentation.

## Installation

```python
pip install samp
```

### Additional requirements
**samp** needs additional pyhton packages. See [requirements.txt](requirements.txt)
```python
pip install -r requirements.txt
```

#### Citing samp
If samp contributes to a project that leads to publication, please acknowledge this by citing samp.

[citation]()
uc-pidfile 0.0.3
A set of classes and functions for managing pidfile.
Requires Python: >=3.4, <4

# uc_pidfile  
A set of classes and functions for managing pidfile.

It is part of the Unicon project.

https://unicon.10k.me

#### Using:
```python
import uc_pidfile
```

#### Functions:

**process_exists**(pid)

Checks if the process is running.
Returns True if process exists and False if not.



**read_pid**(filename)

Reads pid from file.

If the file exists and is successfully read,
then returns pid otherwise returns None.

May raise exceptions:
- PermissionError
- ValueError



**validate_pidfile(filename)**

Checks the contents of pidfiles for an integer.

Returns True if valid or False if not.

May raise exceptions:
- FileNotFoundError
- PermissionError



**is_running(filename)**

Returns True if the process is running, otherwise returns False.

It will also be considered that the process is started even if there is no access to the file.
And it will be considered that the process is not started if there is no file or the file contains incorrect data.



#### Classes:

**PidFile(filename, overwrite=False)**

Creates pid file.

If the file already exists and overwrite = True it will be overwritten. But if overwrite = false then this will throw an exception FileExistsError.

May raise exceptions:
- FileExistsError
- PermissionError
- FileNotFoundError (If the target directory does not exist, for example.)
smart-assertions 1.0.2
Soft assertions for Python

[![Build Status](https://api.travis-ci.org/balalaiQA/smart-assertions.svg?branch=master)](https://travis-ci.com/github/balalaiQA/smart-assertions)
[![PyPI version](https://badge.fury.io/py/smart-assertions.svg)](https://badge.fury.io/py/smart-assertions)
# smart-assertions
Soft assertions for Python

## Installation

```bash
    pip install smart-assertions
```
## Usage

Assertion is performed immediately after the call `soft_assert()`, 
but the expected result is obtained only after the call `verify_expectations()`

Quick example:
```python
    from  smart_assertions import soft_assert, verify_expectations

    def test_something():
        soft_assert(1 == 1)
        soft_assert(2 > 1, 'Message if test failed')
        soft_assert('one' != 'two', 'Some message')
        verify_expectations()
```

You can use asserts in loop:
```python
    from  smart_assertions import soft_assert, verify_expectations

    def test_asserts_in_loop():
        for number in range(1, 10):
            soft_assert(number % 2 == 0, '{} is not a multiple of 2'.format(number))
        verify_expectations()
```

Also you can use it with pytest parametrized tests:
```python
    import pytest
    from  smart_assertions import soft_assert, verify_expectations

    @pytest.mark.parametrize("number", list(range(1, 10)))
    def test_pytest_example(number):
        soft_assert(number % 2 == 0)
        verify_expectations()
```

Example of output:
```python
    AssertionError: Failed conditions count: [ 4 ]

    1. Exception: Custom message if test failed
    Fail in "/Users/nromanov/Documents/smart-assertions/unittest_example.py:28" test_mixed()

    2. Exception: Lists not equals
    Fail in "/Users/nromanov/Documents/smart-assertions/unittest_example.py:30" test_mixed()

    3. Exception: Your custom message; 4 < 5!
    Fail in "/Users/nromanov/Documents/smart-assertions/unittest_example.py:32" test_mixed()

    4. Exception: one != two
    Fail in "/Users/nromanov/Documents/smart-assertions/unittest_example.py:34" test_mixed()
```

More examples you can find in `unittest_example.py`