flexo-sysml
REST/HTTP Platform Specific Model (PSM) for the Systems Modeling API and Services. Implemented by the Flexo MMS SysML v2 Microservice.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.2.0
- Package version: 0.2.0
- Generator version: 7.22.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.10+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import flexo_sysml
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import flexo_sysml
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import flexo_sysml
from flexo_sysml.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:8080
# See configuration.py for a list of all supported configuration parameters.
configuration = flexo_sysml.Configuration(
host = "http://localhost:8080"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization (JWT): bearerAuth
configuration = flexo_sysml.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with flexo_sysml.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = flexo_sysml.SysmlApi(api_client)
project_id = 'project_id_example' # str | ID of the project
branch_id = 'branch_id_example' # str | ID of the branch
try:
# Soft-delete branch by project and ID
api_response = api_instance.delete_branch_by_project_and_id(project_id, branch_id)
print("The response of SysmlApi->delete_branch_by_project_and_id:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling SysmlApi->delete_branch_by_project_and_id: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://localhost:8080
| Class | Method | HTTP request | Description |
|---|---|---|---|
| SysmlApi | delete_branch_by_project_and_id | DELETE /projects/{projectId}/branches/{branchId} | Soft-delete branch by project and ID |
| SysmlApi | delete_project_by_id | DELETE /projects/{projectId} | Soft-delete project by ID |
| SysmlApi | delete_query_by_project_and_id | DELETE /projects/{projectId}/queries/{queryId} | Delete a saved query by ID |
| SysmlApi | delete_tag_by_project_and_id | DELETE /projects/{projectId}/tags/{tagId} | Soft-delete tag by project and ID |
| SysmlApi | diff | GET /projects/{projectId}/commits/{compareCommitId}/diff | Diff between a base commit and a compare commit (stub) |
| SysmlApi | get_branch_by_project_and_id | GET /projects/{projectId}/branches/{branchId} | Get branch by project and ID |
| SysmlApi | get_branches_by_project | GET /projects/{projectId}/branches | Get branches for a project |
| SysmlApi | get_change_by_project_commit_id | GET /projects/{projectId}/commits/{commitId}/changes/{changeId} | Get a specific change (DataVersion) by ID (stub) |
| SysmlApi | get_changes_by_project_commit | GET /projects/{projectId}/commits/{commitId}/changes | Get changes (DataVersions) for a commit (stub) |
| SysmlApi | get_commit_by_project_and_id | GET /projects/{projectId}/commits/{commitId} | Get commit by project and ID |
| SysmlApi | get_commits_by_project | GET /projects/{projectId}/commits | Get commits for a project |
| SysmlApi | get_datatype_by_id | GET /meta/datatypes/{datatypeId} | Get a specific datatype by ID (stub) |
| SysmlApi | get_datatypes | GET /meta/datatypes | Get available datatypes (stub) |
| SysmlApi | get_element_by_project_commit_id | GET /projects/{projectId}/commits/{commitId}/elements/{elementId} | Get a specific element by ID at a commit |
| SysmlApi | get_elements_by_project_commit | GET /projects/{projectId}/commits/{commitId}/elements | Get all elements at a specific commit |
| SysmlApi | get_project_by_id | GET /projects/{projectId} | Get project by ID |
| SysmlApi | get_project_usage_by_project_commit_element | GET /projects/{projectId}/commits/{commitId}/elements/{elementId}/projectUsage | Get ProjectUsage that originate the provided element |
| SysmlApi | get_projects | GET /projects | Get all projects |
| SysmlApi | get_queries_by_project | GET /projects/{projectId}/queries | Get saved queries for a project |
| SysmlApi | get_query_by_project_and_id | GET /projects/{projectId}/queries/{queryId} | Get a saved query by ID |
| SysmlApi | get_query_results_by_project_id_query | GET /projects/{projectId}/query-results | Execute an ad-hoc query via GET with body (stub) |
| SysmlApi | get_query_results_by_project_id_query_id | GET /projects/{projectId}/queries/{queryId}/results | Execute a saved query and return results |
| SysmlApi | get_query_results_by_project_id_query_post | POST /projects/{projectId}/query-results | Execute an ad-hoc query (via POST for client compatibility) |
| SysmlApi | get_relationships_by_project_commit_related_element | GET /projects/{projectId}/commits/{commitId}/elements/{relatedElementId}/relationships | Get relationships for a related element |
| SysmlApi | get_roots_by_project_commit | GET /projects/{projectId}/commits/{commitId}/roots | Get root elements at a specific commit |
| SysmlApi | get_tag_by_project_and_id | GET /projects/{projectId}/tags/{tagId} | Get tag by project and ID |
| SysmlApi | get_tags_by_project | GET /projects/{projectId}/tags | Get tags for a project |
| SysmlApi | merge | POST /projects/{projectId}/branches/{targetBranchId}/merge | Merge source commit(s) into a target branch (stub) |
| SysmlApi | post_branch_by_project | POST /projects/{projectId}/branches | Create a branch for a project |
| SysmlApi | post_commit_by_project | POST /projects/{projectId}/commits | Create a commit for a project |
| SysmlApi | post_project | POST /projects | Create a new project |
| SysmlApi | post_query_by_project | POST /projects/{projectId}/queries | Create a saved query for a project |
| SysmlApi | post_tag_by_project | POST /projects/{projectId}/tags | Create a tag for a project |
| SysmlApi | put_project_by_id | PUT /projects/{projectId} | Update project by ID |
| SysmlApi | put_query_by_project_and_id | PUT /projects/{projectId}/queries/{queryId} | Update a saved query by ID |
Documentation For Models
- Branch
- BranchRequest
- Commit
- CommitRequest
- CompositeConstraint
- Constraint
- DataDifference
- DataIdentity
- DataIdentityRequest
- DataVersion
- DataVersionRequest
- Error
- GetDatatypeById200Response
- GetDatatypes200Response
- Identified
- PrimitiveConstraint
- Project
- ProjectRequest
- ProjectUsage
- Query
- QueryRequest
- Tag
- TagRequest
Documentation For Authorization
Authentication schemes defined for the API:
bearerAuth
- Type: Bearer authentication (JWT)
Author
Metadata
Release files for flexo-sysml 0.2.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 | |
|---|---|---|---|---|
| flexo_sysml-0.2.0.tar.gz | 43.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flexo_sysml-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 115.0 kB
Release files / flexo_sysml-0.2.0.tar.gz
| Download URL | flexo_sysml-0.2.0.tar.gz |
|---|---|
| Size | 43.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92b4b155ce22d0c61384f7d0a71d4dc80d7342c4bc04b1b96fc764310a47587c
|
|
BLAKE2b-256 checksum How to use checksums |
b3c8abb249611cd92d0160cbed55c15e7377954f952cea4c565d82b12ab0c6bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.2
|
Release files / flexo_sysml-0.2.0-py3-none-any.whl
| Download URL | flexo_sysml-0.2.0-py3-none-any.whl |
|---|---|
| Size | 71.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9fa38965d6fd1b2e617a7267aa8a678c8952acbaaf1f04df75d410423d759761
|
|
BLAKE2b-256 checksum How to use checksums |
0f12be838ca4348c2f80a48861e824387add1841ea25b213bfaad7a736ace83a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.2
|
Security for flexo-sysml 0.2.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.