Skip to content

Commit 2e5cfe4

Browse files
Merge pull request #16 from TheEric960/Total-Rework
Merge Total rework
2 parents e1341aa + abda358 commit 2e5cfe4

21 files changed

+612
-73943
lines changed

.github/workflows/python-publish-test.yml

-33
This file was deleted.

.github/workflows/python-publish.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ jobs:
2828
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2929
run: |
3030
python setup.py sdist bdist_wheel
31-
twine upload --repository testpypi dist/*
31+
twine upload dist/*
32+
# twine upload --repository testpypi dist/*

Pipfile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[dev-packages]
7+
8+
[packages]
9+
pywin32 = "*"
10+
11+
[requires]
12+
python_version = "3.7"

Pipfile.lock

+37
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+49-7
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
[![PyPI](https://img.shields.io/pypi/v/pyvba)](https://pypi.org/project/pyvba/)
44
[![GitHub](https://img.shields.io/github/license/TheEric960/pyvba)](https://github.com/TheEric960/pyvba)
55

6-
The pyvba package was designed to gather data from VBA-based applications (e.g. Microsoft Excel, CATIA, etc.). It
7-
may also be used to assist programming VBA macro scripts in a more sensical language.
6+
The pyvba package was designed to gather data from VBA-based applications (e.g. Microsoft Excel, CATIA, etc.). It may also be used to assist programming VBA macro scripts using the Python language.
87

98
## Getting Started
109
Install the Python Package:
@@ -23,10 +22,53 @@ exporter = pyvba.XMLExport(active_document)
2322
exporter.save("output", r"C:\Documents")
2423
```
2524

26-
The current supported output types are XML and JSON formats.
25+
The current supported output types are XML and JSON formats. Both support a form the imitates the VBA object tree as well as a dictionary form where each unique object is in the outermost layer.
26+
27+
Example Output:
28+
> Note: `BrowserObject` denotes an object defined elsewhere in the output.
29+
```JSON
30+
{ "MainBody": [
31+
{ "Pad": [
32+
{ "Shapes": [
33+
{ "DirectionOrientation": 0 },
34+
{ "DirectionType": 0 },
35+
{ "FirstLimit": "BrowserObject" },
36+
{ "IsSymmetric": false },
37+
{ "IsThin": false },
38+
{ "MergeEnd": false },
39+
{ "Name": "Pad.1" },
40+
{ "NeutralFiber": false },
41+
{ "SecondLimit": "BrowserObject" },
42+
{ "Sketch": "BrowserObject" }
43+
]},
44+
{ "Shapes": [
45+
{ "DirectionOrientation": 0 },
46+
{ "DirectionType": 0 },
47+
{ "FirstLimit": "BrowserObject" },
48+
{ "IsSymmetric": false },
49+
{ "IsThin": false },
50+
{ "MergeEnd": false },
51+
{ "Name": "Pad.1" },
52+
{ "NeutralFiber": false },
53+
{ "SecondLimit": "BrowserObject" },
54+
{ "Sketch": "BrowserObject" }
55+
]},
56+
{ "Shapes": [
57+
{ "DirectionOrientation": 0 },
58+
{ "DirectionType": 0 },
59+
{ "FirstLimit": "BrowserObject" },
60+
{ "IsSymmetric": false },
61+
{ "IsThin": false },
62+
{ "MergeEnd": false },
63+
{ "Name": "Pad.3" },
64+
{ "NeutralFiber": false },
65+
{ "SecondLimit": "BrowserObject" },
66+
{ "Sketch": "BrowserObject" }
67+
]}
68+
]}
69+
]}
70+
```
71+
2772

2873
## Developer Notes
29-
This package is still in alpha. Hence, there are still some problematic bugs and issues that cause errors in certain
30-
applications. Contributors are welcome! The project is [hosted on GitHub](https://github.com/TheEric960/pyvba). Report
31-
any issues at [the issue tracker](https://github.com/TheEric960/pyvba/issues), but please check to see if the issue
32-
already exists!
74+
This package is in beta. Therefore, there are still some problematic bugs and issues that cause errors in certain applications. Contributors are welcome! The project is [hosted on GitHub](https://github.com/TheEric960/pyvba). Report any issues at [the issue tracker](https://github.com/TheEric960/pyvba/issues), but please check to see if the issue already exists!

pyvba/__init__.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
2-
from pyvba.browser import *
3-
from pyvba.export import *
4-
from pyvba.viewer import *
1+
from .viewer import Viewer, FunctionViewer, CollectionViewer
2+
from .browser import Browser, CollectionBrowser
3+
from .export import ExportStr, XMLExport, JSONExport

0 commit comments

Comments
 (0)