LogoLogo
Modified Version by KVOriginal Source CodeContact
KV.2019-12-01
KV.2019-12-01
  • Overviews
  • Contact
  • User Guides
    • Chemical Inventory
      • Database
        • Database Backup and Restore
        • Best Practice for SQL Users Backup
      • Chemicals
        • Search Chemicals
        • Add a single chemical
        • Import a list of chemicals
        • Edit Chemicals
        • Borrow and Return Chemicals
        • Delete a chemical container
        • Delete multiple chemical containers
      • Users
      • Storages/Locations
      • Terminal Mode
        • Set Up a Terminal User
        • Borrow and Return Chemicals
        • Change Chemical Location
        • Get Information on a Chemical
        • Dispose of Chemicals
      • TODO
    • Electronic Lab Notebook
  • Installation
    • Raspbian on Raspberry pi 3B
    • CentOS 7
    • Mac OSX
    • Windows
  • Advanced Settings
    • OE Settings
    • Hosting Server Related
    • Resources for Setting Up New Server
    • Other Supporting Programs for OE
      • Find Missing SDS
      • Find Missing Structure
    • Docker Build
  • Change Logs
    • Versions
Powered by GitBook
On this page
  • DETAILS
  • REQUIREMENTS
  • USAGE
  • VERSIONS
  • Version 5:
  • Version 4:
  • Version 3:
  • Version 2:

Was this helpful?

Export as PDF
  1. Advanced Settings
  2. Other Supporting Programs for OE

Find Missing SDS

PreviousOther Supporting Programs for OENextFind Missing Structure

Last updated 5 years ago

Was this helpful?

This program is designed specifically for Open Enventory to fix issue with molecule missing sds (could not be extracted through "Read data from supplier") This programs does:

DETAILS

This programs does:

1. Connect into mysql database and find molecule in 'molecule' table of specific database and find those molecule with missing sds

2. Try to download sds files into a folder in /var/lib/mysql/missing_sds

3. Update those sql entries with new downloaded sds files

REQUIREMENTS

  • root access to the server hosting Open Enventory

  • Python 3+

  • This file is made for Linux environment, you should be able

    to used it on other OS with changing the location of the "download_path"

USAGE

After cloning this repo onto the Open Enventory server:

  1. Change into directory of the new file:

    cd find_missing_sds-public
  2. (Optional): create virtual environment for python to install dependency:

    # you can change "find_missing_sds_venv" to another name too
    python3 -m venv find_missing_sds_venv   # Create virtual environment
    source find_missing_sds_venv/bin/activate    # Activate the virtual environment
  3. Install python dependencies:

    pip install -r requirements.txt
  4. Run the program:

    # Replace "find_missing_sds_v5" with latest version if neccessary
    python3 find_missing_sds_v5/find_missing_sds.py
    • Answer questions for:

      • confirming running under root

      • mySQL root password (typing password will not be shown on screen)

      • the name of the database you want to update (twice to confirm)

VERSIONS

Version 5:

  • Incorporated result from Fluorochem

  • Fixing bug with existing default_safety_sheet_url and default_safety_sheet_mime

    by setting them to NULL

Version 4:

  • Testing using cheminfo.org/webservices by extracting catalog number from fluorochem

Version 3:

  • Refactor extracting url download into its own method

  • Add extracting url download from chemicalsafety.com

Version 2:

  • Add asking if user is root and password

  • Add asking what database to be modified

  • has limited requests

Switch to extracting data from because Chemexper

https://www.fishersci.com
LogoGitHub - khoivan88/oe_find_sds-public: for Open Enventory, this script is used to find missing SDS for molecule in your existing Open Enventory databaseGitHub