Skip to content

Possible library refactor #55

@yeyeto2788

Description

@yeyeto2788

Hey @ladyada, @makermelissa,

I have done a little refactor on the library so when it becomes bigger detecting more boards we don't have 10k lines modules within the library.

I have made the changes here https://github.com/yeyeto2788/Adafruit_Python_PlatformDetect/tree/module_refactor, if you wish I can make a PR with this changes.

It still works as before to save retro-compatibility issue in case there is any:

import adafruit_platformdetect
detector = adafruit_platformdetect.Detector()
detector.board.id
'GENERIC_LINUX_PC'
detector.chip.id
'GENERIC_X86'
detector.board.any_embedded_linux
False

Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions