Skip to main content

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)

Documentation Status PyPI version License: MIT Downloads Ask DeepWiki

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:

  1. Submitting issues and feature requests
  2. Contributing code improvements
  3. 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

opsparser-0.1.2.tar.gz (123.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opsparser-0.1.2-py3-none-any.whl (162.9 kB view details)

Uploaded Python 3

File details

Details for the file opsparser-0.1.2.tar.gz.

File metadata

  • Download URL: opsparser-0.1.2.tar.gz
  • Upload date:
  • Size: 123.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for opsparser-0.1.2.tar.gz
Algorithm Hash digest
SHA256 904f4eba6add43c100f3fb1c967870fcb038c14bb1f1abd18872f9c9a92ddf62
MD5 63d9595a0ef46d783af35c5b92d16821
BLAKE2b-256 89cb69893e95c160f0342960118aa3b0da44e868a7bb1e8510cd53f4f76d51c4

See more details on using hashes here.

File details

Details for the file opsparser-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: opsparser-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 162.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for opsparser-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 365d6453ffd0241f456acfe9cf6e049888f05b8c30bad7942ea00bac3af5026b
MD5 6b3b8fbcc97a452e729a54454a15300a
BLAKE2b-256 dbcfd8cc4576a3c1af6a5ce1e8911d8cf9f1c6cfe3ab80d9428a00ae95aabd76

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page