semvec/pypi-packages huggingface dataset:
opendatalab-python-sdk 0.0.4
Python SDK for reading dataset files.
Requires Python: >=3.6

## OpenDataLab Python SDK 0.0.4

# Features:
1. download dataset from offical website: https://opendatalab.com/
2. preview dataset info online

# Usage: 
1. install
```
pip install opendatalab-python-sdk==0.0.4
```

2. download dataset into local path
```
script:
$ python -m opendatalab.download --help    
    Tool for download opendatalab public dataset.  

  Options:
    --name        TEXT    Name of the public dataset.
    --format      TEXT    Format, avaiable options: source, standard.
    --root        TEXT    Data root path, default: current working path.
    --thread      INTEGER Number of thread for download, default: 10.
    --limit_speed INTEGER Download limit speed: KB/s, 0 is unlimited, default: 0

example:
1). download dataset source compressed
    $ python -m opendatalab.download --name coco --format source --root /home/XXX/coco

2). download standard format compressed
    $ python -m opendatalab.download --name coco --format standard --root /home/XXX/coco --thread   8 --limit_speed 5000
```


# Support
More see: https://opendatalab.com/docs/3
northstar-epe-planner 0.0.2
Package to help interact with Northstar's EPE Planner

# northstar-epe-planner

Python library to interface with Northstar's REST API to plan out egress-path-engineering of segment routing LSPs

## Configuration file

Northstar configuration is to be passed as a YAML file on your system.

`example.yaml`

```yaml
---
project:
    meta:
        name: "SparklingLincoln"
    changes:
        freeTrafficTest:
            type: "congestedPeerLink"
            minUseRatio: 0.1
        timeLimit: 10

    steps:
        type: "peerLink"
        asbrIndex: 5
        peerLinkIndex: 0

    execution:
        oustadingTrafficChangeLimit: 10
        timeLimit: 10
        progressInterval: 1

server:
    baseurl: "10.0.1.2:8443"
    validate_certs: False
    headers: 
        Authorization: "Basic base64sumOfUserPass="
        Content-Type: "application/json"
    auth:
        grant_type: "password"
        username: "admin"
        password: "jnpr!123"
```

## Execution

Pass your YAML file into your Python script arguments

`example.py`

```python
"""
Manage an EPE project's planning, changes, steps, and execution.
"""

# Standard library imports
import argparse
import time

# 3rd Party imports
import yaml

# Local imports
from northstar_epe_planner import NorthstarHelper


def main():
    """Main execution block."""

    # create project object, passing in YAML file objects
    x = NorthstarHelper(server=epe["server"], project=epe["project"])

    # execute the creation of our project
    x.create_project()

    # wait 5 seconds and then create the changes for our newly created plan
    time.sleep(5)
    x.create_changes(epe["changes"])
    x.create_steps(epe["steps"])
    x.execute(epe["execution"])

    return x


if __name__ == "__main__":

    parser = argparse.ArgumentParser(description="Configuration Parameters")
    parser.add_argument(
        "--config", dest="config", type=str, help="path to configuration file"
    )
    args = parser.parse_args()

    # load contents of our config.yaml file into an object named `epe`
    with open(args.config, "r", encoding="utf-8") as file:
        epe = yaml.safe_load(file)

    main()
```