取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
Sqlite3 to JMP Data table through Python Integration

The attached JSL uses JMP's Python integration to create a sqlite3 database file by recursively descending a directory of files.  The directory is chosen using JSL's Pick Directory().  The path is passed through to the Python environment.

Screen Shot 2021-03-09 at 4.13.35 PM.png

 

A MD5 checksum is computed for each file and that along with the path is inserted into the sqlite3 database, then the sqlite3 table is imported into JMP as a Data Table.

 

Screen Shot 2021-03-09 at 4.14.29 PM.pngRe-running the script just appends another directory's worth of information into the database.  Also demonstrated is an example of fully specifying dll and sys.path in the Python Init(). 

评论
Paul_Nelson

This sample has been updated as a Python script in JMP 18.0's SAMPLE_SCRIPTS/Python/ directory as pyDigest.py.  It provides the same functionality as this JSL script but implemented to take advantage of the JMP 18 Python integration capabilities.  Including creating a data table in Python and populating the columns from the SQL query's result set in Python.

推荐文章