|
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | +# 📘 easySSP – Import/Export Client Examples |
| 5 | + |
| 6 | +This repository provides real-world examples for using the |
| 7 | +official [easySSP Import/Export Client](https://github.com/exxcellent/easyssp-import-export-client-python). Whether |
| 8 | +you're testing the API or building production workflows, these scripts will help you get started quickly. |
| 9 | + |
| 10 | +--- |
| 11 | + |
| 12 | +## 🎯 What’s Inside |
| 13 | + |
| 14 | +- 🔐 Authentication via the authentication module |
| 15 | +- 🧪 Import and export .ssp/.ssd files |
| 16 | +- 📘 **Includes documentation for all Import/Export API endpoints and models** |
| 17 | + |
| 18 | +--- |
| 19 | + |
| 20 | +## 📁 Repository Structure |
| 21 | + |
| 22 | +```bash |
| 23 | +easyssp-import-export-examples-python/ |
| 24 | +├── demo.py # Run a basic scenario |
| 25 | +├── input/ |
| 26 | +│ └── ssd_example.ssd # SSD file for importing |
| 27 | +│ └── ssp_example.ssp # SSP file for importing |
| 28 | +└── output # Directory for storing the exported SSP models. |
| 29 | +``` |
| 30 | + |
| 31 | +# 🚀 Getting Started with easySSP Import/Export Examples |
| 32 | + |
| 33 | +This guide walks you through setting up and running the example scripts provided in the easySSP Import/Export Examples |
| 34 | +repository. |
| 35 | + |
| 36 | +--- |
| 37 | + |
| 38 | +## 1. Clone the Repository |
| 39 | + |
| 40 | +To begin, clone the repository and navigate into the project directory: |
| 41 | + |
| 42 | +- Clone the repo: |
| 43 | + `git clone https://github.com/exxcellent/easyssp-import-export-examples-python.git` |
| 44 | +- Change into the directory: |
| 45 | + `cd easyssp-import-export-examples-python` |
| 46 | + |
| 47 | +--- |
| 48 | + |
| 49 | +## 2. Install Dependencies |
| 50 | + |
| 51 | +Ensure you have Python 3.11 or higher installed and a Pro Edition easySSP Account. |
| 52 | +Create the virtual environment by running |
| 53 | + |
| 54 | +```bash |
| 55 | +python -m venv .venv |
| 56 | +.\.venv\Scripts\activate # or source .venv/bin/activate on macOS |
| 57 | +``` |
| 58 | + |
| 59 | +Then, install all required dependencies using uv: |
| 60 | + |
| 61 | +```bash |
| 62 | +pip install uv |
| 63 | +uv sync |
| 64 | +``` |
| 65 | + |
| 66 | +--- |
| 67 | + |
| 68 | +## 3. Provide your login credentials |
| 69 | + |
| 70 | +In the `demo.py` file, replace `your_easyssp_username` and `your_easyssp_password` with your real easySSP credentials |
| 71 | +to start the demo. |
| 72 | + |
| 73 | +--- |
| 74 | + |
| 75 | +## 4. Run an Example Script |
| 76 | + |
| 77 | +### 📂 Input & Output Directories |
| 78 | + |
| 79 | +This repository uses structured folders to organize data and results: |
| 80 | + |
| 81 | +#### 📥 `input/` |
| 82 | + |
| 83 | +The `input/` directory contains .ssd and .ssp files used for **import**. |
| 84 | +Each script pulls its input data from this folder when submitting a request to the Import/Export API. |
| 85 | + |
| 86 | +--- |
| 87 | + |
| 88 | +#### 📤 `output/` |
| 89 | + |
| 90 | +The `output/` directory is where **exported SSP models** are stored. |
| 91 | +This separation of input and output ensures clarity, reproducibility, and easy cleanup. |
| 92 | + |
| 93 | +--- |
| 94 | + |
| 95 | +#### 🧪 `demo.py` |
| 96 | + |
| 97 | +The `demo.py` script in the `demo` directory acts as a **central demo runner** and contains example requests that show |
| 98 | +how to use the client. |
| 99 | +It's a great starting point if you're exploring the API for the first time or want to see full workflows in action. |
| 100 | +To start the demo, run |
| 101 | + |
| 102 | +```bash |
| 103 | +cd demo |
| 104 | +python -m demo |
| 105 | +``` |
| 106 | + |
| 107 | +## 📚 Related Projects |
| 108 | + |
| 109 | +### 🧠 [**Import/Export Client**](https://github.com/exxcellent/easyssp-import-export-client-python) |
| 110 | + |
| 111 | +The official Python client for interacting with the easySSP Import/Export API. |
| 112 | + |
| 113 | +### 🔐 [**Auth Client**](https://github.com/exxcellent/easyssp-auth-client-python) |
| 114 | + |
| 115 | +Handles authentication by retrieving and storing JWT tokens. |
| 116 | + |
| 117 | +### 🧰 [**Utils**](https://github.com/exxcellent/easyssp-python-clients-util) |
| 118 | + |
| 119 | +A shared utility module used by all Python clients. Includes request handling, exceptions, and other reusable helpers. |
| 120 | + |
| 121 | +--- |
| 122 | + |
| 123 | +## 🤝 Contributing |
| 124 | + |
| 125 | +Spotted a bug or want to add your own scenario? |
| 126 | +Pull requests and issues are welcome! |
| 127 | + |
| 128 | +## 📄 License |
| 129 | + |
| 130 | +This project is licensed under the MIT License. |
0 commit comments