Created
June 13, 2023 15:32
-
-
Save neerajadsul/6f88eccc3118d25dca4d99a86686d685 to your computer and use it in GitHub Desktop.
Find differences between packages in CircuitPython's Different Versions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://circuitpython.org/board/raspberry_pi_pico/ | |
# CircuitPython 7.3.3 packages: | |
cp7 = "_bleio, adafruit_bus_device, adafruit_pixelbuf, aesio, alarm, analogio, atexit, audiobusio, audiocore, audiomixer, audiomp3, audiopwmio, binascii, bitbangio, bitmaptools, bitops, board, busio, countio, digitalio, displayio, errno, floppyio, fontio, framebufferio, getpass, gifio, imagecapture, json, keypad, math, microcontroller, msgpack, neopixel_write, nvm, onewireio, os, paralleldisplay, pulseio, pwmio, qrio, rainbowio, random, re, rgbmatrix, rotaryio, rtc, sdcardio, sharpdisplay, storage, struct, supervisor, synthio, terminalio, time, touchio, traceback, ulab, usb_cdc, usb_hid, usb_midi, vectorio, watchdog, zlib" | |
# CircuitPython 8.0.0-beta.6 packages: | |
cp8 = "_asyncio, _bleio, _pixelmap, adafruit_bus_device, adafruit_pixelbuf, aesio, alarm, analogbufio, analogio, array, atexit, audiobusio, audiocore, audiomixer, audiomp3, audiopwmio, binascii, bitbangio, bitmaptools, bitops, board, builtins, busio, collections, countio, digitalio, displayio, errno, floppyio, fontio, framebufferio, getpass, i2ctarget, imagecapture, json, keypad, math, microcontroller, msgpack, neopixel_write, nvm, onewireio, os, paralleldisplay, pulseio, pwmio, qrio, rainbowio, random, re, rgbmatrix, rotaryio, rtc, sdcardio, select, sharpdisplay, storage, struct, supervisor, synthio, sys, terminalio, time, touchio, traceback, ulab, usb_cdc, usb_hid, usb_midi, vectorio, watchdog, zlib" | |
```Python | |
cp7 = set(map(lambda s: s.strip(), cp7.split(','))) | |
cp8 = set(map(lambda s: s.strip(), cp8.split(','))) | |
common = cp7.intersection(cp8) | |
in_cp7_notin_cp8 = cp7 - cp8 | |
in_cp8_notin_cp7 = cp8 - cp7 | |
print(f'Number of Common Built-in Modules:{len(common)}') | |
print(f'in_cp7_notin_cp8: {in_cp7_notin_cp8}') | |
print(f'in_cp8_notin_cp7: {in_cp8_notin_cp7}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment