semvec/pypi-packages huggingface dataset:
onepage 0.0.6
Tools for token validation and intelligent search integration.
Requires Python: >=3.11

### OnePage
 1Page component helps end users or applications get insights about people and companies by providing email, domain or LinkedIn urls. 
 This component needs API key that can be obtained from https://web.1pageplus.com

## Usage

**Importing the Library**

You can import the library’s public API to interact with the tools.

```bash
from onepage import Insights

# Create an instance of the Insights class
api = Insights()

# Validate a token
token = "your_api_token_here"
result = api.validate_token(token)
print(result)

# Search for person or company insights by providing email, domain or LinkedIn URL
search_result = api.search(token, "email or domain or LinkedIn url")
print(search_result)
```

**Running Tests**

To run tests, ensure you have pytest installed and use the following command:
```bash
pytest
```
kmonitor 0.2.12
kmonitor is a simple utility wrapper around kubernetes package
Requires Python: >=3.8

# K8s Monitor 

## Description

Simple wrapper around `kubernetes` package to monitor the status of a k8s deployment.

## Installation

```bash
pip install kmonitor --upgrade
```

## Usage

```python
import numpy as np
from kmonitor import KubeMonitor, safe_jsonify


if __name__ == '__main__':
  km = KubeMonitor()
  pods = km.list_pods()
  if pods is not None:
    for pod in pods:
      print(f"Pod: {pod.metadata.name} in namespace {pod.metadata.namespace} is in phase {pod.status.phase}")
  else:
    print("Failed to get pods")

  namespaces = km.list_namespaces()
  if namespaces is not None:
    for ns in namespaces:
      print(f"Namespace: {ns.metadata.name}")
  else:
    print("Failed to get namespaces")
  
  nr_pods = len(pods)
  idx = np.random.randint(0, nr_pods)
  example_pod_name = "basic-test" # pods[idx].metadata.name
  print("Checking pod status for pod {}".format(example_pod_name))
  status = km.check_pod_by_name(example_pod_name)
  print(safe_jsonify(status, indent=2))

  example_pod_names = ["nvidia", "calico-node", "emqx"]
  print("Checking pod status for pods {}".format(example_pod_names))
  status = km.check_pods_by_names(example_pod_names)
  print(safe_jsonify(status, indent=2))
```

## Citation

If you use this code in your research, please consider citing it with the following BibTeX entry:

```bibtex
@misc{KMonitor,
  author = {Andrei Damian},
  title = {kmonitor - a simple K8s monitor framework},
  year = {2023-2024},
  publisher = {GitHub},
  journal = {https://github.com/aidamian/k8s_monitor.git}
}
```