JuliaPy / JuliaPy/PyCall.jl

Speculative: Tools for wrapping Python libraries

Ouverte
#61 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Julia
Étoiles
1.5k
Forks
186
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Is there any interest in expanding the scope of this package to include more tools for conveniently wrapping Python libraries? I'm thinking of functionality like
- Functions for creating Julia types corresponding to Python classes. Perhaps the function could take an example instance of the PyObject, examine its `__dict__` and slots attributes, and heuristically create a Julia type with corresponding fields.
- Macros for creating functions corresponding to methods for a given Pythton class
- A documented and easy-to-use API for users to hook into the PyAny conversion mechanism

I realize that these things can't be done in full generality since fields and methods can be dynamically created in Python at any time and the types of an instance's attributes might change at any time, but many Python packages don't really rely on that functionality.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

This is a speculative proposal rather than a scoped implementation task. Start by reviewing PyCall.jl's existing Python interoperation and PyAny conversion mechanism, then determine whether the proposed Julia types, method macros, and conversion API have an agreed design. Done would require a narrowed proposal with defined scope and acceptance criteria.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
julia, python
Domaine
tooling
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
15/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.