semvec/pypi-packages huggingface dataset:
insightconnect-integrations-plugin-spec-tooling 1.3.2
Plugin spec parser tooling for InsightConnect integrations
License: MIT


# InsightConnect Integrations Plugin Spec

## What this is

A tool for parsing a
[Rapid7 InsightConnect](https://www.rapid7.com/products/insightconnect/) integration
plugin spec file _(plugin.spec.yaml)_ and interacting with it programmatically.

## Installation

### Install the module via `pip`

```
$ pip install insightconnect-integrations-plugin-spec-tooling
```

## Okay great, but how do I use it

Simple!

```
from typing import Any
from icon_plugin_spec.plugin_spec import KomandPluginSpec, PluginComponent

spec: KomandPluginSpec = KomandPluginSpec(directory="path_to_my_plugin")
raw_connection: {str: Any} = spec.connection()  # Dictionary of connection properties

print(raw_connection)  # Prints out list of inputs on the connection

# or, do the following
connection: PluginComponent = PluginComponent.new_connection(raw=raw_connection)
print(connection.inputs)
```

## Changelog

* 1.3.2 - Update PyYaml to v6.0.1
* 1.3.1 - Update ruamel.yaml to work with Python 3.9
* 1.3.0 - Add functionality to support plugin tasks
* 1.2.0 - Add functionality to check if a plugin is cloud ready
* 1.1.0 - Add functionality to check if a plugin is obsolete
* 1.0.0 - Initial
SciDirectTrends 1.0.1
A tool for fetching and visualizing publication trends from ScienceDirect
License: MIT
Requires Python: >=3.6
Keywords: ScienceDirect,data visualization,publication trends

# SciDirectTrends

![PyPI](https://img.shields.io/pypi/v/SciDirectTrends?style=for-the-badge)
[![MIT License](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](https://github.com/AliRezaBeigy/SciDirectTrends/blob/master/LICENSE)
[![PR's Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge)](http://makeapullrequest.com)
![GitHub Repo stars](https://img.shields.io/github/stars/AliRezaBeigy/SciDirectTrends?style=for-the-badge)
![PyPI - Downloads](https://img.shields.io/pypi/dm/SciDirectTrends?style=for-the-badge)

A tool for fetching and visualizing publication trends from ScienceDirect.

<p align="center">
  <img width="1350" src="https://raw.githubusercontent.com/AliRezaBeigy/SciDirectTrends/main/sample/trend.png">
</p>

## Requirements

- Python 3.6 or higher
- Access to ScienceDirect

## Quick Start

First, ensure Python 3.6+ is installed on your system. You can download Python from the [Official Python Website](https://www.python.org/downloads).

To install SciDirectTrends:

```shell
$ pip install -U SciDirectTrends
```
Use -U to update SciDirectTrends to the latest version

## Usage
Basic command to visualize publication trends:
```shell
$ scidirecttrends --query "your query here"
```
Customize the visualization:
```shell
$ scidirecttrends --title "Custom Title" --query "your query here" --output "trend.png"
```


## Features
Fetches publication data from ScienceDirect based on a user-defined query.
Generates visualizations of publication trends over time.
Customizable visualization titles and output formats.

## Contributions
Contributions to SciDirectTrends are highly appreciated. If you're interested in contributing, feel free to fork the repository, make changes, and create a pull request.

If you need help or have suggestions, please contact me:

Email: alireza.beigy.rb@gmail.com
Telegram: @AliRezaBeigy

## License
This project is licensed under the MIT License - see the LICENSE file for details.
automatilib 1.2.1
Automatilib is common django code used by the i.AI team.
License: MIT
Requires Python: >=3.9,<4.0

# i.AI Shared Code

`automatilib` is a django package used and developed by the i.AI team within the Cabinet Office.
It provides common features used in many of our applications.


## Features

* Timestamped, UUID and base user models
* Initial migration for above models
* Logic for authenticating with COLA


## Settings

* `LOGIN_REDIRECT_URL` - The URL to redirect users to post-login
* `LOGIN_URL` - The URL to redirect users to if they are not logged in
* `COLA_COOKIE_NAME` - The name of the cookie to check for COLA JWT
* `COLA_COGNITO_CLIENT_ID` - The cognito client ID found in AWS
* `COLA_LOGIN_FAILURE` - Where the user should be redirected to in the event of authentication failure.
* `AWS_REGION_NAME` - The AWS region that the user pool and cognito client live in
* `COLA_COGNITO_USER_POOL_ID` - The cognito user pool ID in AWS
* `LOGIN_FAILURE_TEMPLATE_PATH` - The path to an error template for authenticating with COLA errors
* `CONTACT_EMAIL` - The contact email to be used in the login error template

This is where some of the above can be found:

* `COLA_COOKIE_NAME`: In your json settings file for COLA
* `COLA_COOKIE_DOMAIN`: is `.cabinetoffice.gov.uk` by default
* `COLA_COGNITO_CLIENT_ID`: In AWS, go to your cognito user pool, then to app integration, then at the bottom you can find your client ID in the table
* `AWS_REGION_NAME`: Whichever region in AWS your Cognito pool lives, likely to be `eu-west-2`
* `COLA_COGNITO_USER_POOL_ID`: In AWS, go to your cognito user pool, in the top table called `User pool overview`, your `User pool ID` is there
* `COLA_LOGIN_URL`: Ask the COLA team for this URL
* `COLA_JWT_REGEX_PATTERN`: This is one you can adjust how you want to, the baseline is `(?<=:).*(?=\.)`
* `COLA_LOGIN_FAILURE` - This should be a route in your app, if not specified the user will get a raw 401 plain text message.


## To make use of COLA

see the [example settings](example_project/settings.py) in this repo

Add these into your `INSTALLED_APPS` settings:

```python
INSTALLED_APPS = [
    "automatilib.core.apps.IdotAIConfig",
    "automatilib.cola.apps.ColaAuthConfig",
    ...
]
```

Add this into your `AUTHENTICATION_BACKEND` setting:

```python
AUTHENTICATION_BACKENDS = [
    "automatilib.cola.backend.COLAAuthenticationBackend",
    "django.contrib.auth.backends.ModelBackend",  # This includes the default backend
]
```

Import and add the following to your url_patterns:
```python
from automatilib.cola.urls import url_patterns as cola_urls
urlpatterns = other_urlpatterns + cola_urls
```


## How to run Tests

```commandline
DJANGO_SETTINGS_MODULE=example_project.settings pytest --cov cola --cov core --cov-report term-missing --cov-fail-under 80
```

## Licence

MIT