Need a Python Django Developer in Boston? OT PROJECTS

Need a Python Django developer in Boston MA? Contact OT PROJECTS.

Django is an excellent choice for a rapid development, while having the ability to scale the application. Backed by the flexibility of Python and ease template engine, it provide the ability to develop code that can be reused in Web, Desktop and background processing.

Various Python Django web applications developed and deployed.

Most environment are:

  • Linux
  • Amazon EC2
  • Python 2.7
  • Different Django versions

Some Projects done:

  • Car washing on demand ordering system
  • Online reporting application
  • Medical Survey system
  • RSVP system

Looking for a Python Django developer in Boston MA? Contact OT PROJECTS.

Automation developer – a Global Trend

Automation is a global trend that is not going to a halt anytime soon. The rise of automatic machines and artificial intelligence is seen to become more widespread especially in the professional niche. In fact, more and more jobs will experience major disruption in the coming years with the emergence of virtual assistants, intermediary services, and even manual labor.

Automation is a possibility in the world of employment despite the fact that humans are quite essential in specific areas. Optimization in professional employment results in fully automated jobs that require embedded technology. The demand for workers will have a major shift due to machine intelligence.

Automation could potentially displace millions of jobs in the near future. For instance, there is a huge question where humans will go for employment when automated machines can actually replace you and do your work with more efficiency. The emergence of automation in the employment niche is one major issue that the world will face in 2018 and beyond.

Looking for an Automation Developer in Boston MA area? Contact OT PROJECTS.

Chatbots development

Messaging bots are taking the Internet by storm with the growing number of enterprises investing in the application of chatbots in their systems. This feature is undeniably ensuring visible impact, particularly on the software industry. More and more companies are venturing into the development of their respective consumer-centered bots.

The simplified level of chatbots showcases front-end interfaces that companies utilize in order to get in touch with their customers. For more advanced chatbot features, the use of artificial intelligence offers cutting-edge advantage specifically in offering interactive and enriching online experiences for user.

Chatbots are embedded on the home pages of the company’s official website or they can also use native platforms such as Slack and Facebook for marketing and distributing their brand. Enterprises across industries are expected to create chatbots that focus on sales, marketing services, and customer support. Messaging bots are expected to become more widespread in industries that offer travel, dining, and hospitality services.

find the Python Developer in Boston MA area you need.

Blockchain developer– Cryptocurrency Transactions

Blockchain technology is fast becoming a trend in the world of cryptocurrencies, particularly in its promising solutions when it comes to Bitcoin transactions. The prevalence of the use and relevance of cryptocurrencies in today’s world is undeniable. Future transactions in the virtual world are leaning towards the safe and hassle-free use of cryptocurrency.

Blockchain technology is a secure method of access and information management with focus on decentralization. It essentially aims to distribute power as well as ensure equitable risk applicable to players in a particular network. Startups are slowly expanding in various niches and find ways in boosting industries. The replacement of intermediary parties such as agents or brokers with smart contracts results in the automatic verification of actions minus jeopardizing data security.

Blockchain helps platforms such as Filecoin and Gameflip in solving basic marketplace challenges that could potentially compromise billions of dollars. Consumers become more empowered through enjoying the opportunity to buy real-world services and products from Internet-based retailers using cryptocurrencies.

Looking for a Software Developer in Boston MA area Contact OT PROJECTS.

Python Developer – Send an email using Python

This example shows how to send an email (SMTP)
Full stack innovative Python Developer in Boston MA area Contact OT PROJECTS.
Make the needed changes where there’s *** in the code

import smtplib
import time
import sys

from email.mime.image import MIMEImage
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.header import Header
from email.utils import formataddr

print 'start'

# change the parameters according to your SMTP settings
_my_name="*** Your name *** "
_smtp_domain='*** enter here your smtp server name ***'
_port=587 # put the right port
_login_user ='*** enter here the SMTP user name (usually your email) ****'
_password='*** enter here your password ***'
_from='%s <%s>' % (_my_name,_login_user)
_to='*** enter here the recipient email ***'

This is an eample

' msg = MIMEText(html, 'html') msg['Subject'] = 'OT PROJECTS - a Python sample email procedure' msg['From'] = _from msg['To'] = _to msg['Reply-to']=_from tries=0 while tries<3: # for login try: email_server = smtplib.SMTP(_smtp_domain,_port) email_server.login(_login_user,_password) tries=4 # exit the try except: print 'email error, wait 10 sec.' time.sleep(4) tries+=1 # try again after 10 seconds if tries==3: sys.exit('Error login in to email server') try: rv=email_server.sendmail(_from, _to, msg.as_string()) except Exception as e: print 'Error sending email: ', e email_server.quit() print 'send email completed'

Python Developer in Boston MA area Contact OT PROJECTS.

Python Developer – Python socket example.

Socket server by default is TCP IP. Save the 2 codes in 2 files, run the server first.
* Note the client IP is pointed to, assuming the client and the server are on the same machine.

Python Backend Developer in Boston MA area Contact OT PROJECTS.

This is the server file code:

import socket
import time

print "Socket server started"
socket_server = socket.socket()         
ip = '' 
port = 5050 #choose any, larger than 1024 (otherwise you need to have admin/root permission to execute)               
socket_server.bind((ip, port))        

while True:
   client, client_address = socket_server.accept()     
   print client_address, 'connected'
   client.send('Connection time: ' + str(time.asctime(time.localtime())))

This is the client file code:

import socket 
import time 
ip_of_the_socket_server = ''
port_of_the_socket_server = 5050     # must be the server port number       

#send 10 messages, 10 sec delay between each
for i in range(1,11):
	my_connection = socket.socket()  
	my_connection.connect((ip_of_the_socket_server, port_of_the_socket_server))	
	print i,')', my_connection.recv(4096)

Python Developer in Boston MA area Contact OT PROJECTS.

Boston Django developer – Setting up SSL (nginx+Django)

Start with generating the SSL (here is a self-sign for development only):

Independent Django Developer in Boston MA area Contact OT PROJECTS.

Note: I use /home/user/ssl/ for the certification location – change accordingly

Topic:	SSL - django
Description:	create SSL #1
Sample:	openssl genrsa -des3 -out server.key 1024

Topic:	SSL - django
Description:	create SSL #1.1
Sample:	enter the pass: testssl

Topic:	SSL - django
Description:	Generate a CSR (Certificate Signing Request)  #2
Sample:	openssl req -new -key server.key -out server.csr

Topic:	SSL - django
Description:	Generate a CSR (Certificate Signing Request)  #2.1
Sample:	pass: testssl

Topic:	SSL - django
Description:	Generate a CSR (Certificate Signing Request)  #2.2
Sample:	Country: US

Topic:	SSL - django
Continue with writing accordingly:
Description:	Generate a CSR (Certificate Signing Request)  #2.3
Sample:	Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:massachusetts
Locality Name (eg, city) []:boston
Organization Name (eg, company) [Internet Widgits Pty Ltd]:OT PROJECTS
Organizational Unit Name (eg, section) []:development
Common Name (e.g. server FQDN or YOUR name) []:testssl
Email Address []

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:testssl
An optional company name []:testssl


Topic:	SSL
Description:	Remove Passphrase from Key #2.4
Sample:	        cp server.key
                openssl rsa -in -out server.key

Topic:	SSL
Description:	Generating a Self-Signed Certificate  #2.5
Sample:	        openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

Topic:	SSL
Description:	Installing the Private Key and Certificate  #2.6
Sample:	        cp server.crt /home/user/ssl/conf/server.crt
                cp server.key /home/user/ssl/server.key

Now setup Nginx conf file:
if you use ubuntu: place a custom conf file here: /etc/nginx/conf.d
e.g.: /etc/nginx/conf.d/otp.conf:

server {
    listen          80;
    server_name     localhost;
    rewrite ^/(.*)  https://localhost/$1 permanent;

server {
    listen          4443 ssl;
    server_name     localhost;
    #rewrite ^/(.*)  https://localhost:4443/$1 permanent;
    access_log      /home/user/env/access.log combined;
    error_log       /home/user/env/error.log error;

    ssl_certificate         /home/user/ssl/server.crt;
    ssl_certificate_key     /home/user/ssl/server.key;

    location /static/ {
        alias /static/;

    location /media/ {
        alias /media/;

    location / {
        proxy_pass         http://localhost:8000/;
        proxy_redirect     off;

        proxy_set_header   Host              $http_host;
        proxy_set_header   X-Real-IP         $remote_addr;
        proxy_set_header   X-Forwarded-For   $proxy_add_x_forwarded_for;


Independent Django Developer in Boston MA area Contact OT PROJECTS.

Restart nginx

 sudo /etc/init.d/nginx restart

Add to


Now instead of localhost:8000 use localhost:4443

Finally, add this to your

os.environ['wsgi.url_scheme'] = 'https'

Should be the same, unless you used HTTP in your code/HTML or JS. Change accordingly.

Independent Django Developer in Boston MA area Contact OT PROJECTS.

Automated Amazon Seller Central (MWS) Updates

Automated Amazon seller central (MWS) updates give you a new look at the newest and latest developments in the online marketing features. Amazon introduces the Market Web Services or MWS in order to provide a better user-friendly platform for its developers and users. Virtual marketplaces are in demand in the age of the Internet and mobile computing.

Important Automated Amazon Seller Central (MWS) Updates

The integrated web API is Amazon’s way of giving access to relevant data on its seller central. With the Market Web Services, users have access to important information in relation to your Seller Central account along with details regarding updates that are based on the activities recorded on the same exact account. Connection to the Market Web Services or MWS of Amazon is necessary in order to use and automate processes that are available in the account that is accessed in the Amazon Seller Central.

Automated Amazon Seller Central (MWS) updates show that many manual works are already available for automation. Make sure the API and communication systems in your account have configurations for automation.

Selenium, splinter Web testing with Python

Web application testing with Python is made easier and better with the help of Splinter through automated browser interactions. The tool makes actions such as link visit automated and requires just a few code lines when you click on page links or components.

Options for Web Application Testing with Python

One of the choices for testing web apps with Python features is Selenium, which enables automatic testing and tasks across multiple platforms with different browsers. The key element highlights integrating different programming languages as well as frameworks for web testing. Mechanize is a web app testing option that facilitates web browsing with programmatic Python features, emphasizing automatic robots.txt observance and link parsing.

Automated sequence of actions for better browser interaction is an important feature for testing web apps. It may range from simple opening of the webpage to identifying proper browser loading and other advanced performances such as determining the webpage’s visual states.

Freelance Selenium Python Developer in Boston MA area Contact OT PROJECTS.

Python Scientific Libraries

Python is a popular programming language that is used for web development. It is also an important element for complex data visualization, analysis, and machine learning. Various scientific libraries and tools utilize Python and its innovative features, making it a significant and functional language for scientific computing.

Popular Python Scientific Libraries

There are five popular scientific libraries that utilize Python as its programming language namely Astropy, Biopython, Pandas, matplotlib, and NumPy. Knowing and understanding these features gives you a more profound and comprehensive understanding of their uses. Astropy highlights the effort in creating an astronomy core package with the use of Python to collaborate, use, and interoperate the programming language and astronomy packages.

Other scientific libraries that use Python and its powerful features for a programming language benefit from its improved usability and function. Learn more about the different industries that enjoy much better features with the help of the Python programming language.

Independent python Developer in Boston MA area Contact OT PROJECTS.