Pythonic: Difference between revisions

206 bytes added ,  26 May 2023
Updating with link to reference API
m (Mtmiller moved page Python interface to Pythonic: rename to the current package name)
(Updating with link to reference API)
 
(5 intermediate revisions by 3 users not shown)
Line 20: Line 20:
== Development ==
== Development ==


Project development is ongoing among a small group of developers. Communication takes place on the Octave maintainers mailing list. The official project repository is at [https://gitlab.com/mtmiller/octave-pythonic https://gitlab.com/mtmiller/octave-pythonic].
Project development is ongoing among a small group of developers. Communication takes place on the Octave maintainers mailing list. The official project repository is at [https://gitlab.com/gnu-octave/octave-pythonic https://gitlab.com/gnu-octave/octave-pythonic].
You can find the complete developer's reference API at [[Pythonic/fullAPI]].


== Documentation ==
== Documentation ==
Line 30: Line 31:
=== Python from Octave ===
=== Python from Octave ===


The conversion of Python's dict is not unique. For that we have decided to load a Python's dict as a structure. This works only when all the keys fo the dict are strings. When the keys are something else there is the option to use `repr` to create the fields of the Octave's struct, e.g.
The conversion of Python's dictionary (dict) is not unique. For that we have decided to load a Python's dict as a structure. This works only when all the keys for the dict are strings. When the keys are something else there is the option to use `repr` to create the fields of the Octave's struct, e.g.


<!-- {{SyntaxHighlight| -->
<!-- {{SyntaxHighlight| -->
Line 175: Line 176:


This project is currently derived from an earlier project called Pytave, which was developed to work in the opposite direction, to allow Python to call Octave functions on an embedded Octave interpreter. The bulk of the project is in the code to convert between Octave and Python data types, so most of that is reusable and serves both purposes. As a side goal, we may continue to maintain the Python wrapper around Octave and incorporate that into Octave as well, so that Octave can provide its own native Python module.
This project is currently derived from an earlier project called Pytave, which was developed to work in the opposite direction, to allow Python to call Octave functions on an embedded Octave interpreter. The bulk of the project is in the code to convert between Octave and Python data types, so most of that is reusable and serves both purposes. As a side goal, we may continue to maintain the Python wrapper around Octave and incorporate that into Octave as well, so that Octave can provide its own native Python module.
== See also ==
* https://gitlab.com/mtmiller/octave-pythonic
[[Category:Development]]
[[Category:Packages]]