Deploy a Flask Project to Heroku

I was suddenly in the need of deploying a very basic Flask API to the cloud, so it can be available to the public. The thing is, Flask is not made for a production and scalable environment, but if you only need to deploy a very basic web server to

Create Multiple Directories With Makedirs

You don’t need a bunch of if’s and else if’s to create an array of directories in python, just the good ol’ makedirs.

How to Handle a Deque in Python

Deques are a great way to handle memory efficient appends to a list-like object, it is a special module that allows you to handle list items in a more appropriate way.

Create a Basic API With Flask

Flask is a _microframework_ for Python that you can use to quickly create API's and websites. It's a great and easy to use platform, let's create a simple API, but first we will go through the basics.

Create an Object With Namedtuple

Namedtuples are a subclass of typename which allow us to create objects (or classes) with tuple-like attributes, it's easy to create a class with immutable attributes with this library. Creating an object To create a namedtuple we only need the name of the class first and then the attribute list.

Return a List of Files and Folders With Glob

There's a great library added in Python 3.5 that lets you return a list of filenames and folders called glob, here's how to use it. Return files and folders in current folder. >>> glob('**') ['scaffolds', 'node_modules', 'yarn.lock', '_config.yml', 'source', 'db.json',

Unit Testing With Python

Learn the basics of Unit Testing in Python and its importance

Suppress Print Output in Python

Learn how to suppress print statements in Python
You've successfully subscribed to coding(dose)
Great! Next, complete checkout to get full access to all premium content.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.