semvec/pypi-packages huggingface dataset:
newrelic-api-parser 0.3.3
A plug-n-play package to start using new relic APIs for data gathering
License: MIT
Requires Python: >=3.6
Keywords: new relic api,insights,new relic,apm,graphql

# New Relic API Parser

- ## [Getting Started](#getting-started)
    * [Prerequiste](#prerequiste)
    * [Installation](#installation)
    * [Examples](#example)
- ## [Available Methods](#available-methods)
- ## [Reference](#reference)

## Getting Started

- ### Prerequisites
    - Python >= 3.6.x
    - pip

- ### Installation
    ```
    $ pip install newrelic-api-parser
    ```

- ### Examples
    - Calling the insights API
    ```
    # import the class
    from NewRelicApiParser.Insights import Insights
    
    query_key = 'NRIQ-xxxxxxxxxxxxxxxxxxxx'
    # Call the api by passing the query key
    # pass the account ID and the query you want to execute
    Insights(query_key=query_key)
    .query(<account_id>, nrql='SELECT * from PageView')
    ```

### Available Methods

- For REST APIs

| Class | Method | Params | Description |
| --- | --- | --- | --- |
| AlertsConditions | get_list | policy_id | return the list of alert conditions for the provided policy id
| AlertsEvents | get_list | N.A. | return the list of alert events
| AlertsPolicies | get_list | N.A. | return the list of policies for the alerts
| AlertsViolation | get_list | N.A. | return the list of alert violations
| Applications | get_list | N.A. | return the list of apm applications
| Applications | show | app_id | returns the detail of an application based on the app id passed
| Applications | delete | app_id | delete an apm app on new relic based on the app id passed
| BrowserApplications | get_list | N.A. | return the list of browser applications
| BrowserApplications | create | browser_application_name | returns the detail of a browser application based on the application name passed
| Plugins | get_list | N.A. | return the list of plugins
| Plugins | show | app_id | returns the detail of a plugin based on the app id passed

- For Insights API

| Module | Method | Params | Description 
| --- | --- | --- | --- |
| Insights | query | account_id, nrql | execute the passed new relic query and return the data

- For GraphQl API

| Module | Method | Params | Description 
| --- | --- | --- | --- |
| GraphQlApi | query | request_body  | execute the passed new relic graph ql query and return the data


## Reference
- Please refer the [official New Relic Documentation](https://docs.newrelic.com/docs/apis/rest-api-v2/getting-started/introduction-new-relic-rest-api-v2) for more details on the endpoints

### Note:
 - The package is under development and will be prone to more frequent updates
detorch 1.2.4
Minimal PyTorch Library for Differential Evolution
License: MIT
Requires Python: >=3.7

Minimal PyTorch Library for Differential Evolution
========================================================

# Requirements

```
numpy
torch
```

## Optional
```
mpi4py # If you want to run in parallel
gym # For examples
```

To install `mpi4py` you need `MPI` installed in the system.
Check: https://mpi4py.readthedocs.io/en/stable/install.html

A Dockerfile is provided for convenience.

# Installation

```bash
pip install detorch --user
```

## Source
```bash
git clone --recursive https://github.com/goktug97/de-torch
cd de-torch
python3 setup.py install --user
```

# Usage
See https://github.com/goktug97/de-torch/blob/master/examples

Check https://github.com/goktug97/de-torch/blob/master/detorch/config.py for parameters.

You can run the example with
```bash
PYTHONPATH="$(pwd):$PYTHONPATH" python examples/example.py
```
or in parallel for faster training (requires mpi4py).
```bash
PYTHONPATH="$(pwd):$PYTHONPATH" mpirun -np 2 python examples/example.py
```

# Another Evolution Library for PyTorch

https://github.com/goktug97/nes-torch