Giter Site home page Giter Site logo

access-db's Introduction

access-db

Analysis tool

##Pre-requisites

Before you run the script on your computer, go through the checklist below and ensure you have the pre-requisites.

  1. python 2.7.7 (python 2.7.7 is the latest release of Python 2 as of June 25, 2014)

For windows, click here to install. Note that to be able to run python commands on the windows command line, you'd have to add the installation directory Python27 to the PATH variable. Check this thread for help.

  1. pyodbc 3.0.7 (pyodbc 3.0.7 is the lastest release as of June 25, 2014)

To connect to Access DB, the script uses this external library. To install, click here. Note that if you're working on a LAM-issued computer, installing the 32-bit version is recommended.

  1. openpyxl 2.0.4 (openpyxl 2.0.4 is the lastest release as of June 25, 2014)

To process Excel 2007 xlsx/xlsm files, the script uses this external library. To install, click here. Caution: the documentation for openpyxl 2.0.4 is still being updated, so don't fret if the code in the tutorial section of the library website doesn't work as it is supposed to (you might need to go to \Python27\lib\site-packages\openpyxl and check the invidual files and figure out the correct syntax on your own).

##Running the Script

Open the command line, and type python main.py.

##Example

> python main.py
1 Software
2 Controls...1
Path...C:\Users\yourUsername\Desktop\GitCode\analysis-tool\PR-Metrics.accdb
Workbook name ('something.xlsx')...test.xlsx
Previous worksheet name ('Sheet1')...13Jun
New worksheet name ('Sheet2')...24Jun

##Additional Comments

  1. The script cannot work without a pre-existing Excel file containing a worksheet with data from your last analysis (keep their names handy -- you'd be asked to enter these).

  2. Make sure you save the Access DB file on your system (and, like above, keep the address handy).

  3. The script works under the assumption that your pre-existing Excel sheet is formatted in a particular way. To ensure correct numbers get copied over, do not change the formatting! Correct placement is given below.

Table Placement
Med/Low B5:E22
High I5:L22
Linedown O11:P13
Safety O15:P17
Grand Total F24:H26

access-db's People

Contributors

stothe2 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.