semvec/pypi-packages huggingface dataset:
CarlAdam 0.1.0
Petri net tools and interactive simulator
License: MIT
Requires Python: <4.0,>=3.11

# `CarlAdam`: Petri net tools and interactive simulator for Python

## What is a Petri net?

Petri nets are a mathematical modeling scheme for the description of distributed systems.

Petri nets were invented in 1962 by Carl Adam Petri.
They have been used to model various kinds of systems,
including computer networks, manufacturing systems, and biological systems.

## What is `CarlAdam`?

`CarlAdam` is a Python library for working with Petri nets, named after their inventor.
It provides a simple, Python-oriented API for defining and executing Petri nets.

It is also a simulator for Petri nets, so you can run your Petri net models and see how they behave.

## Getting started

Check out the examples using the simulator:

```shell
poetry install --with=simulator
make simulator
```

Or use Docker:

```shell
docker compose up
```

Then browse to http://localhost:8000 to see the simulator in action.

## Sponsors

Initial work on the CarlAdam package was sponsored by [Routable](https://routable.com/).
temp-email-automa 0.0.7
A Python Package to Provide Temp Emails for AUTOMATION!
License: MIT
Keywords: temp-email automation email

A Python package for generating and interacting with temporary email addresses.

## Installation

You can install the package via pip:

```python
pip install temp_email_automa
```

## Usage

Import the `TempMail` class from the package:

```python
from temp_email_automa.main import TempMail
```

Create an instance of `TempMail` with optional parameters for login and domain. If not provided, a random email address will be generated:

```python
temp_mail = TempMail(login="example", domain="example.com")
```

You can also generate a random email address using:

```python
temp_mail.generate_random_email_address()
```

To get the email address generated or provided:

```python
email_address = temp_mail.email
```

You can get a list of active domains for email addresses using:

```python
active_domains = temp_mail.get_list_of_active_domains()
```

To retrieve a list of emails in the mailbox:

```python
emails = temp_mail.get_list_of_emails()
```

Retrieve a single email by its id:

```python
email_id = 1  # Example id
single_email = temp_mail.get_single_email(email_id)
print(single_email)
```

## Data Structures

The package provides a `Email` data class representing an email message with the following attributes:

- `id`: str
- `sender`: str
- `subject`: str
- `date`: str
- `body`: str
- `textBody`: str
- `htmlBody`: str

Example:

```python
from dataclasses import dataclass

@dataclass
class Email:
    id: str
    sender: str
    subject: str
    date: str
    body: str
    textBody: str
    htmlBody: str
```
iam-minify 0.0.4
Minify IAM actions using wildcards to save up as many characters as possible without granting unintended permissions
License: MIT
Keywords: AWS IAM policy minify

# IAM Policies minifier

Optimize long AWS IAM policies by strategically using wildcards, reducing the number of characters, and maintaining the intended scope of permissions.

## Background

When crafting long and complex AWS IAM customer-managed policies, the 6,144 character limit imposed by AWS can become a problem. While one approach to address this limitation is to split a long policy into multiple customer-managed policies, this may not always be the ideal solution. In such scenarios, it's possible to reduce the length of a policy by strategically using wildcards where possible.

The `iam-minify`-er traverses through a list of IAM actions defined in a policy, identifies optimal locations for wildcards, and effectively reduces the character count while maintaining the intended permission scope.

## Instalation

```
python -m pip install iam-minify
```

## Usage & features

- `iam-minify example-policy.json` 

The script will traverse though all policy statemends defined in the policy document, and optimise IAM actions within the same statement. It processes different policy statements in isolation in order to not grant unintended access to resources.

### Limitations
- Actions in the supplied IAM policy documents can contain **wildcards only at the end of the string**. Wildcards anywhere else than at the end of the string are currently not supported. E.g., `s3:Get*` will work while `s3:*Object` **will throw an error.**

### Example

Consider the following IAM policy:

```json
// ./example-policy.json

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "s3:ListAccessPoints",
        "s3:ListAccessPointsForObjectLambda",
        "s3:ListAllMyBuckets",
        "s3:ListBucket",
        "s3:ListBucketMultipartUploads",
        "s3:ListBucketVersions",
        "s3:ListJobs",
        "s3:ListMultipartUploadParts",
        "s3:ListMultiRegionAccessPoints"
        "s3:ListStorageLensConfigurations",
      ],
      "Resource": "*"
    }
  ]
}
```

Executing `iam-minify example-policy.json` will output the following result:

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "s3:ListAccessP*",
        "s3:ListAl*",
        "s3:ListB*",
        "s3:ListJ*",
        "s3:ListM*",
        "s3:ListStorageLensC*"
      ],
      "Resource": "*"
    }
  ]
}
```
fired-up 0.1.0
conventions and supporting tools for using Fire in a more natural-ish language style
License: MIT
Keywords: python fire DSL

# Fired Up

> conventions and supporting tools for using Fire in a more natural-ish language style

[![Latest Version on PyPI](https://img.shields.io/pypi/v/fired-up.svg)](https://pypi.python.org/pypi/fired-up/)
[![Supported Implementations](https://img.shields.io/pypi/pyversions/fired-up.svg)](https://pypi.python.org/pypi/fired-up/)
![Build Status](https://github.com/christophevg/fired-up/actions/workflows/test.yaml/badge.svg)
[![Documentation Status](https://readthedocs.org/projects/fired-up/badge/?version=latest)](https://fired-up.readthedocs.io/en/latest/?badge=latest)
[![Coverage Status](https://coveralls.io/repos/github/christophevg/fired-up/badge.svg?branch=master)](https://coveralls.io/github/christophevg/fired-up?branch=master)
[![Built with PyPi Template](https://img.shields.io/badge/PyPi_Template-v0.5.0-blue.svg)](https://github.com/christophevg/pypi-template)



## Documentation

Visit [Read the Docs](https://fired-up.readthedocs.org) for the full documentation, including overviews and several examples.