You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DataBasic is a suite of web-based data literacy tools and accompanying hands-on activities for journalists, data
journalism classrooms and community advocacy groups.
The suite includes:
WTFcsv: A web application that takes as input a CSV file and returns a summary of the fields, their data type, their range, and basic descriptive statistics. This is a prettier version of R’s “summary” command and aids at the outset of the data analysis process.
WordCounter: A basic word counting tool that takes unstructured text as input and returns word frequency, bigrams (two-word phrases) and trigrams (three-word phrases)
SameDiff: A tool that compares two text files to show words in common, and words that make each unique.
ConnectTheDots: A network analysis tool that takes an edgelist and turns it into a graph/table of nodes.
Installation
DataBasic is a Python 3.x Flask app. Make sure you have mongodb installed.
1. Clone this repository and cd into it.
git clone https://github.com/rahulbot/DataBasic.git
cd DataBasic
2. Copy config/development.py.template to config/development.py and enter your settings.
3. Create a venv and install the requirements:
pip install -r requirements.txt
4.
To develop on OSX, like we do, you might need to do this:
Run the above bash command for each language you want the app to support (such as "es", "de", "hu"). This will create
a translations directory and a PO file for that language.
Updating
$ bash translations-update.sh
This command extracts all items for translation from the app. Each time you add a new bit of text you need to run this
command. Then translate the .po file. If any translations in the .po are marked fuzzy, check them to for accuracy and
then remove 'fuzzy.'
This command compiles the translations from the .po files into binary form. You need to run this every time you
update a .po file. Then restart the app.
Seeking Databasic Translators
Want to see Databasic in another language? We would love your help in making that happen. Languages of interest
include French and Arabic.
About
A suite of focused and simple tools and activities for journalists, data journalism classrooms and community advocacy groups