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.
Metadata
Release files for pysimio 1.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pysimio-1.10.0.tar.gz | 17.1 kB | Without provenance | Details for pysimio-1.10.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pysimio-1.10.0-py3-none-any.whl | Python 3 | none | any | Details for pysimio-1.10.0-py3-none-any.whl |
Total release size: 34.8 kB
Release files / pysimio-1.10.0.tar.gz
| Download URL | pysimio-1.10.0.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3bcc6cf255e700cb6b7dcb840d88b7a18ee5d4c3d3ce5d67f751038f4351b17
|
|
BLAKE2b-256 checksum How to use checksums |
6a04e26f3654dc35262ff27882ceb5c39ef4647bc739b66a7e03c8933e7e6d90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.14.5 Linux/6.17.0-1018-azure
|
Release files / pysimio-1.10.0-py3-none-any.whl
| Download URL | pysimio-1.10.0-py3-none-any.whl |
|---|---|
| Size | 17.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8a161719c5945000651586e543bd2245fa3f931d7b7a9ae3c87d74062bcd006
|
|
BLAKE2b-256 checksum How to use checksums |
ca7b283dd3f3daea84cc81f92118f6c2f8deb769b6abd5a69a88b684ee0774ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.14.5 Linux/6.17.0-1018-azure
|
Security for pysimio 1.10.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.