semvec/pypi-packages huggingface dataset:
mirrulations 0.1.2
A utility tool for accessing data from the Mirrulations dataset.
Requires Python: >=3.9

# Mirrulations

A command-line tool for working with dockets from regulations.gov via the [Mirrulations dataset](https://registry.opendata.aws/mirrulations/).

This tool currently has two commands that wrap two existing scripts:

- `mirrulations fetch` — Download all data for a specific docket by ID. See [documentation](https://github.com/mirrulations/mirrulations-fetch/).
- `mirrulations csv` — Reformat comments data as a tabular CSV file. See [documentation](https://github.com/mirrulations/mirrulations-csv).

## Example usage

```bash
# Download Docket CMS-2019-0039 to ./CMS-2019-0039
mirrulations fetch CMS-2019-0039

# Transform comments into a CSV to ./CMS-2019-0039.csv
mirrulations csv CMS-2019-0039/raw-data/comments/
```

## Excluding file types

`mirrulations fetch` supports a multiple use `--exclude` flag to exclude certain file types. By default, the following types are downloaded: `docket`, `documents`, `comments`, `derived`.

For example, to exclude `comments` and `derived` and to only include `docket` and `documents`:

```bash
mirrulations fetch CMS-2019-0039 --exclude comments --exclude derived
```
openvino2onnx 1.1.0
An Open Neural Network Exchange (ONNX) Optimization and Transformation Tool.
Requires Python: >=3.11

# OPENVINO2ONNX
A simple tool to convert your IR XML to ONNX file.

[![Checked with pyright](https://microsoft.github.io/pyright/img/pyright_badge.svg)](https://microsoft.github.io/pyright/)

Supported OpenVINO IR Version

- IRv10: openvino>=2020,<2023
- IRv11: openvino>=2023

## Usage

1. Install from PyPI
```shell
pip install openvino2onnx
```

2. Convert IR using CLI
```shell
openvino2onnx model.xml
```

```
usage: openvino2onnx input_model.xml [output_model.onnx]

openvino2onnx command-line api

options:
  -h, --help            show this help message and exit
  -a [ACTIVATE ...], --activate [ACTIVATE ...]
                        select passes to be activated, activate L1, L2 and L3 passes if not set.
  -r [REMOVE ...], --remove [REMOVE ...]
                        specify passes to be removed from activated passes.
  -n, --no-passes       do not run any optimizing passes, just convert the model
  --print [PRINT]       print the name of all optimizing passes
  --format {protobuf,textproto,json,onnxtxt}
                        onnx file format
  -s, --infer-shapes    infer model shapes
  -c CONFIG_FILE, --config-file CONFIG_FILE
                        specify a json-format config file for passes
  -u, --uncheck         no checking output model
  --check               check optimized model with random inputs
  --checker-backend {onnx,openvino,onnxruntime}
                        backend for accuracy checking, defaults to openvino
  -v OPSET_VERSION, --opset-version OPSET_VERSION
                        target opset version, defaults to 19
  -vv [{DEBUG,INFO,WARNING,ERROR,CRITICAL}], --log-level [{DEBUG,INFO,WARNING,ERROR,CRITICAL}]
                        specify the level of log messages to be printed, defaults to INFO
```

To print pass information:

```
openvino2onnx --print all
openvino2onnx --print fuse_swish
openvino2onnx --print l1
```
self-destruct 0.1.0
A simple way for EC2 instances to stop/terminate themselves.
Requires Python: >=3.9
Keywords: AWS, EC2, terminate

=============
SELF DESTRUCT
=============

.. |---| unicode:: U+2014
           :trim:

.. image:: https://img.shields.io/pypi/v/self-destruct.svg?style=for-the-badge
   :target: https://pypi.org/project/self-destruct/

``self-destruct`` is a simple Python library for stopping and terminating EC2
instances from within themselves, which is not officially supported by AWS.
Usage is very simple:

.. code-block:: python

    from self_destruct import self_destruct

    self_destruct()

The only customization option is the specification of a parameter
``terminate: bool = True`` which allows the user to specify whether they want to
terminate the instance or merely stop it.

Note that in order for this function to be successful, the EC2 instance must
have the following permissions:

::

    "ec2:DescribeInstances"
    "ec2:StopInstances"
    "ec2:TerminateInstances"

Additionally, ``self-destruct`` can be run in module mode to ensure that the
instance is terminated when the Python script exits, regardless of whether any
errors are raised. To run as a module, use the following commandline syntax:

::

    python -m self_destruct [-o (stop | terminate)] (-m module | pyfile) [args ...]

When using ``-o``, any argument other than ``stop`` will result in instance
termination. This choice was made to ensure that a typo in the argument name
does not result in the instance failing to terminate.

^^^^^^^
WARNING
^^^^^^^

You are responsible for ensuring that your AWS instance terminates, and the
author of this package is not liable for any costs associated with the failure
of this package to actually terminate your instances.

In particular, this package cannot stop/terminate your instances if
``self_destruct()`` is never run |---| use module-mode to ensure that an uncaught
Python exception does not prevent ``self_destruct()`` from being called. There
is no protection from another program or the operating system killing the
program before ``self_destruct()`` can be called, even in module-mode, however.
It is your responsibility to ensure that this does not happen.