No project description provided
Project description
pysimio
Description
pySimio is the official Python Library wrapper for the Simio Portal REST API.
Installation
pip install pysimio
Usage
import pysimio
# Example usage
```python
from pysimio import pySimio, SimioModel
import os
simio_portal_url = "https://simio.portal"
personal_access_token = os.getenv("PERSONAL_ACCESS_TOKEN")
api = pySimio(simio_portal_url)
api.authenticate(personalAccessToken=personal_access_token)
models = api.getModels()
if isinstance(models, list) and models:
first: SimioModel = models[0]
print(first.id, first.name)
Available Methods
Additional documentation and usage examples are coming soon.
- status: Return the current heartbeat status from the Simio Portal instance. Returns
bool. - reauthenticate: Reauthenticate to the API using the PAT provided during authentication. Returns
bool | None. - authenticate: Authenticate to the API using a PAT or SAML Assertion.
- getModels: Return models, optionally filtered by project, ownership, and published state. Returns
list[SimioModel]. - getModel: Return a single model by model id. Returns
SimioModel. - getModelTable: Return model table schema metadata. Returns
list[SimioTableSchema]. - getExperiments: Return all current Simio Portal experiments for a model. Returns
list[SimioExperiment]. - getExperiment: Return a specific experiment by id. Returns
SimioExperiment. - publishPlan: Publish a specific Simio Plan within Simio Portal. Returns
bool. - uploadAndPublishPlan: Upload a Simio Model, and publish the plan within Simio Portal. Returns
str. - getRuns: Return runs with optional filters (experiment id, name, model id). Returns
list[ExperimentRuns]. - getRun: Returns a specific Simio Portal run. Returns
ExperimentRuns. - getRunProgress: Return stage and progress details for a run. Returns
ExperimentRunProgress. - deleteRun: Delete a specific Simio Run within Simio Portal. Returns
bool. - cancelRun: Cancel a specific Simio Run within Simio Portal. Returns
bool. - setRunTimeOptions: Set the Time Options on a specific Simio Portal Run. Returns
bool. - cancelPlan: Cancel a specific Simio Plan within Simio Portal. Returns
bool. - createRun: Creates a new Simio Run within Simio Portal. Returns
int. - startRun: Create and start a new Simio Experiment run within Simio Portal. To update control parameters, you would add them to the "scenarios" section in the JSON and run it again. Returns
int. - createRunFromExisting: Create a new instances of a Simio Run within Simio Portal from an existing Simio Run. Returns
int. - startRunFromExisting: Start a new run of a Simio Run from an existing Simio Run. Returns
int. - getExport: Return export status of a Simio Export from Simio Portal. Returns
ExperimentRunScenarioImportExportStatus. - getImport: Return import status of a Simio Import from Simio Portal. Returns
ExperimentRunScenarioImportExportStatus. - getTableData: Return table rows for a run scenario table, with optional paging, filter, and columns. Returns
list[TableRowData]. - deleteModel: Delete a Simio Model from Simio Portal. Returns
bool. - deleteProject: Delete a Simio Project from Simio Portal. Returns
bool. - uploadProject: Upload a new Simio Project file to Simio Portal. Returns
str. - getProjects: Return list of existing Simio Projects from Simio Portal. Returns
list[Project]. - getProject: Return a specific Simio Project from Simio Portal. Returns
Project. - setControlValues: Update Control Values. Returns
bool. - setScenarioName: Update Scenario Name in a Simio Run within Simio Portal. Returns
bool. - modifyDataConnectorConfiguration: Update connector configuration state for a run. Returns
bool. - getScenarios: Return Simio Portal Scenario from a specified run. Returns
list[ExperimentRunScenarioResponseDataComputedResults]. - getScenariosLogSchemas: Return available scenario log schemas. Returns
list[LogSchemaDetails]. - getScenariosResourceUsageLogData: Return resource usage log rows. Returns
list[ResourceUsageRecord]. - getScenariosResourceStateLogData: Return resource state log rows. Returns
list[ResourceStateRecord]. - getScenariosResourceCapacityLogData: Return resource capacity log rows. Returns
list[ResourceCapacityRecord]. - getScenariosTransporterUsageLogData: Return transporter usage log rows. Returns
list[TransporterUsageRecord]. - getScenariosConstraintLogData: Return constraint log rows. Returns
list[ConstraintRecord]. - getScenariosMaterialUsageLogData: Return material usage log rows. Returns
list[MaterialUsageRecord]. - getScenariosInventoryReviewLogData: Return inventory review log rows. Returns
list[InventoryReviewRecord]. - getScenariosStateObservationLogData: Return state observation log rows. Returns
list[StateObservationRecord]. - getScenariosTallyObservationLogData: Return tally observation log rows. Returns
list[TallyObservationRecord]. - getScenariosTaskLogData: Return task log rows. Returns
list[TaskRecord]. - getScenariosTaskStateLogData: Return task state log rows. Returns
list[TaskStateRecord]. - getScenariosResourceInformationLogData: Return resource information log rows. Returns
list[ResourceInfoRecord]. - getScenariosPeriodicOutputStatisticLogData: Return periodic output statistic rows. Returns
list[PeriodicOutputStatisticRecord]. - getScenariosPeriodicStateStatisticLogData: Return periodic state statistic rows. Returns
list[PeriodicStateStatisticRecord]. - getScenariosPeriodicTallyStatisticLogData: Return periodic tally statistic rows. Returns
list[PeriodicTallyStatisticRecord]. - getTotalRunsInProgress: Return aggregate counts of plans and experiment runs that are pending/running. Returns
list[RunsInProgressStatistics].
Classes
@dataclass
class TimeOptions:
runId: int
endTimeRunValue: int | None = None
specificStartingTime: str | None = None
startTimeSelection: str | None = None
specificEndingTime: str | None = None
endTimeSelection: str | None = None
isSpecificStartTime: bool | None = None
isSpecificEndTime: bool | None = None
isInfinite: bool | None = None
isRunLength: bool | None = None
class SimioExperiment(BaseModel):
model_config = ConfigDict(extra="ignore")
id: int
name: str | None = None
modelId: int | None = None
modelName: str | None = None
projectName: str | None = None
hasExperimentRuns: bool | None = None
hasPlanRuns: bool | None = None
class SimioModel(BaseModel):
model_config = ConfigDict(extra="ignore")
id: int
name: str | None = None
projectId: int | None = None
projectName: str | None = None
projectOwner: str | None = None
projectUploadDateTime: str | None = None
projectSavedDate: str | None = None
projectSavedInVersion: str | None = None
License
This project is licensed under the Apache License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysimio-1.10.0.tar.gz
(17.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pysimio-1.10.0-py3-none-any.whl
(17.7 kB
view details)
File details
Details for the file pysimio-1.10.0.tar.gz.
File metadata
- Download URL: pysimio-1.10.0.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.14.5 Linux/6.17.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3bcc6cf255e700cb6b7dcb840d88b7a18ee5d4c3d3ce5d67f751038f4351b17
|
|
| MD5 |
0e6bf7f8c1c71a826e2646c01e1f895e
|
|
| BLAKE2b-256 |
6a04e26f3654dc35262ff27882ceb5c39ef4647bc739b66a7e03c8933e7e6d90
|
File details
Details for the file pysimio-1.10.0-py3-none-any.whl.
File metadata
- Download URL: pysimio-1.10.0-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.14.5 Linux/6.17.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8a161719c5945000651586e543bd2245fa3f931d7b7a9ae3c87d74062bcd006
|
|
| MD5 |
e55ab42585a16e237af85efd628246e9
|
|
| BLAKE2b-256 |
ca7b283dd3f3daea84cc81f92118f6c2f8deb769b6abd5a69a88b684ee0774ca
|