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.
Metadata
Release files for opsparser 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| opsparser-0.1.3.tar.gz | 126.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| opsparser-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 291.2 kB
Release files / opsparser-0.1.3.tar.gz
| Download URL | opsparser-0.1.3.tar.gz |
|---|---|
| Size | 126.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0680ff8da50087e6f75d5f7c552c978b02837d0f0402f89c4b6241cc987bdfd0
|
|
BLAKE2b-256 checksum How to use checksums |
8f1e1f96e48fb38a1153db71e6fe0b9793f06c8c877321b7e6d65d6a16fb5792
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.5
|
Release files / opsparser-0.1.3-py3-none-any.whl
| Download URL | opsparser-0.1.3-py3-none-any.whl |
|---|---|
| Size | 164.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2085a44684178c65fceaf6c8d967ea9fed0f40a4bc818ef1fa3c7cd73ece829
|
|
BLAKE2b-256 checksum How to use checksums |
9dda170f09fc2c67caa95696b4ed5d575e84188e41365879411fd15a312aa0c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.5
|