<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>python on Alexander Development</title><link>https://alexanderdevelopment.net/tag/python/</link><description>Recent content in python on Alexander Development</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Fri, 26 Oct 2018 14:11:53 +0000</lastBuildDate><atom:link href="https://alexanderdevelopment.net/tag/python/index.xml" rel="self" type="application/rss+xml"/><item><title>A motion-activated spider for Halloween with an Arduino and a Raspberry Pi</title><link>https://alexanderdevelopment.net/post/2018/10/26/a-motion-activated-spider-for-halloween-with-an-arduino-and-a-raspberry-pi/</link><pubDate>Fri, 26 Oct 2018 14:11:53 +0000</pubDate><guid>https://alexanderdevelopment.net/post/2018/10/26/a-motion-activated-spider-for-halloween-with-an-arduino-and-a-raspberry-pi/</guid><description>Every year my family hangs a large decorative spider over our doorway for Halloween. This year I decided to make it flash red LED eyes and play a random assortment of spooky sounds (including, but not limited to, bats, chains and the Vincent Price laugh from &amp;ldquo;Thriller&amp;rdquo;) when trick-or-treaters come to the door.</description></item><item><title>An Azure AD OAuth 2 helper microservice</title><link>https://alexanderdevelopment.net/post/2018/05/19/an-azure-ad-oauth2-helper-microservice/</link><pubDate>Sat, 19 May 2018 16:45:38 +0000</pubDate><guid>https://alexanderdevelopment.net/post/2018/05/19/an-azure-ad-oauth2-helper-microservice/</guid><description>One of the biggest trends in systems architecture these days is the use of &amp;ldquo;serverless&amp;rdquo; functions like Azure Functions, Amazon Lambda and OpenFaas. Because these functions are stateless, if you want to use a purely serverless approach to work with resources secured using Azure Active Directory like Dynamics 365 online, a new token will have to be requested every time a function executes.</description></item><item><title>Building a simple service relay for Dynamics 365 CE with RabbitMQ and Python - part 4</title><link>https://alexanderdevelopment.net/post/2018/02/08/building-a-simple-service-relay-for-dynamics-365-ce-with-rabbitmq-and-python-part-4/</link><pubDate>Thu, 08 Feb 2018 04:00:42 +0000</pubDate><guid>https://alexanderdevelopment.net/post/2018/02/08/building-a-simple-service-relay-for-dynamics-365-ce-with-rabbitmq-and-python-part-4/</guid><description>This is the final post in my series about building a service relay for Dynamics 365 CE with RabbitMQ and Python. In my previous post in this series, I showed the Python code to make the service relay work. In today&amp;rsquo;s post, I will show how you can use Azure Functions to make a consumer service proxy using C# so client applications don&amp;rsquo;t have to access to your RabbitMQ broker directly, and I will also discuss some general thoughts on security and scalability for this service relay architecture.</description></item><item><title>Building a simple service relay for Dynamics 365 CE with RabbitMQ and Python - part 3</title><link>https://alexanderdevelopment.net/post/2018/02/05/building-a-simple-service-relay-for-dynamics-365-ce-with-rabbitmq-and-python-part-3/</link><pubDate>Mon, 05 Feb 2018 17:57:29 +0000</pubDate><guid>https://alexanderdevelopment.net/post/2018/02/05/building-a-simple-service-relay-for-dynamics-365-ce-with-rabbitmq-and-python-part-3/</guid><description>In my last post in this series, I walked through the prerequisites for building a simple service relay for Dynamics 365 CE with RabbitMQ and Python. In today&amp;rsquo;s post I will show the Python code to make the service relay work.
As I described in the first post in this series, this approach relies on a consumer process and a queue listener process that can both access a RabbitMQ message broker.</description></item><item><title>Building a simple service relay for Dynamics 365 CE with RabbitMQ and Python - part 2</title><link>https://alexanderdevelopment.net/post/2018/02/02/building-a-simple-service-relay-for-dynamics-365-ce-with-rabbitmq-and-python-part-2/</link><pubDate>Fri, 02 Feb 2018 03:24:51 +0000</pubDate><guid>https://alexanderdevelopment.net/post/2018/02/02/building-a-simple-service-relay-for-dynamics-365-ce-with-rabbitmq-and-python-part-2/</guid><description>In my last post in this series, I outlined an approach for building a simple service relay with RabbitMQ and Python to easily expose an on-premises Dynamics 365 Customer Engagement organization to external consumers. In this post I will walk through the prerequisites for building this out. I&amp;rsquo;m assuming you have access to a Dynamics 365 CE organization, so I&amp;rsquo;m going to skip the setup for that and focus on just RabbitMQ and Python today.</description></item><item><title>Building a simple service relay for Dynamics 365 CE with RabbitMQ and Python - part 1</title><link>https://alexanderdevelopment.net/post/2018/01/31/relaying-external-queries-to-on-premise-dynamics-365-ce-orgs-with-rabbitmq-and-python/</link><pubDate>Wed, 31 Jan 2018 01:01:10 +0000</pubDate><guid>https://alexanderdevelopment.net/post/2018/01/31/relaying-external-queries-to-on-premise-dynamics-365-ce-orgs-with-rabbitmq-and-python/</guid><description>Integrating with external systems is a common requirement in Dynamics 365 Customer Engagement projects, but when the project involves an on-premises instance of Dynamics 365, routing requests from external systems through your firewall can present an additional challenge. Over the course of the next few posts, I will show you can easily build a simple service relay with RabbitMQ and Python to handle inbound requests from external data interface consumers.</description></item><item><title>Accessing an on-premises Dynamics 365 organization from Python</title><link>https://alexanderdevelopment.net/post/2018/01/15/connecting-to-an-on-premise-dynamics-365-org-from-python/</link><pubDate>Mon, 15 Jan 2018 14:58:00 +0000</pubDate><guid>https://alexanderdevelopment.net/post/2018/01/15/connecting-to-an-on-premise-dynamics-365-org-from-python/</guid><description>I&amp;rsquo;ve previously showed how to access online and IFD instances of Dynamics 365 Customer Engagement from Python code. Because that sample code authenticated to the Web API using OAuth, it won&amp;rsquo;t work with on-premises instances. Recently I&amp;rsquo;ve been doing some work with Python and an on-premises Dynamics 365 organization, so I thought I&amp;rsquo;d share a sample that shows how to authenticate to the Web API using NTLM.</description></item><item><title>Dynamics 365 and Python integration using the Web API - part 2</title><link>https://alexanderdevelopment.net/post/2017/02/19/dynamics-365-and-python-integration-using-the-web-api-part-2/</link><pubDate>Sun, 19 Feb 2017 21:15:02 +0000</pubDate><guid>https://alexanderdevelopment.net/post/2017/02/19/dynamics-365-and-python-integration-using-the-web-api-part-2/</guid><description>Last week I wrote a post that showed how to update Dynamics 365 data from a Node.js application using the Web API. Today I will share equivalent Python code. This code builds on my Dynamics 365 and Python integration using the Web API post from last year, so if you haven&amp;rsquo;t read that yet, please take a look before you proceed.</description></item><item><title>Scheduling Dynamics 365 workflows with Azure Functions and Python</title><link>https://alexanderdevelopment.net/post/2016/11/29/scheduling-dynamics-365-workflows-with-azure-functions-and-python/</link><pubDate>Tue, 29 Nov 2016 12:00:00 +0000</pubDate><guid>https://alexanderdevelopment.net/post/2016/11/29/scheduling-dynamics-365-workflows-with-azure-functions-and-python/</guid><description>Last week I shared a solution for Scheduling Dynamics 365 workflows with Azure Functions and Node.js. In this post, I will show how to achieve equivalent functionality using Python. The actual Python code is simpler than my Node.js example, but the Azure Functions configuration is much more complicated.
First, here&amp;rsquo;s the Python script I am using.</description></item><item><title>Dynamics 365 and Python integration using the Web API</title><link>https://alexanderdevelopment.net/post/2016/11/27/dynamics-365-and-python-integration-using-the-web-api/</link><pubDate>Sun, 27 Nov 2016 15:12:31 +0000</pubDate><guid>https://alexanderdevelopment.net/post/2016/11/27/dynamics-365-and-python-integration-using-the-web-api/</guid><description>A few days back I wrote a post that showed an easy way to set up Dynamics 365 and Node.js integration using the Web API. Here is Python code that demonstrates equivalent functionality to query contacts and display their information:
import requests import json #set these values to retrieve the oauth token crmorg = &amp;#39;https://CRMORG.</description></item></channel></rss>