Giter Site home page Giter Site logo

svetlanam / pycon-csv-to-firebase Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 102 KB

Convert data from CSV and upload them to Firebase Cloud Database

Home Page: https://kompilator.medium.com/pycon-mobiln%C3%A1-aplik%C3%A1cia-e97bcb63b06a

Python 57.09% API Blueprint 42.91%
python data-transformation pycon mobile-app firebase-database import json

pycon-csv-to-firebase's Introduction

Firebase setup for PyCon mobile app

This code is responsible for sending data in correct format to Firebase database which is used as backend for PyCon mobile app.

APIARY DOCUMENTATION

Apiary

Requirements

  1. Python 3.4 || Python 3.5
  2. pip - tool for installing and managing Python packages
  3. virtualenv (not required) - tool to keep the dependencies required by different projects in separate places

Installation

  1. Create virtual environment in your project folder
  2. Install required libraries and packages pip install -r requirements.txt
  3. Create csv folder in your project
  4. Run code: python convert.py
  5. Enter the name of your CSV file (example: "pyconcz_schedule").

Basic config

This config is used for settings in mobile application. Add code to the config file.

{  
  "config":{  
     "pycon_name":"PyCon CZ",
     "pycon_logo":"https://cz.pycon.org/2016/static/img/pyconlogo.svg",
     "pycon_color":"#dedede ",
     "twitter_hashtag":"#pyconcz",
     "pycon_db":"pyconcz2016",
     "active":true
  }
}

Database mapping

For every dictionary key, add value based on the column name in your database. On the left side, there are final keys, on the right side, there are your database columns. Add code to the mapping file. It would be appropriate, If you have all your columns in one exported csv file. Example of the configuration:

{
 "room" : "room",
 "active" : true,
 "avatar" : "avatar",
 "bio" : "More information about you (public)",
 "description" : "Abstract (public)",
 "github" : "",
 "speaker" : "Your full name",
 "date_start" : "time",
 "date_end" : "time_end",
 "title" : "Title",
 "twitter" : "Your Twitter User-name/github account",
 "type" : "What are you proposing?"
}

Event types

You can define these types:

  1. Workshop
  2. Talk
  3. Event (afterparty, lighting talks, lunch, coffee break,...)

ToDo

  1. Import csv files to Amazon S3 Storage
  2. Download csv files from S3
  3. Create django admin interface for managing input/output csv and mapping columns

pycon-csv-to-firebase's People

Contributors

svetlanam avatar svetus avatar dependabot[bot] avatar

Stargazers

Jason avatar

Watchers

James Cloos avatar  avatar Ondra Mařík avatar

Forkers

simobasso

pycon-csv-to-firebase's Issues

Twitter barva navigation baru

Nejsem si ani jistý, jestli jde změnit nějak pokud je to framework a možná se ani nehodí, jen by možná vypadalo lépe se stejnou barvou jako zbytek appky (nebo alespoň černý status bar).

img_0036

Chybová hláška po zamknutí telefonu

img_0035

iOS 10.1.1 (na wifi)

  1. Spustit appku
  2. Zamknout telefon (appka může být i na pozadí, nastaven kód/touch id)
  3. Odemknout telefon a případně otevřít appku

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.