Metadata-Version: 2.1
Name: ck-apstra-api
Version: 0.2.18
Summary: An implementation to use Apstra API
License: MIT
Author: Charlie Kim
Author-email: ckim@juniper.net
Requires-Python: >=3.11,<3.13
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: click (>=8.1.7,<9.0.0)
Requires-Dist: openpyxl (>=3.1.2,<4.0.0)
Requires-Dist: pandas (>=2.1.1,<3.0.0)
Requires-Dist: pydantic (>=2.4.2,<3.0.0)
Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
Requires-Dist: requests (>=2.31.0,<3.0.0)
Description-Content-Type: text/markdown

# ck-apstra-api


## prepare venv

```
python3.11 -m venv venv
source venv/bin/activate
pip install ck-apstra-api
```


## var/.env file example

```
apstra_server_host=local-apstra.pslab.link
apstra_server_port=443
apstra_server_username=admin
apstra_server_password=zaq1@WSXcde3$RFV
excel_input_file=./tests/fixtures/ApstraProvisiongTemplate.xlsx
config_yaml_input_file=tests/fixtures/config.yaml
logging_level=DEBUG
main_blueprint=terra
cabling_maps_yaml_file=tests/fixtures/sample-cabling-maps.yaml
```

Link the env file
```
ls -s var/.env .env
```

## run the commands

Help message
```
(venv) ckim@ckim-mbp:ck-apstra-api % ck-api --help                                                                         
Usage: ck-api [OPTIONS] COMMAND [ARGS]...

Options:
  --logging-level TEXT
  --help                Show this message and exit.

Commands:
  add-bp-from-json
  add-generic-systems
  add-ip-endpoints
  assign-connectivity-templates
  get-bp-into-json
  get-lldp-data                  Get LLDP data between managed switches
  import-routing-zones
  import-virtual-networks
  pull-device-configurations     pull produced configurations from Apstra
  read-generic-systems
(venv) ckim@ckim-mbp:ck-apstra-api % 
```

