Giter VIP home page Giter VIP logo

reports's Introduction

reports

Parse tab deliminated reports and enter them into a database.

Install

  1. clone this repo git clone https://github.com/kellel/reports
  2. cd reports
  3. python-pip is required
  • apt-get install python-pip
  • yum install python-pip
  1. python setup.py install

Running

report-daemon

The most basic usage requires nothing more than running the daemon as is

report-daemon

A better way to run the daemon would be to use something like supervisord

If you really must run the daemon from the command line maybe

report-daemon -f CONFIGFILE 2>&1 > /var/log/report-daemon.log &

usage: report-daemon [-h] [-f FILE]

Run the report parser daemon

optional arguments:
  -h, --help              show this help message and exit
  -f FILE, --config FILE  Provide a config file

report-cli

usage: report-cli [-h] {create,status} ...

cli for sending jobs to the report parser from the command line

positional arguments:
  {create,status}  sub-command help
    create         Create a job
    status         View the status the job queue

optional arguments:
  -h, --help       show this help message and exit

Configuration

####                                                                              
#### REPORT DAEMON DEFAULT CONFIGURATION
####
 
# Database uri for more information lookup sqlalchemy database uri
SQLALCHEMY_URI="sqlite:///report.db"
#SQLALCHEMY_URI="mysql://user:pass@hostname:port/dbname"
#SQLALCHEMY_URI="postgresql+psycopg2://user:pass@hostname:port/dbname"

# Change the log level of the daemon (debug, info, warning, error, critical)
LOG_LEVEL="info"
 
# enable database logging. This will print out every db transaction that occurs
DB_LOGGING=False
 
# Configure the redis connection credentials
REDIS_HOST="127.0.0.1"
REDIS_PORT=6379
REDIS_PASSWORD=""
 
REPORT_TABLE_NAME = "reports"
KEYWORD_BID_REPORT_TABLE_NAME = "keyword-bid-report"
AUTO_KEYWORD_REPORT_TABLE_NAME= "auto-keyword-report"
CAMPAIGN_PERFORMANCE_REPORT_TABLE_NAME = "campaign-performance-report"
DAILY_SKU_PERFORMANCE_REPORT_TABLE_NAME = "daily-sku-performance-report"

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.