Mbed LS
mbed_lstools.platform_database Namespace Reference

Classes

class  PlatformDatabase
 

Functions

 _get_modified_time (path)
 
 _older_than_me (path)
 
 _modify_data_format (data, verbose_data, simple_data_key='platform_name')
 
 _overwrite_or_open (db)
 

Variables

 unicode = str
 
 logger = logging.getLogger("mbedls.platform_database")
 
 LOCAL_PLATFORM_DATABASE = join(user_data_dir("mbedls"), "platforms.json")
 
 LOCAL_MOCKS_DATABASE = join(user_data_dir("mbedls"), "mock.json")
 
dict DEFAULT_PLATFORM_DB
 

Detailed Description

mbed SDK
Copyright (c) 2017 ARM Limited

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Function Documentation

◆ _get_modified_time()

mbed_lstools.platform_database._get_modified_time (   path)
protected

Definition at line 345 of file platform_database.py.

◆ _modify_data_format()

mbed_lstools.platform_database._modify_data_format (   data,
  verbose_data,
  simple_data_key = 'platform_name' 
)
protected

Definition at line 357 of file platform_database.py.

◆ _older_than_me()

mbed_lstools.platform_database._older_than_me (   path)
protected

Definition at line 353 of file platform_database.py.

◆ _overwrite_or_open()

mbed_lstools.platform_database._overwrite_or_open (   db)
protected

Definition at line 372 of file platform_database.py.

Variable Documentation

◆ DEFAULT_PLATFORM_DB

dict mbed_lstools.platform_database.DEFAULT_PLATFORM_DB

Definition at line 45 of file platform_database.py.

◆ LOCAL_MOCKS_DATABASE

mbed_lstools.platform_database.LOCAL_MOCKS_DATABASE = join(user_data_dir("mbedls"), "mock.json")

Definition at line 43 of file platform_database.py.

◆ LOCAL_PLATFORM_DATABASE

mbed_lstools.platform_database.LOCAL_PLATFORM_DATABASE = join(user_data_dir("mbedls"), "platforms.json")

Definition at line 42 of file platform_database.py.

◆ logger

mbed_lstools.platform_database.logger = logging.getLogger("mbedls.platform_database")

Definition at line 38 of file platform_database.py.

◆ unicode

mbed_lstools.platform_database.unicode = str

Definition at line 34 of file platform_database.py.