A lightweight, pure Python implementation of an OpenSeesPy command monitoring tool for capturing, recording, and analyzing OpenSees command execution processes. No third-party dependencies, compatible with all OpenSeesPy versions, with no impact on original performance. Provides flexible API interfaces, supporting custom data processing and event triggering mechanisms.
Project description
OpenSeesParser (OpsParser)
OpenSeesParser (OpsParser) is a practical utility library designed for OpenSeesPy users, providing a series of convenient functions and tools to help users build and analyze structural models more efficiently.
Features
- Simplifies the creation and management of OpenSeesPy models
Installation
pip install opsparser
Quick Start
import openseespy.opensees as old_ops
from opsparser import OpenSeesParser
# first hook all commands before your opensees code
parser = OpenSeesParser(old_ops)
parser.hook_all(debug = False) # Set debug = True to show parsing process
ops = parser.enhance() # enhanced ops module with IDE hints
# your OpenSeesPy Code
# ...
# get your model's info
from opsparser import OpenSeesCommand as Command
# Node
Node = Command.NODE.instance
node_dict = Node.nodes # node info
# Materials
Material = Command.MATERIAL.instance
material_dict = Material.materials # material info
# Elements
Element = Command.ELEMENT.instance
Element_dict = Element.Elements # Elements info
# and many convient tools
# like you can use newtag property for Node, Element, Material to get a unused tag
Node.newtag
Element.newtag
Material.newtag
# maybe 5 more continuous tags? Using `get_new_tags(start = 1)`
Node.get_new_tags(5)
Examples
Check out the examples documentation for more usage examples, including modeling and analysis of bridges, frames, and other structures.
Documentation
Complete documentation is available at OpsParser Documentation, including:
Contributing
Contributions to the OpsParser project are welcome! Please participate through:
- Submitting issues and feature requests
- Contributing code improvements
- Sharing your experiences and examples using OpsParser
License
OpsParser is released under the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file opsparser-0.1.3.tar.gz.
File metadata
- Download URL: opsparser-0.1.3.tar.gz
- Upload date:
- Size: 126.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0680ff8da50087e6f75d5f7c552c978b02837d0f0402f89c4b6241cc987bdfd0
|
|
| MD5 |
1479b985ecd176253d1d4f42ecaecce7
|
|
| BLAKE2b-256 |
8f1e1f96e48fb38a1153db71e6fe0b9793f06c8c877321b7e6d65d6a16fb5792
|
File details
Details for the file opsparser-0.1.3-py3-none-any.whl.
File metadata
- Download URL: opsparser-0.1.3-py3-none-any.whl
- Upload date:
- Size: 164.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2085a44684178c65fceaf6c8d967ea9fed0f40a4bc818ef1fa3c7cd73ece829
|
|
| MD5 |
cfc561321c61afb3a163a65d6796ad71
|
|
| BLAKE2b-256 |
9dda170f09fc2c67caa95696b4ed5d575e84188e41365879411fd15a312aa0c4
|