semvec/pypi-packages huggingface dataset:
fluentxy 0.1.0
An interface to produce Pandas DataFrames from Fluent XY output files.
Requires Python: ~=3.6

# fluentxy

A small package to parse `.xy` output files from Fluent into Pandas DataFrames.
The typical `.xy` output from Fluent looks like

```text
(title "Axial Velocity")
(labels "Position" "Axial Velocity")

((xy/key/label "inlet")
0	0.2
...
0.00873	0.2
)
```

and this module parses this output into a DataFrame that looks like

```python
from fluentxy import parse_data
with open('filename.xy', 'r') as f:
    lines = f.readlines()
data = parse_data(lines)
data.head()
      inlet
   Position Axial Velocity
0  0.000000            0.2
1  0.000582            0.2
2  0.001164            0.2
3  0.001746            0.2
4  0.002328            0.2
```
outlyer-plugin 0.0.1
Library for building native plugins for the Outlyer monitoring agent
Keywords: outlyer,plugin,metrics,monitoring

# Outlyer Plugin

api for definining native Outlyer Plugins

```python

class Plugin:
    """
    The Plugin API.
    Users must derive from this class when implementing a custom Plugin
    """
    def collect(self) -> Status:
        """Perform collections operations for the provided Target"""

    def gauge(self, name: str, labels: Optional[dict]) -> Gauge:
        """Get a Gauge instance for the specified Name/Labels"""

    def counter(self, name: str, labels: Optional[dict]) -> Counter:
        """Get a Counter instance for the specified Name/Labels"""

    def get(self, key: str, default: any) -> any:
        """Get a Target config property"""
```

## Usage
```python
from outlyer_plugin import Plugin, Status

class MyPlugin(Plugin):
    def collect(self):
        self.gauge(f'sys.cpu.user.pct').set(55)
        return Status.OK

if __name__ == '__main__':
    # To run the collection
    sys.exit(MyPlugin().run())
```