Tag Archives: Flask

Weird thing to understand from mongoengine in Flask

Inital mongo collection I am creation a mongo dument in Flask using MongoEngine Object mapper.Simple, consider the collection name is TestMe and it has two fields (name, address). The name of the document is nava. from mongoengine import Document, connect, StringField connect(‘nava’) class TestMe(Document): name = StringField(required=True) address = StringField(required=True) Adding a new row I […]


Python helpers for building dashboards using Flask and React

via stitchfix/pyxley · GitHub.

The Pyxley python library makes use of the pyxleyJS React components to create Flask-based web applications. Through the use of the PyReact library, we can use Jinja templating to construct and transform a single React component. The specific UI components are passed as props to the parent component. A simpler interface is provide through the use of specific wrappers for each of the component types.

Building a search-as-you-type feature with Elasticsearch, AngularJS and Flask (Part 2: front-end)

This article is the second part of a tutorial which describes how to build a search-as-you-type feature based on Elasticsearch, Python/Flask and AngularJS. The first part has discussed how to set-up Elasticsearch and a microservice in Python/Flask, i.e. the back-end part of the system. It also provided an overall view on the architecture. In this […]


Part 1: Building a blog using Flask and AngularJS

via Building a blog using Flask and AngularJS Part 1 – TutsBucket.

In this tutorial, we will build a blog using Flask and AngularJS.

This is the first part of the tutorial series. In this part we will focus on building the REST API which will be used by the AngularJS application.

Stream your music collection in-browser

via graue/potsfyi.

Pots, fyi is a music streaming app intended to run on a personal server. Set it up and listen to yourmusic collection wherever you might be, using only a web browser!

IoT Python app with a Raspberry Pi and Bluemix

via Tutorial using a Raspberry Pi, Python, IoT, Twilio, Bluemix.

This is an extension/continuation from the blog post on how to create a basic Python webapp.  In this tutorial we are going to go through how to integrate a Python Flask webapp in Bluemix with the Internet of Things Foundation in Bluemix with a Raspberry Pi and two sensors on the Raspberry Pi.  The tutorial also uses Twilio to interact with the Raspberry Pi.

So what does this look like?  Here is a simple architecture diagram.

Video: Creating Websites using SQL, Python, and Flask

Can’t get enough Python and Flask? You’ve taken Introduction to Programming with Python, and you aced Introduction to Creating Websites Using Python and Flask. Get ready for the exciting conclusion to this action-packed Web Wednesdays trilogy, as you polish the look and feel of your website.

The ever-popular team of Christopher Harrison and Susan Ibach return with more practical help and cool demos. Create, configure, and connect to SQL databases. Learn to structure your code. Plus, check out advanced UI options, find out what Jinja templates can do for you, and get started with Bootstrap. Get the skills you need to publish a professional website, and level up your Python and Flask knowledge!

– Design of a Flask Application
Learn best practices for designing Flask applications, and get an introduction to the concepts of classes. One of the biggest questions someone faces when looking at Flask is how to structure code, so get a look at how to navigate the Flask environment.

– Designing Python Classes
Continue to dig into classes in Python, and see how constructors allow you to ensure that your objects are set up the right way and how you can use methods and properties to introduce functionality. Plus, explore cool words, like encapsulation.​

– Introduction to Relational Databases
Explore the concept of a relational database, and see how to create and configure SQL databases. Although key-value pair databases can work for simple applications and caching, they don’t offer the scale and flexibility often needed, so find out about options.

– Connecting to Relational Databases
After creating the back end, turn your attention to the front end and examine how to connect to the newly created database. See the code needed to connect to SQL Server, along with how to best organize that code into reusable classes.

– Layouts Using Jinja
Since one key to a successful web application is a consistent look and feel, see how to use Jinja template engine layouts to create consistency throughout your applications.

– Introduction to Bootstrap
Designing pages for multiple types of devices can be a challenge. Wrap up the course by addressing this issue with Bootstrap, plus take a look at core classes and the grid system.