Comments (6)
from micropython-stubber.
@BradenM ,
I have implemented the above change in the json format starting with version 1.2.0
i think that should improve the parsing as formally a json array is un-ordered so skipping the first 2 nodes was a bit of a hack.
Could you take a look at commit cb0779b and let me know if that works for you ?
/jos
from micropython-stubber.
I've merged the schema to main.
i agree that all the different firmware options make it hard to find the capabilities of the language , and of the included optional modules; especially as these modules also can/are sometimes changed for the specific firmware.
from micropython-stubber.
Looks good to me. Definitely agree with getting rid of the array, and the firmware specs should be considerably more uniform and easier to parse now.
I am not and won't be home where I can test this out on some more devices/firmware for the rest of this week, but I will definitely give it a more detailed look when I get back.
from micropython-stubber.
Was finally able to check this out properly. Definitely a lot more useful, but I am still struggling with the issue of being able to determine exactly what branch of micropython a device is using.
I am trying to avoid hard coding it, as according to awesome-micropython, there are over 2000 of 'em. So far I haven't been able to come up with anything better than cross-referencing the version number against the tags/ports from a list of micropython git repos (See this and its output). Not exactly a perfect approach.
For micropy-cli
, the benefit of knowing the exact firmware would make it pretty easy to determine which (firmware) frozen modules to retrieve and source in a project. I may just be over complicating this haha, but do you happen to have any ideas? Thanks.
from micropython-stubber.
For now this schema works great, I have gone ahead and integrated it into micropy-cli
. I have pushed tackling firmware resolution to a later date, so when you have the time do you mind removing the stubber.modules
debug line and merging into master?
Thanks for your help!
from micropython-stubber.
Related Issues (20)
- SoftI2C is asking for an id parameter and it should not HOT 12
- Generating lvgl stubs using documentation HOT 8
- Update micopython-lib matching for v1.12.0 or newer
- Update handling of u-modules in 1.20.1 and up HOT 2
- Check/Update latest stubs version numbering
- Fix bare const using __builtins__.py - pyright/pylance HOT 2
- Document how to generate stubs for a branch or fork of MicroPython? HOT 12
- Try rich-click for nicer UX
- improve typing for 'underdocumented' `__init__` methods
- from _typeshed import Incomplete
- fix class SoftSPI(SPI) error as SPI defined later ( reorder / different syntax) HOT 1
- Merge docstring for Literals from the documentation into the stub files
- Consider the "Any trick"
- stubber build: Incorrect package versions When specifying multiple versions to be build at the same time
- BTLE low-level constants defined as 'Incomplete' HOT 6
- Should constant values be included in stub files
- Find simple way to add more documentation by the community
- update src/stubber/tools/manifestfile.py from Micropython repo
- Add disk backed cache - and find/fix other startup delays.
- docstubs to use ...
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micropython-stubber.