Interactive reader for PowerDesigner PDM files
Project description
PDM reader
Interactive reader for PowerDesigner PDM files.
Features:
- View/search tables
- Vew table definition
- Generate DDL for various databases (currently MySQL and Oracle supported)
- Generate Java entity definition
- Support command history
Requirement
- Python 3.7+
This tool only makes use of Python standard libraries.
Installation
# root or administrator permission may be required
pip install pdmreader
If you want to try some unreleased features, or customize the tool yourself, clone the repository and install it in development mode:
git clone https://github.com/bianjp/pdmreader.git
cd pdmreader
# root or administrator permission may be required
python setup.py development
Usage
pdmreader PATH_TO_PDM_FILE
This will start an interactive "shell" which you can type commands.
Type help
to show available commands.
Currently supported commands:
COMMAND DESCRIPTION
--------------------------------------------------------------------------------
help Print help
t Toggle horizontal/vertical output. Default horizontal
tables Show tables
tables PATTERN Show tables matching the given shell-style glob
seq Show sequences
seq PATTERN Show sequences matching the given shell-style glob
table TABLE Show definitions of the given table
mysql TABLE Generate MySQL DDL for creating the given table
oracle TABLE Generate Oracle DDL for creating the given table
java TABLE Generate Java entity definition for the given table
exit, Ctrl + D Exit
License
This project is licensed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pdmreader-0.1.tar.gz
(11.3 kB
view details)
Built Distribution
pdmreader-0.1-py3-none-any.whl
(13.1 kB
view details)
File details
Details for the file pdmreader-0.1.tar.gz
.
File metadata
- Download URL: pdmreader-0.1.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c7d436e0ac4add38b6d5451049c83e4f4265029aa7e547cc840eae345570211 |
|
MD5 | dc3e9f4bbf02b070f818c1c8d630f64b |
|
BLAKE2b-256 | 508f9cb978fff58ce10ef469fc01f715267ebb89710ba2a51efcdf4f81617db6 |
File details
Details for the file pdmreader-0.1-py3-none-any.whl
.
File metadata
- Download URL: pdmreader-0.1-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0191adfb214039bd4223cd49cb32e000bf7cac5b11bc19ed676f6f7b37b8885d |
|
MD5 | 14ad0b72f91b423fbb715960d4cd9d38 |
|
BLAKE2b-256 | 4b3bcb960ff805fa65d0ff932cadda6de1122bd57aad466e6d8e9c25e8ff36c1 |