In our previous tutorial, we have provided guide to install and run your very first project with MoCherry – The CherryPy MongoDB REST webservice engine. Here we will explain to create a sample REST based webservice with the framework.
We have to build an article management system where users can create / list / view / update / delete articles based using REST webservice.
In our previous tutorial we have explained, why we have started building MoCherry and how it will help developers to build REST webservices seamlessly with CherryPy with MongoDB support. Here we will demonstrate a step by step guide to build REST based CRUD operations using MoCherry framework.
Currently, MoCherry is not available from python pip repository directly. So we can use direct github link to install MoCherry and all it’s required dependencies to our system or virtualenv.
Python has been developed initially in 1991 and since then it has gradually evolved into the version 3.x. Most of us used python 2.7.x for a long time for different projects which is now came to the end of his lifecycle from 2020 onwards.
In the most recent release of python version 3.8, it has incorporated a set of kool features as an advancement. We will discuss a few of them below: Robust Function Arguments types, Reversible dictionary, Improved readability on Assignment expressions, f-string: elegant string formatting syntax, etc.
Revel is a high-productivity, extremely flexible web framework for the Go language which provides routing, parameter parsing, validation, session/flash, templating, caching, job running, a testing framework, and even internationalization and lots more. Revel provides the flexibility of custom Server, Session and Template engines. Here we will explain the steps to setup Revel development environment and build a sample REST webservice.
In GoLang, we have a way to by which we can achieve similar functionality like class and methods using Structs and associated methods. Though these methods are not defined within the struct rather they’re associated with the struct. We can either let these methods just access data via working as a copy of the struct which is called Value Receivers, or we can actually point through and modify the original struct which is called Pointer Receivers. In terms of performance, Pointer Receivers are more efficient as they don’t copy the whole struct again into the local scope. thus generating less garbage to cleanup.
GoLang is an open-source programming language developed at Google by Robert Griesemer, Rob Pike and Ken Thompson. It’s statically typed, compiled programming language and syntactically similar to C, but with memory safety, garbage collection, structural typing, and CSP-style(Communicating Sequential Processes) concurrency. Now we will try to learn some basics so that we can get started with our journey with GoLang.
We often need to convert pre-trained Glove Vectors into Word2Vec embedding format so that it can bee feed to any larger neural network e.g. LSTM, GRU, etc.
Here we will explain, how to convert pre-trained Glove vectors into Word2Vec format using Gensim implementation for the Word2Vec algorithm.
We at Techunits RnD team dedicate ourself towards unveiling bleeding edge technologies in the fields of Data Science, Neural Networks, Machine Learning and lots more. Join us now for some exciting discovery, discussion and submissions!
© 2019 by Techunits | All rights reserved