FastAPI is a modern, fast (high-performance), a web framework for building APIs with Python 3.6+ based on standard Python-type hints. In this article, we will see how to setup FastAPI and create a simple application
Step 1 :
We should first install FastAPI. For this, open your terminal and type the following command
pip install fastapi
Step 2 :
Now, we must install a server to run our app. For this, we can use both uvicorn or hypercorn. In this article, we will be using hypercorn
pip install hypercorn
Hypercorn is an ASGI web server based on the sans-io hyper…
In this article, we will how to write a simple voting smart contract. We will write our contract in Remix IDE using Solidity.
A closer look at terms used above :
Let’s get started
CircleCI is a modern continuous integration and continuous delivery (CI/CD) platform. The CircleCI Enterprise solution is install able inside your private cloud or data center and is free to try for a limited time. CircleCI automates build, test, and deployment of software.
CI (Continuous Integration) is the practice of testing each change done to your codebase automatically and as early as possible.
CD (Continuous Deployment) follows the testing that happens during Continuous Integration and pushes changes to a staging or production system.
As we now have some clue about CircleCI, let’s create a small python app and set up CircleCI…
A simple strategy can help you stop procrastinating and over-complicating things.
In this article, we see a simple rule that will make your life happier and less stressful.
We often tend to procrastinate our tasks till the very last minute and when the deadline draws closer, you will not be able to complete even the simpler tasks as you will be tensed and in a hurry to do things.
If you are one of those people, just follow this rule for a week and see the difference yourself.
In this article, we are gonna see how to dockerize your existing Flask application. We are going to create an image as well as create a docker-compose file so that our services run in an isolated environment.
One of the disadvantages of using only DockerFile is that we would have to build the whole image whenever we make any changes, whereas in the docker-compose we only detect the changes and build it on top of the already existing image.
Step 1: Create a simple Flask app
As our main focus is on Docker, here we are going to use a…
Let’s create a simple flask application that allows you to upload a text file to a specific folder and display its contents.
Flask is a micro web framework written in Python. It is easy to learn and very flexible. Flask is ideal for small scale applications.
Step 1: First, let us create
app.py and type the boiler code for flask
In order to run the file, open your terminal in the current working directory and type
python <filename> . In our case, the filename is
$ python app.py
In this article, we are going to see how to integrate MongoDB as well as learn some basic commands that will help you get started.
We will be working with MongoDB Atlas so before starting make sure you have a collection in MongoDB Atlas. If not, refer to the below article
After you have done setting up, we will now integrate MongoDB into our Python application.
We gonna use a module called Pymongo to access MongoDB from our application. We first have to install this module. For that, we use the below command
$ pip install pymongo
Now we should…
SSH stands for Secure Shell. SSH is a way to securely communicate with a remote computer. SSH is used for executing commands remotely by interacting with another system’s operating shell.
Using SSH, you can connect with GitHub without supplying your username and personal access token in each visit.
Step 1: Generating a new SSH key
Open your terminal and use the following line to create a new SSH key.
ssh-keygen -t rsa -b 4096 -C "email@example.com"
In the place of
firstname.lastname@example.org , enter the mail to which…
Miniconda is a free minimal installer for conda. It allows you to create environments and install over 7,500 useful packages. Let’s get started setting up Miniconda in our Ubuntu.
Step 1: Download the latest shell script
Open your terminal and run the following command
Step 2: Make the downloaded script executable
Now we should provide the necessary permissions to the downloaded script to make it executable. For this, we use the
$ sudo chmod +x Miniconda3-latest-Linux-x86_64.sh
Step 3: Run the Miniconda installation script
Then we should run the installation script.
Do you wanna have an edge on others, then you have come to the right place. Working with Tactlabs will open your eyes to a whole new world filled with loads of new technologies and frameworks that will surely increase your thirst for knowledge.
My time here at Tactlabs is something that I will treasure through the years. Before coming to Tactlabs, I had no hands-on experience and knew nothing about the trending technologies. But after joining, I got the chance to explore new technologies and gain valuable work experience. I was able to make a smooth transition from “Wow…