Show last authors
1 **Downloading extension**
2
3 * Pypi repository api is not well documented and there's no Java library for connecting it yet
4 * endpoint for getting package info: [[https:~~/~~/wiki.python.org/moin/PyPIJSON>>url:https://wiki.python.org/moin/PyPIJSON]]
5 * endpoint to download packages: [[https:~~/~~/wiki.python.org/moin/PyPISimple>>url:https://wiki.python.org/moin/PyPISimple]]
6 * As point of reference how to integrate with pypi: [[http:~~/~~/mavenjython.sourceforge.net/>>url:http://mavenjython.sourceforge.net/]] that connects Pypi
7
8
9 **Integration **
10
11 * imported packages are meant to be used generally in scripts - not only python but e.g. in groovy as well (the goal is to load the python libraries in the classloader - then use them where you want)
12 * example (since the pygments package is already in classloader - groovy will find it)
13 ##~{~{groovy}}##
14 ##this.getClass().getResource( '/pygments/\_\_init\_\_.py').text##
15 ##~{~{/groovy}}##
16 * as regards .egg files - the way is to tell EM that's it's actually a JAR and the JAR extension handler will register it,
17 * it's already done in simillar way with "Pygments" python library
18 * as regards whl files the way to handle it is to be investigated
19 * package id convention
20 ** python packages don't follow maven like id convention: **groupId:artifactId**
21 ** the suggestion is to take //package name// as **artifactId **and to put some common prefix as **groupId **e.g. ##org.python##

Get Connected