Generate public API layer
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Tranquilla
- Stack tecnologico
- python
- Ambito
- api, developer-experience
Direzione di ricerca
Inizia esaminando la macchina di generazione realizzata per #30 e le interfacce esposte tramite wit_world.imports. Valuta quanto siano ergonomiche le interfacce generate da componentize-py-generated come API pubblica diretta, incluso se abbiano bisogno di un wrapper che preservi la compatibilità. Il lavoro è completato quando si è raggiunta e documentata una decisione sulla struttura dei moduli pubblici e sull'approccio alla generazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Strawman:
Generate a top-level module within fastly_compute for each of the interfaces in wit_world.imports. Import the whole contents of the latter in the former, and the former becomes our public API.
If we want to expose the componentize-py-generated stuff directly to the public, we can. If we change our minds in a backward-compatible way, we can replace an item in, say, fastly_compute.acl with a nicer one of the same name, hiding the wit_world one behind it. Even class comparisons using isinstance() should continue to work, since all the customer ever got ahold of as a comparand was the public import path.
The machinery made for #30 can handle the generation fairly easily.
But: how ergonomic is the straight wit_world stuff? Are we going to want to paper over all of it anyway? I have not yet looked it over with that in mind.
- Lingua principale
- Python
- Stelle
- 5
- Fork
- 1
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di fastly/compute-sdk-python
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
fastly/compute-sdk-python#116 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
fastly/compute-sdk-python#98 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
fastly/compute-sdk-python#74 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
fastly/compute-sdk-python#61 ·
-
fastly/compute-sdk-python#60 · 1 assegnatario ·
Tutte le issue di fastly/compute-sdk-python
Issue simili
-
essnmx good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
-
[Feature] 奇物选择添加优先级 Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
syfoud/Simulated_Scepter#174 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Giskard-AI/giskard-oss#2840 · 1 commento ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Apertaarea: repo bug perceived difficulty: 2
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
yeti-platform/yeti#1380 ·