W-python
WSO2 Python generation utilties
Installation
Clone the github project and symlink the run.sh
Features
- Generate ESB endpoint artifacts
- Generate ESB proxy artifacts
- Generate CAR pom for ESB project
- Generate the artifact.xml for synapse-project
Usage
Use ArtifactGenerator
to generate the artifacts needed.
generator = wpy.ArtifactGenerator()
data = {
'name' : "id",
'type' : "http",
'http' : True,
'http_props': {
'uri': "/.id",
'method': "HEAD GET"
}
}
artifact = generator.generateEndpoint(data)
Use Generator to save the artifacts. The artifacts will be stored in configs folder.
artifact.setName(data["name"])
artifact.setType("ENDPOINT")
generator.hold(artifact)
generator.saveList("configs")
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
WTFPL