Skip to main content

python imx insights module to get information from imx files

Project description

imxInsights

PyPI - Python Version PyPI version PyPI - Status PyPI - Downloads

GitHub Documentation Status PRs Welcome PyPI - License

Documentation: https://xxxxxx

Source Code: https://github.com/Hazedd/imxInsightsCore

!!! danger "Warning!"

The goal of `imxInsights` is to extract information from imx files. **Please note that modifying, adding, deleting, or altering data is beyond the scope of this module**. `imxInsights` supports imx versions 1.2.4 and 5.0.0 exclusively. 
Our aim is to stay compatible with the latest production versions of the imx model.

!!! abstract

`imxInsights` is designed to parse imx files, which may contain Situations or Projects with an InitialSituation 
and optionally a NewSituation. Each situation includes a repository that houses value objects. A value object represents an item of interest and is equipped with properties and methods to retrieve information. 
The module facilitates the creation of tabular views or spatial GeoJSON, and enables network queries using a networkx graph.

!!! info "Audience"

The intended audience for `imxInsights` consists of end users with basic Python knowledge. Therefore, the module offers a minimalistic API that is thoroughly documented. 
We leverage the remarkable `makedocs` plugins to effortlessly generate a polished website from documentations and markdown files.

Features

  • Value Objects Repository: Every object of interest is stored in a repository, utilizing puic as the default key. If no puic attribute is present, a configurable custom key is employed.
  • RailConnection Geometry: Generated from junctions referenced in the microLink From- and ToNode attributes, ensuring accurate spatial representation.
  • Track Fragments and Demarcation Marker Objects: Equipped with projected geometry for precise visualization and analysis.
  • Area Classifier: Classifies every value object within an imx project area (if has geometry), streamlining organization and analysis.
  • View as DataFrame: Easily convert value objects into a Pandas dataframe, providing a convenient data structure for analysis.
  • View as GeoJSON: Export data in GeoJSON format, preserving spatial information for interoperability and visualization.
  • Referenced Objects Links: Seamlessly access referenced objects as value objects, enhancing data accessibility and integrity.
  • Difference Generator: Enables comparison and discrepancy generation, with options for exporting in Excel and GeoJSON formats, facilitating efficient data validation and analysis.
  • Network Graph: Utilized for retrieving route information and creating geometry, facilitating comprehensive network analysis.

Supported Python Versions

This library is compatible with Python 3.10 and above.

!!! warning 3.9 and below will NOT be supported.

Quick Start

Distribution and installation

imxInsights is distributed on https://pypi.org and can be installed by the following pip command:

pip install imxInsights

import, load file, get repo got insights!

Code samples and snippets

from imxInsight import Imx

imx = Imx(file_path)

init_repo = imx.project.initial_situation
object_of_intrest = init_repo.get_by_puic(puic)

pandas_df = imx.project.new_situation.get_pandas_df("Signal")

For more code samples and snippets in the example section / folder and use the api reference for exploration.

Contributing

Contributions welcome! For more information on the design of the library, see contribution guidelines for this project.

Projects used in this project

make , flake8 , black , mypy , iSort , bumpversion , flit , mkdocs , mkdocs-material , lxml , pyproj , shapely , loguru , pandas , xlsxwriter , ruamel.yaml , networkx , dateparser

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

imxinsights-0.1.0.dev1.tar.gz (61.7 kB view details)

Uploaded Source

Built Distribution

imxinsights-0.1.0.dev1-py3-none-any.whl (76.8 kB view details)

Uploaded Python 3

File details

Details for the file imxinsights-0.1.0.dev1.tar.gz.

File metadata

  • Download URL: imxinsights-0.1.0.dev1.tar.gz
  • Upload date:
  • Size: 61.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for imxinsights-0.1.0.dev1.tar.gz
Algorithm Hash digest
SHA256 d72edca5ecbc4794bb0d7217b1e0d598471497cea68a63df533e1b7b7ccb0898
MD5 c2b44fb26a750e89f6999f8822cf109e
BLAKE2b-256 0cacd823340f02f52282aab3e38c90bdd633f14b44488ae41a1f1c55a38887ac

See more details on using hashes here.

File details

Details for the file imxinsights-0.1.0.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for imxinsights-0.1.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 a679abb2352561fcabcb4f0ce6429a77f5cd44b872b1021fbeed5027af60f00b
MD5 099968e5398e8ae777f815a21f705faf
BLAKE2b-256 345208cf87604c7b6b5dd0cdd7950bb41bdc84a0c0df257bbd8b54b687a8c463

See more details on using hashes here.

Supported by

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